Interface ColumnBuilder
-
public interface ColumnBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ColumnBuilderappendNull()Appends a null value to the block.default ColumnBuilderappendNull(int nullCount)Appends nullCount null value to the block.Columnbuild()Builds the block.TSDataTypegetDataType()Get the data type.longgetRetainedSizeInBytes()Returns the retained size of this column in memory, including over-allocations.ColumnBuildernewColumnBuilderLike(ColumnBuilderStatus columnBuilderStatus)Creates a new column builder of the same type based on the current usage statistics of this column builder.ColumnBuilderwrite(Column column, int index)Write value at index of passing columndefault ColumnBuilderwriteBinary(Binary value)Write a Binary to the current entry;default ColumnBuilderwriteBoolean(boolean value)Write a boolean to the current entry;default ColumnBuilderwriteDouble(double value)Write a double to the current entry;default ColumnBuilderwriteFloat(float value)Write a float to the current entry;default ColumnBuilderwriteInt(int value)Write an int to the current entry;default ColumnBuilderwriteLong(long value)Write a long to the current entry;default ColumnBuilderwriteObject(Object value)Write an Object to the current entry, which should be the corresponding type;default ColumnBuilderwriteTsPrimitiveType(TsPrimitiveType value)Write a TsPrimitiveType sequences to the current entry;
-
-
-
Method Detail
-
writeBoolean
default ColumnBuilder writeBoolean(boolean value)
Write a boolean to the current entry;
-
writeInt
default ColumnBuilder writeInt(int value)
Write an int to the current entry;
-
writeLong
default ColumnBuilder writeLong(long value)
Write a long to the current entry;
-
writeFloat
default ColumnBuilder writeFloat(float value)
Write a float to the current entry;
-
writeDouble
default ColumnBuilder writeDouble(double value)
Write a double to the current entry;
-
writeBinary
default ColumnBuilder writeBinary(Binary value)
Write a Binary to the current entry;
-
writeTsPrimitiveType
default ColumnBuilder writeTsPrimitiveType(TsPrimitiveType value)
Write a TsPrimitiveType sequences to the current entry;
-
writeObject
default ColumnBuilder writeObject(Object value)
Write an Object to the current entry, which should be the corresponding type;
-
write
ColumnBuilder write(Column column, int index)
Write value at index of passing columnCaller should make sure that value at index is not null
- Parameters:
column- source column whose type should be same as ColumnBuilderindex- index of source column to read from
-
appendNull
ColumnBuilder appendNull()
Appends a null value to the block.
-
appendNull
default ColumnBuilder appendNull(int nullCount)
Appends nullCount null value to the block.
-
build
Column build()
Builds the block. This method can be called multiple times.
-
getDataType
TSDataType getDataType()
Get the data type.
-
getRetainedSizeInBytes
long getRetainedSizeInBytes()
Returns the retained size of this column in memory, including over-allocations. This method is called from the inner most execution loop and must be fast.
-
newColumnBuilderLike
ColumnBuilder newColumnBuilderLike(ColumnBuilderStatus columnBuilderStatus)
Creates a new column builder of the same type based on the current usage statistics of this column builder.
-
-