Class AvroUnionsConsumer
java.lang.Object
org.apache.arrow.adapter.avro.consumers.BaseAvroConsumer<UnionVector>
org.apache.arrow.adapter.avro.consumers.AvroUnionsConsumer
- All Implemented Interfaces:
- AutoCloseable,- Consumer<UnionVector>
Consumer which consume unions type values from avro decoder. Write the data to 
UnionVector.- 
Field SummaryFields inherited from class org.apache.arrow.adapter.avro.consumers.BaseAvroConsumercurrentIndex, vector
- 
Constructor SummaryConstructorsConstructorDescriptionAvroUnionsConsumer(UnionVector vector, Consumer[] delegates, Types.MinorType[] types) Instantiate an AvroUnionConsumer.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Close this consumer when occurs exception to avoid potential leak.voidconsume(org.apache.avro.io.Decoder decoder) Consume a specific type value from avro decoder and write it to vector.booleanresetValueVector(UnionVector vector) Reset the vector within consumer for partial read purpose.Methods inherited from class org.apache.arrow.adapter.avro.consumers.BaseAvroConsumeraddNull, getVector, setPosition
- 
Constructor Details- 
AvroUnionsConsumerInstantiate an AvroUnionConsumer.
 
- 
- 
Method Details- 
consumeDescription copied from interface:ConsumerConsume a specific type value from avro decoder and write it to vector.- Parameters:
- decoder- avro decoder to read data
- Throws:
- IOException- on error
 
- 
closeDescription copied from interface:ConsumerClose this consumer when occurs exception to avoid potential leak.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Consumer<UnionVector>
- Overrides:
- closein class- BaseAvroConsumer<UnionVector>
- Throws:
- Exception
 
- 
resetValueVectorDescription copied from interface:ConsumerReset the vector within consumer for partial read purpose.- Specified by:
- resetValueVectorin interface- Consumer<UnionVector>
- Overrides:
- resetValueVectorin class- BaseAvroConsumer<UnionVector>
- Returns:
- true if reset is successful, false if reset is not needed.
 
 
-