public final class ArrowColumnBuilder extends Object implements AutoCloseable
Constructor and Description |
---|
ArrowColumnBuilder(HostColumnVector.DataType type) |
Modifier and Type | Method and Description |
---|---|
void |
addBatch(long rows,
long nullCount,
ByteBuffer data,
ByteBuffer validity,
ByteBuffer offsets)
Add an Arrow buffer.
|
ColumnVector |
buildAndPutOnDevice()
Create the immutable ColumnVector, copied to the device based on the Arrow data.
|
void |
close() |
String |
toString() |
public ArrowColumnBuilder(HostColumnVector.DataType type)
public void addBatch(long rows, long nullCount, ByteBuffer data, ByteBuffer validity, ByteBuffer offsets)
rows
- - number of rows in this Arrow buffernullCount
- - number of null values in this Arrow bufferdata
- - ByteBuffer of the Arrow data buffervalidity
- - ByteBuffer of the Arrow validity bufferoffsets
- - ByteBuffer of the Arrow offsets bufferpublic final ColumnVector buildAndPutOnDevice()
public void close()
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.