Class DictionaryDecodingProducer<T extends FieldVector>
java.lang.Object
org.apache.arrow.adapter.avro.producers.BaseAvroProducer<BaseIntVector>
org.apache.arrow.adapter.avro.producers.DictionaryDecodingProducer<T>
- Type Parameters:
T- Type of the underlying dictionary vector
- All Implemented Interfaces:
Producer<BaseIntVector>
public class DictionaryDecodingProducer<T extends FieldVector>
extends BaseAvroProducer<BaseIntVector>
Producer that decodes values from a dictionary-encoded
FieldVector, writes the resulting
values to an Avro encoder.-
Field Summary
Fields inherited from class org.apache.arrow.adapter.avro.producers.BaseAvroProducer
currentIndex, vector -
Constructor Summary
ConstructorsConstructorDescriptionDictionaryDecodingProducer(BaseIntVector indexVector, Producer<T> dictProducer) Instantiate a DictionaryDecodingProducer. -
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
-
DictionaryDecodingProducer
Instantiate a DictionaryDecodingProducer.
-
-
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
-