public class ArrowVectorIterator extends Object implements Iterator<VectorSchemaRoot>, AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Clean up resources ONLY WHEN THE
VectorSchemaRoot HOLDING EACH BATCH IS REUSED. |
static ArrowVectorIterator |
create(ResultSet resultSet,
JdbcToArrowConfig config)
Create a ArrowVectorIterator to partially convert data.
|
boolean |
hasNext() |
VectorSchemaRoot |
next()
Gets the next vector.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic static ArrowVectorIterator create(ResultSet resultSet, JdbcToArrowConfig config) throws SQLException
SQLExceptionpublic boolean hasNext()
hasNext in interface Iterator<VectorSchemaRoot>public VectorSchemaRoot next()
JdbcToArrowConfig.isReuseVectorSchemaRoot() is false,
the client is responsible for freeing its resources.next in interface Iterator<VectorSchemaRoot>JdbcConsumerException - on error from VectorConsumerpublic void close()
VectorSchemaRoot HOLDING EACH BATCH IS REUSED. If a new VectorSchemaRoot
is created for each batch, each root must be closed manually by the client code.close in interface AutoCloseableCopyright © 2024 The Apache Software Foundation. All rights reserved.