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, wait
consume
protected 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
JdbcConsumer
close
in interface AutoCloseable
close
in interface JdbcConsumer<V extends ValueVector>
Exception
public void resetValueVector(V vector)
JdbcConsumer
resetValueVector
in interface JdbcConsumer<V extends ValueVector>
Copyright © 2023 The Apache Software Foundation. All rights reserved.