Interface JdbcConsumer<T extends ValueVector>
- Type Parameters:
T- The vector within consumer or its delegate, used for partially consume purpose.
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ArrayConsumer,BaseConsumer,BinaryConsumer,BlobConsumer,ClobConsumer,CompositeJdbcConsumer,Decimal256Consumer,DecimalConsumer,MapConsumer,NullConsumer
An abstraction that is used to consume values from
ResultSet.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this consumer, do some clean work such as clear reuse ArrowBuf.voidConsume a specific type value fromResultSetand write it to vector.voidresetValueVector(T vector) Reset the vector within consumer for partial read purpose.
-
Method Details
-
consume
Consume a specific type value fromResultSetand write it to vector.- Throws:
SQLExceptionIOException
-
close
Close this consumer, do some clean work such as clear reuse ArrowBuf.- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
resetValueVector
Reset the vector within consumer for partial read purpose.
-