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 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 BaseConsumer
closeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JdbcConsumer
consume
-
Constructor Details
-
BinaryConsumer
Instantiate a BinaryConsumer.
-
-
Method Details
-
createConsumer
Creates a consumer forVarBinaryVector. -
consume
-
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>
-