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
ConstructorsConstructorDescriptionBinaryConsumer(VarBinaryVector vector, int index) Instantiate a BinaryConsumer. -
Method Summary
Modifier and TypeMethodDescriptionvoidconsume(InputStream is) consume a InputStream.static BinaryConsumercreateConsumer(VarBinaryVector vector, int index, boolean nullable) Creates a consumer forVarBinaryVector.voidvoidresetValueVector(VarBinaryVector vector) Reset the vector within consumer for partial read purpose.Methods inherited from class org.apache.arrow.adapter.jdbc.consumer.BaseConsumer
closeMethods 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
-
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:JdbcConsumerReset the vector within consumer for partial read purpose.- Specified by:
resetValueVectorin interfaceJdbcConsumer<VarBinaryVector>- Overrides:
resetValueVectorin classBaseConsumer<VarBinaryVector>
-