Class BaseConsumer<V extends ValueVector>
java.lang.Object
org.apache.arrow.adapter.jdbc.consumer.BaseConsumer<V>
- Type Parameters:
- V- vector type.
- All Implemented Interfaces:
- AutoCloseable,- JdbcConsumer<V>
- Direct Known Subclasses:
- ArrayConsumer,- BinaryConsumer,- BlobConsumer,- ClobConsumer,- Decimal256Consumer,- DecimalConsumer,- MapConsumer,- NullConsumer
Base class for all consumers.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Close this consumer, do some clean work such as clear reuse ArrowBuf.voidresetValueVector(V vector) Reset the vector within consumer for partial read purpose.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.arrow.adapter.jdbc.consumer.JdbcConsumerconsume
- 
Field Details- 
vector
- 
columnIndexInResultSetprotected final int columnIndexInResultSet
- 
currentIndexprotected int currentIndex
 
- 
- 
Constructor Details- 
BaseConsumerConstructs a new consumer.- Parameters:
- vector- the underlying vector for the consumer.
- index- the column id for the consumer.
 
 
- 
- 
Method Details- 
closeDescription copied from interface:JdbcConsumerClose this consumer, do some clean work such as clear reuse ArrowBuf.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- JdbcConsumer<V extends ValueVector>
- Throws:
- Exception
 
- 
resetValueVectorDescription copied from interface:JdbcConsumerReset the vector within consumer for partial read purpose.- Specified by:
- resetValueVectorin interface- JdbcConsumer<V extends ValueVector>
 
 
-