Class CompositeJdbcConsumer
java.lang.Object
org.apache.arrow.adapter.jdbc.consumer.CompositeJdbcConsumer
- All Implemented Interfaces:
AutoCloseable
,JdbcConsumer
Composite consumer which hold all consumers. It manages the consume and cleanup process.
-
Constructor Summary
-
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
(ValueVector vector) Reset the vector within consumer for partial read purpose.void
Reset inner consumers through vectors in the vector schema root.
-
Constructor Details
-
CompositeJdbcConsumer
Construct an instance.
-
-
Method Details
-
consume
Description copied from interface:JdbcConsumer
Consume a specific type value fromResultSet
and write it to vector.- Specified by:
consume
in interfaceJdbcConsumer
- Throws:
SQLException
IOException
-
close
public void 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
-
resetValueVector
Description copied from interface:JdbcConsumer
Reset the vector within consumer for partial read purpose.- Specified by:
resetValueVector
in interfaceJdbcConsumer
-
resetVectorSchemaRoot
Reset inner consumers through vectors in the vector schema root.
-