Class TypedConsumer.MapConsumer

    • Constructor Detail

      • MapConsumer

        protected MapConsumer()
    • Method Detail

      • consumeMap

        public void consumeMap​(org.apache.thrift.protocol.TProtocol protocol,
                               EventBasedThriftReader reader,
                               org.apache.thrift.protocol.TMap tMap)
                        throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • consumeEntry

        public abstract void consumeEntry​(org.apache.thrift.protocol.TProtocol protocol,
                                          EventBasedThriftReader reader,
                                          byte keyType,
                                          byte valueType)
                                   throws org.apache.thrift.TException
        can either delegate to the reader or read the map entry from the protocol
        Parameters:
        protocol - the underlying protocol
        reader - the reader to delegate to
        keyType - the type of the key
        valueType - the type of the value
        Throws:
        org.apache.thrift.TException - if any thrift related error occurs during the reading