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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this consumer, do some clean work such as clear reuse ArrowBuf.void
resetValueVector
(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, wait
Methods 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:JdbcConsumer
Close this consumer, do some clean work such as clear reuse ArrowBuf.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceJdbcConsumer<V extends ValueVector>
- Throws:
Exception
-
resetValueVector
Description copied from interface:JdbcConsumer
Reset the vector within consumer for partial read purpose.- Specified by:
resetValueVector
in interfaceJdbcConsumer<V extends ValueVector>
-