Class SkipConsumer
java.lang.Object
org.apache.arrow.adapter.avro.consumers.SkipConsumer
- All Implemented Interfaces:
- AutoCloseable,- Consumer
Consumer which skip (throw away) data from the decoder.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddNull()Add null value to vector by making writer position + 1.voidclose()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.Get the vector within the consumer.booleanresetValueVector(FieldVector vector) Reset the vector within consumer for partial read purpose.voidsetPosition(int index) Set the position to write value into vector.booleanIndicates whether the consumer is type ofSkipConsumer.
- 
Constructor Details- 
SkipConsumer
 
- 
- 
Method Details- 
consumeDescription copied from interface:ConsumerConsume a specific type value from avro decoder and write it to vector.- Specified by:
- consumein interface- Consumer
- Parameters:
- decoder- avro decoder to read data
- Throws:
- IOException- on error
 
- 
addNullpublic void addNull()Description copied from interface:ConsumerAdd null value to vector by making writer position + 1.
- 
setPositionpublic void setPosition(int index) Description copied from interface:ConsumerSet the position to write value into vector.- Specified by:
- setPositionin interface- Consumer
 
- 
getVectorDescription copied from interface:ConsumerGet the vector within the consumer.
- 
closeDescription copied from interface:ConsumerClose this consumer when occurs exception to avoid potential leak.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Consumer
- Throws:
- Exception
 
- 
resetValueVectorDescription copied from interface:ConsumerReset the vector within consumer for partial read purpose.- Specified by:
- resetValueVectorin interface- Consumer
- Returns:
- true if reset is successful, false if reset is not needed.
 
- 
skippablepublic boolean skippable()Description copied from interface:ConsumerIndicates whether the consumer is type ofSkipConsumer.
 
-