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
Fields inherited from class org.apache.arrow.adapter.jdbc.consumer.BaseConsumer
columnIndexInResultSet, currentIndex, vector
-
Constructor Summary
ConstructorDescriptionArrayConsumer
(ListVector vector, JdbcConsumer delegate, int index) Instantiate a ArrayConsumer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this consumer, do some clean work such as clear reuse ArrowBuf.static ArrayConsumer
createConsumer
(ListVector vector, JdbcConsumer delegate, int index, boolean nullable) Creates a consumer forListVector
.void
resetValueVector
(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, wait
Methods 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:JdbcConsumer
Close this consumer, do some clean work such as clear reuse ArrowBuf.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceJdbcConsumer<ListVector>
- Overrides:
close
in classBaseConsumer<ListVector>
- Throws:
Exception
-
resetValueVector
Description copied from interface:JdbcConsumer
Reset the vector within consumer for partial read purpose.- Specified by:
resetValueVector
in interfaceJdbcConsumer<ListVector>
- Overrides:
resetValueVector
in classBaseConsumer<ListVector>
-