Interface FieldConsumer

All Known Implementing Classes:
Consumers.DelegatingFieldConsumer

public interface FieldConsumer
To receive Thrift field events
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    consumeField(org.apache.thrift.protocol.TProtocol protocol, EventBasedThriftReader eventBasedThriftReader, short id, byte type)
    called by the EventBasedThriftReader when reading a field from a Struct
  • Method Details

    • consumeField

      void consumeField(org.apache.thrift.protocol.TProtocol protocol, EventBasedThriftReader eventBasedThriftReader, short id, byte type) throws org.apache.thrift.TException
      called by the EventBasedThriftReader when reading a field from a Struct
      Parameters:
      protocol - the underlying protocol
      eventBasedThriftReader - the reader to delegate to further calls.
      id - the id of the field
      type - the type of the field
      Throws:
      org.apache.thrift.TException - if any thrift related error occurs during the reading