Interface ColumnBuilder


  • public interface ColumnBuilder
    • 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 column

        Caller should make sure that value at index is not null

        Parameters:
        column - source column whose type should be same as ColumnBuilder
        index - 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.