Interface Column


  • public interface Column
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default Binary[] getBinaries()
      Gets the Binary list.
      default Binary getBinary​(int position)
      Gets a Binary at position.
      default boolean getBoolean​(int position)
      Gets a boolean at position.
      default boolean[] getBooleans()
      Gets the boolean array.
      TSDataType getDataType()
      Get the data type.
      default double getDouble​(int position)
      Gets a double at position.
      default double[] getDoubles()
      Gets the double array.
      ColumnEncoding getEncoding()
      Get the encoding for this column.
      default float getFloat​(int position)
      Gets a float at position.
      default float[] getFloats()
      Gets the float array.
      int getInstanceSize()  
      default int getInt​(int position)
      Gets a little endian int at position.
      default int[] getInts()
      Gets the little endian int array.
      default long getLong​(int position)
      Gets a little endian long at position.
      default long[] getLongs()
      Gets the little endian long array.
      default Object getObject​(int position)
      Gets an Object at position.
      default Object[] getObjects()
      Gets the Object array.
      int getPositionCount()
      Returns the number of positions in this block.
      Column getRegion​(int positionOffset, int length)
      Returns a column starting at the specified position and extends for the specified length.
      long getRetainedSizeInBytes()
      Returns the retained size of this column in memory, including over-allocations.
      default TsPrimitiveType getTsPrimitiveType​(int position)
      Gets a TsPrimitiveType at position.
      boolean[] isNull()
      Returns the array to determine whether each position of the column is null or not.
      boolean isNull​(int position)
      Is the specified position null?
      boolean mayHaveNull()
      Is it possible the column may have a null value? If false, the column cannot contain a null, but if true, the column may or may not have a null.
      void reverse()
      reverse the column
      Column subColumn​(int fromIndex)
      This method will create a temporary view of origin column, which will reuse the array of column but with different array offset.
    • Method Detail

      • getDataType

        TSDataType getDataType()
        Get the data type.
      • getEncoding

        ColumnEncoding getEncoding()
        Get the encoding for this column.
      • getBoolean

        default boolean getBoolean​(int position)
        Gets a boolean at position.
      • getInt

        default int getInt​(int position)
        Gets a little endian int at position.
      • getLong

        default long getLong​(int position)
        Gets a little endian long at position.
      • getFloat

        default float getFloat​(int position)
        Gets a float at position.
      • getDouble

        default double getDouble​(int position)
        Gets a double at position.
      • getBinary

        default Binary getBinary​(int position)
        Gets a Binary at position.
      • getObject

        default Object getObject​(int position)
        Gets an Object at position.
      • getBooleans

        default boolean[] getBooleans()
        Gets the boolean array.
      • getInts

        default int[] getInts()
        Gets the little endian int array.
      • getLongs

        default long[] getLongs()
        Gets the little endian long array.
      • getFloats

        default float[] getFloats()
        Gets the float array.
      • getDoubles

        default double[] getDoubles()
        Gets the double array.
      • getBinaries

        default Binary[] getBinaries()
        Gets the Binary list.
      • getObjects

        default Object[] getObjects()
        Gets the Object array.
      • getTsPrimitiveType

        default TsPrimitiveType getTsPrimitiveType​(int position)
        Gets a TsPrimitiveType at position.
      • mayHaveNull

        boolean mayHaveNull()
        Is it possible the column may have a null value? If false, the column cannot contain a null, but if true, the column may or may not have a null.
      • isNull

        boolean isNull​(int position)
        Is the specified position null?
        Throws:
        IllegalArgumentException - if this position is not valid. The method may return false without throwing exception when there are no nulls in the block, even if the position is invalid
      • isNull

        boolean[] isNull()
        Returns the array to determine whether each position of the column is null or not.
      • getPositionCount

        int getPositionCount()
        Returns the number of positions in this block.
      • 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.
      • getRegion

        Column getRegion​(int positionOffset,
                         int length)
        Returns a column starting at the specified position and extends for the specified length. The specified region must be entirely contained within this column.

        The region can be a view over this column. If this column is released, the region column may also be released. If the region column is released, this block may also be released.

      • subColumn

        Column subColumn​(int fromIndex)
        This method will create a temporary view of origin column, which will reuse the array of column but with different array offset.
      • reverse

        void reverse()
        reverse the column
      • getInstanceSize

        int getInstanceSize()