Class AvroBigIntProducer
java.lang.Object
org.apache.arrow.adapter.avro.producers.BaseAvroProducer<BaseFixedWidthVector>
org.apache.arrow.adapter.avro.producers.AvroBigIntProducer
- All Implemented Interfaces:
Producer<BaseFixedWidthVector>
- Direct Known Subclasses:
AvroTimeMicroProducer,AvroTimestampMicroProducer,AvroTimestampMicroTzProducer,AvroTimestampMilliProducer,AvroTimestampMilliTzProducer,AvroTimestampNanoProducer,AvroTimestampNanoTzProducer
Producer that produces long values from a
BigIntVector, writes data to an Avro encoder.
Logical types are also supported, for vectors derived from BaseFixedWidthVector where
the internal representation matches BigIntVector 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 long representation.AvroBigIntProducer(BigIntVector vector) Instantiate an AvroBigIntProducer. -
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
-
AvroBigIntProducer
Instantiate an AvroBigIntProducer. -
AvroBigIntProducer
Protected constructor for logical types with a long 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
-