V - vector type.public abstract class BaseConsumer<V extends ValueVector> extends Object implements JdbcConsumer<V>
| Modifier and Type | Field and Description |
|---|---|
protected int |
columnIndexInResultSet |
protected int |
currentIndex |
protected V |
vector |
| Constructor and Description |
|---|
BaseConsumer(V vector,
int index)
Constructs a new consumer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this consumer, do some clean work such as clear reuse ArrowBuf.
|
void |
resetValueVector(V vector)
Reset the vector within consumer for partial read purpose.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconsumeprotected V extends ValueVector vector
protected final int columnIndexInResultSet
protected int currentIndex
public BaseConsumer(V vector, int index)
vector - the underlying vector for the consumer.index - the column id for the consumer.public void close()
throws Exception
JdbcConsumerclose in interface AutoCloseableclose in interface JdbcConsumer<V extends ValueVector>Exceptionpublic void resetValueVector(V vector)
JdbcConsumerresetValueVector in interface JdbcConsumer<V extends ValueVector>Copyright © 2024 The Apache Software Foundation. All rights reserved.