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>
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.
-
Field Summary
Fields inherited from class org.apache.arrow.adapter.avro.producers.BaseAvroProducer
currentIndex, vector -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor for logical types with a fixed width representation.Instantiate an AvroFixedSizeBinaryProducer. -
Method Summary
Modifier and TypeMethodDescriptionvoidproduce(org.apache.avro.io.Encoder encoder) Produce a specific type value from the vector and write it to avro encoder.Methods inherited from class org.apache.arrow.adapter.avro.producers.BaseAvroProducer
getVector, resetValueVector, setPosition, skipNull
-
Constructor Details
-
AvroFixedSizeBinaryProducer
Instantiate an AvroFixedSizeBinaryProducer. -
AvroFixedSizeBinaryProducer
Protected constructor for logical types with a fixed width representation.
-
-
Method Details
-
produce
Description copied from interface:ProducerProduce a specific type value from the vector and write it to avro encoder.- Parameters:
encoder- avro encoder to write data- Throws:
IOException- on error
-