Class AvroBytesConsumer

java.lang.Object
org.apache.arrow.adapter.avro.consumers.BaseAvroConsumer<VarBinaryVector>
org.apache.arrow.adapter.avro.consumers.AvroBytesConsumer
All Implemented Interfaces:
AutoCloseable, Consumer<VarBinaryVector>

public class AvroBytesConsumer extends BaseAvroConsumer<VarBinaryVector>
Consumer which consume bytes type values from avro decoder. Write the data to VarBinaryVector.
  • Constructor Details

    • AvroBytesConsumer

      public AvroBytesConsumer(VarBinaryVector vector)
      Instantiate a AvroBytesConsumer.
  • Method Details

    • consume

      public void consume(org.apache.avro.io.Decoder decoder) throws IOException
      Description copied from interface: Consumer
      Consume a specific type value from avro decoder and write it to vector.
      Parameters:
      decoder - avro decoder to read data
      Throws:
      IOException - on error