Class BinaryConsumer
java.lang.Object
org.apache.arrow.adapter.jdbc.consumer.BaseConsumer<VarBinaryVector>
org.apache.arrow.adapter.jdbc.consumer.BinaryConsumer
- All Implemented Interfaces:
AutoCloseable
,JdbcConsumer<VarBinaryVector>
Consumer which consume binary type values from
ResultSet
. Write the data to VarBinaryVector
.-
Field Summary
Fields inherited from class org.apache.arrow.adapter.jdbc.consumer.BaseConsumer
columnIndexInResultSet, currentIndex, vector
-
Constructor Summary
ConstructorDescriptionBinaryConsumer
(VarBinaryVector vector, int index) Instantiate a BinaryConsumer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
consume
(InputStream is) consume a InputStream.static BinaryConsumer
createConsumer
(VarBinaryVector vector, int index, boolean nullable) Creates a consumer forVarBinaryVector
.void
void
resetValueVector
(VarBinaryVector vector) Reset the vector within consumer for partial read purpose.Methods inherited from class org.apache.arrow.adapter.jdbc.consumer.BaseConsumer
close
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
-
Constructor Details
-
BinaryConsumer
Instantiate a BinaryConsumer.
-
-
Method Details
-
createConsumer
Creates a consumer forVarBinaryVector
. -
consume
consume a InputStream.- Throws:
IOException
-
moveWriterPosition
public void moveWriterPosition() -
resetValueVector
Description copied from interface:JdbcConsumer
Reset the vector within consumer for partial read purpose.- Specified by:
resetValueVector
in interfaceJdbcConsumer<VarBinaryVector>
- Overrides:
resetValueVector
in classBaseConsumer<VarBinaryVector>
-