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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.arrow.adapter.jdbc.consumer.JdbcConsumer
consume
-
Field Details
-
vector
-
columnIndexInResultSet
protected final int columnIndexInResultSet -
currentIndex
protected int currentIndex
-
-
Constructor Details
-
BaseConsumer
Constructs a new consumer.- Parameters:
vector- the underlying vector for the consumer.index- the column id for the consumer.
-
-
Method Details
-
close
Description copied from interface:JdbcConsumerClose this consumer, do some clean work such as clear reuse ArrowBuf.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceJdbcConsumer<V extends ValueVector>- Throws:
Exception
-
resetValueVector
Description copied from interface:JdbcConsumerReset the vector within consumer for partial read purpose.- Specified by:
resetValueVectorin interfaceJdbcConsumer<V extends ValueVector>
-