Class ArrayConsumer
java.lang.Object
org.apache.arrow.adapter.jdbc.consumer.BaseConsumer<ListVector>
org.apache.arrow.adapter.jdbc.consumer.ArrayConsumer
- All Implemented Interfaces:
AutoCloseable,JdbcConsumer<ListVector>
Consumer which consume array type values from
ResultSet. Write the data to ListVector.-
Field Summary
FieldsFields inherited from class org.apache.arrow.adapter.jdbc.consumer.BaseConsumer
columnIndexInResultSet, currentIndex, vector -
Constructor Summary
ConstructorsConstructorDescriptionArrayConsumer(ListVector vector, JdbcConsumer delegate, int index) Instantiate a ArrayConsumer. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this consumer, do some clean work such as clear reuse ArrowBuf.static ArrayConsumercreateConsumer(ListVector vector, JdbcConsumer delegate, int index, boolean nullable) Creates a consumer forListVector.voidresetValueVector(ListVector 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
-
delegate
-
innerVectorIndex
protected int innerVectorIndex
-
-
Constructor Details
-
ArrayConsumer
Instantiate a ArrayConsumer.
-
-
Method Details
-
createConsumer
public static ArrayConsumer createConsumer(ListVector vector, JdbcConsumer delegate, int index, boolean nullable) Creates a consumer forListVector. -
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<ListVector>- Overrides:
closein classBaseConsumer<ListVector>- Throws:
Exception
-
resetValueVector
Description copied from interface:JdbcConsumerReset the vector within consumer for partial read purpose.- Specified by:
resetValueVectorin interfaceJdbcConsumer<ListVector>- Overrides:
resetValueVectorin classBaseConsumer<ListVector>
-