Class BlobConsumer
java.lang.Object
org.apache.arrow.adapter.jdbc.consumer.BaseConsumer<VarBinaryVector>
org.apache.arrow.adapter.jdbc.consumer.BlobConsumer
- All Implemented Interfaces:
AutoCloseable
,JdbcConsumer<VarBinaryVector>
Consumer which consume blob 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
ConstructorDescriptionBlobConsumer
(BinaryConsumer delegate, int index, boolean nullable) Instantiate a BlobConsumer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this consumer, do some clean work such as clear reuse ArrowBuf.void
Consume a specific type value fromResultSet
and write it to vector.static BlobConsumer
createConsumer
(BinaryConsumer delegate, int index, boolean nullable) Creates a consumer forVarBinaryVector
.void
resetValueVector
(VarBinaryVector vector) Reset the vector within consumer for partial read purpose.
-
Constructor Details
-
BlobConsumer
Instantiate a BlobConsumer.
-
-
Method Details
-
createConsumer
Creates a consumer forVarBinaryVector
. -
consume
Description copied from interface:JdbcConsumer
Consume a specific type value fromResultSet
and write it to vector.- Throws:
SQLException
IOException
-
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<VarBinaryVector>
- Overrides:
close
in classBaseConsumer<VarBinaryVector>
- Throws:
Exception
-
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>
-