public static final class HostColumnVector.ColumnBuilder extends Object implements AutoCloseable
Constructor and Description |
---|
ColumnBuilder(HostColumnVector.DataType type,
long estimatedRows) |
Modifier and Type | Method and Description |
---|---|
HostColumnVector.ColumnBuilder |
append(BigDecimal value) |
HostColumnVector.ColumnBuilder |
append(BigInteger unscaledVal) |
HostColumnVector.ColumnBuilder |
append(boolean value) |
HostColumnVector.ColumnBuilder |
append(byte value) |
HostColumnVector.ColumnBuilder |
append(byte[] value,
int srcOffset,
int length)
Append multiple non-null byte values.
|
HostColumnVector.ColumnBuilder |
append(double value) |
HostColumnVector.ColumnBuilder |
append(float value) |
HostColumnVector.ColumnBuilder |
append(int value) |
HostColumnVector.ColumnBuilder |
append(long value) |
HostColumnVector.ColumnBuilder |
append(short value) |
HostColumnVector.ColumnBuilder |
append(String value) |
HostColumnVector.ColumnBuilder |
appendByteList(byte[] value)
Appends byte to a LIST of INT8/UINT8
|
HostColumnVector.ColumnBuilder |
appendByteList(byte[] value,
int srcOffset,
int length)
Appends bytes to a LIST of INT8/UINT8
|
HostColumnVector.ColumnBuilder |
appendDecimal128(byte[] binary)
Accepts a byte array containing the two's-complement representation of the unscaled value, which
is in big-endian byte-order.
|
HostColumnVector.ColumnBuilder |
appendLists(List... inputLists) |
HostColumnVector.ColumnBuilder |
appendNull() |
HostColumnVector.ColumnBuilder |
appendStructValues(HostColumnVector.StructData... inputList) |
HostColumnVector.ColumnBuilder |
appendStructValues(List<HostColumnVector.StructData> inputList) |
HostColumnVector.ColumnBuilder |
appendUTF8String(byte[] value) |
HostColumnVector.ColumnBuilder |
appendUTF8String(byte[] value,
int srcOffset,
int length) |
HostColumnVector |
build() |
ColumnVector |
buildAndPutOnDevice()
Finish and create the immutable ColumnVector, copied to the device.
|
void |
close() |
HostColumnVector.ColumnBuilder |
endList()
If you want to build up a list column you can get `builder.getChild(0)` and append to than,
then when you are done call `endList` and everything that was appended to that builder
will now be in the next list.
|
HostColumnVector.ColumnBuilder |
endStruct()
If you want to build up a struct column you can get each child `builder.getChild(N)` and
append to all of them, then when you are done call `endStruct` to update this builder.
|
HostColumnVector.ColumnBuilder |
getChild(int index) |
int |
getCurrentByteIndex()
Deprecated.
|
int |
getCurrentIndex() |
void |
incrCurrentIndex()
Deprecated.
|
String |
toString() |
public ColumnBuilder(HostColumnVector.DataType type, long estimatedRows)
public HostColumnVector build()
public HostColumnVector.ColumnBuilder appendLists(List... inputLists)
public HostColumnVector.ColumnBuilder appendStructValues(List<HostColumnVector.StructData> inputList)
public HostColumnVector.ColumnBuilder appendStructValues(HostColumnVector.StructData... inputList)
public final HostColumnVector.ColumnBuilder appendNull()
public HostColumnVector.ColumnBuilder endStruct()
public HostColumnVector.ColumnBuilder endList()
@Deprecated public void incrCurrentIndex()
public int getCurrentIndex()
@Deprecated public int getCurrentByteIndex()
public final HostColumnVector.ColumnBuilder append(byte value)
public final HostColumnVector.ColumnBuilder append(short value)
public final HostColumnVector.ColumnBuilder append(int value)
public final HostColumnVector.ColumnBuilder append(long value)
public final HostColumnVector.ColumnBuilder append(float value)
public final HostColumnVector.ColumnBuilder append(double value)
public final HostColumnVector.ColumnBuilder append(boolean value)
public HostColumnVector.ColumnBuilder append(BigDecimal value)
public HostColumnVector.ColumnBuilder append(BigInteger unscaledVal)
public HostColumnVector.ColumnBuilder append(String value)
public HostColumnVector.ColumnBuilder appendUTF8String(byte[] value)
public HostColumnVector.ColumnBuilder appendUTF8String(byte[] value, int srcOffset, int length)
public HostColumnVector.ColumnBuilder append(byte[] value, int srcOffset, int length)
public HostColumnVector.ColumnBuilder appendByteList(byte[] value)
public HostColumnVector.ColumnBuilder appendByteList(byte[] value, int srcOffset, int length)
public HostColumnVector.ColumnBuilder appendDecimal128(byte[] binary)
public HostColumnVector.ColumnBuilder getChild(int index)
public final ColumnVector buildAndPutOnDevice()
public void close()
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.