Class AvroStringConsumer

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

public class AvroStringConsumer extends BaseAvroConsumer<VarCharVector>
Consumer which consume string type values from avro decoder. Write the data to VarCharVector.
  • Constructor Details

    • AvroStringConsumer

      public AvroStringConsumer(VarCharVector vector)
      Instantiate a AvroStringConsumer.
  • 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