Class AvroIntProducer
java.lang.Object
org.apache.arrow.adapter.avro.producers.BaseAvroProducer<BaseFixedWidthVector>
org.apache.arrow.adapter.avro.producers.AvroIntProducer
- All Implemented Interfaces:
Producer<BaseFixedWidthVector>
- Direct Known Subclasses:
AvroDateDayProducer
,AvroTimeMilliProducer
Producer that produces int values from an
IntVector
, writes data to an avro encoder.
Logical types are also supported, for vectors derived from BaseFixedWidthVector
where
the internal representation matches IntVector and requires no conversion.
-
Field Summary
Fields inherited from class org.apache.arrow.adapter.avro.producers.BaseAvroProducer
currentIndex, vector
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AvroIntProducer
(BaseFixedWidthVector vector) Protected constructor for a logical types with an integer representation.AvroIntProducer
(IntVector vector) Instantiate an AvroIntConsumer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
produce
(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
-
AvroIntProducer
Instantiate an AvroIntConsumer. -
AvroIntProducer
Protected constructor for a logical types with an integer representation.
-
-
Method Details
-
produce
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
-