Class AvroFixedSizeBinaryProducer

java.lang.Object
org.apache.arrow.adapter.avro.producers.BaseAvroProducer<BaseFixedWidthVector>
org.apache.arrow.adapter.avro.producers.AvroFixedSizeBinaryProducer
All Implemented Interfaces:
Producer<BaseFixedWidthVector>

public class AvroFixedSizeBinaryProducer extends BaseAvroProducer<BaseFixedWidthVector>
Producer that produces fixed-size binary values from a FixedSizeBinaryVector, writes data to an Avro encoder.

Logical types are also supported, for vectors derived from BaseFixedWidthVector where the internal representation is fixed width bytes and requires no conversion.

  • Constructor Details

    • AvroFixedSizeBinaryProducer

      public AvroFixedSizeBinaryProducer(FixedSizeBinaryVector vector)
      Instantiate an AvroFixedSizeBinaryProducer.
    • AvroFixedSizeBinaryProducer

      protected AvroFixedSizeBinaryProducer(BaseFixedWidthVector vector)
      Protected constructor for logical types with a fixed width representation.
  • Method Details

    • produce

      public void produce(org.apache.avro.io.Encoder encoder) throws IOException
      Description copied from interface: Producer
      Produce a specific type value from the vector and write it to avro encoder.
      Parameters:
      encoder - avro encoder to write data
      Throws:
      IOException - on error