Package ai.rapids.cudf
Class HostColumnVector.ColumnBuilder
java.lang.Object
ai.rapids.cudf.HostColumnVector.ColumnBuilder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- HostColumnVector
Build
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend
(boolean value) append
(byte value) append
(byte[] value, int srcOffset, int length) Append multiple non-null byte values.append
(double value) append
(float value) append
(int value) append
(long value) append
(short value) append
(BigDecimal value) append
(BigInteger unscaledVal) appendByteList
(byte[] value) Appends byte to a LIST of INT8/UINT8appendByteList
(byte[] value, int srcOffset, int length) Appends bytes to a LIST of INT8/UINT8appendDecimal128
(byte[] binary) Accepts a byte array containing the two's-complement representation of the unscaled value, which is in big-endian byte-order.appendLists
(List... inputLists) appendStructValues
(HostColumnVector.StructData... inputList) appendStructValues
(List<HostColumnVector.StructData> inputList) appendUTF8String
(byte[] value) appendUTF8String
(byte[] value, int srcOffset, int length) build()
final ColumnVector
Finish and create the immutable ColumnVector, copied to the device.void
close()
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.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.getChild
(int index) int
Deprecated.int
void
Deprecated.toString()
-
Constructor Details
-
ColumnBuilder
-
-
Method Details
-
build
-
appendLists
-
appendStructValues
public HostColumnVector.ColumnBuilder appendStructValues(List<HostColumnVector.StructData> inputList) -
appendStructValues
-
appendNull
-
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. Do not start to append to the child and then append a null to this without ending the struct first or you might not get the results that you expected.- Returns:
- this for chaining.
-
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. Do not start to append to the child and then append a null to this without ending the list first or you might not get the results that you expected.- Returns:
- this for chaining.
-
incrCurrentIndex
Deprecated. -
getCurrentIndex
public int getCurrentIndex() -
getCurrentByteIndex
Deprecated. -
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
appendUTF8String
-
appendUTF8String
-
append
Append multiple non-null byte values. -
appendByteList
Appends byte to a LIST of INT8/UINT8 -
appendByteList
Appends bytes to a LIST of INT8/UINT8 -
appendDecimal128
Accepts a byte array containing the two's-complement representation of the unscaled value, which is in big-endian byte-order. Then, transforms it into the representation of cuDF Decimal128 for appending. This method is more efficient than `append(BigInteger unscaledVal)` if we can directly access the two's-complement representation of a BigDecimal without encoding via the method `toByteArray`. -
getChild
-
buildAndPutOnDevice
Finish and create the immutable ColumnVector, copied to the device. -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
toString
-