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 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.void
resetValueVector
(T vector) Reset the vector within consumer for partial read purpose.
-
Method Details
-
consume
Consume a specific type value fromResultSet
and write it to vector.- Throws:
SQLException
IOException
-
close
Close this consumer, do some clean work such as clear reuse ArrowBuf.- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
resetValueVector
Reset the vector within consumer for partial read purpose.
-