Class RunLengthEncodedColumn

  • All Implemented Interfaces:
    Column

    public class RunLengthEncodedColumn
    extends java.lang.Object
    implements Column
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Binary[] getBinaries()
      Gets the Binary list.
      Binary getBinary​(int position)
      Gets a Binary at position.
      boolean getBoolean​(int position)
      Gets a boolean at position.
      boolean[] getBooleans()
      Gets the boolean array.
      TSDataType getDataType()
      Get the data type.
      double getDouble​(int position)
      Gets a double at position.
      double[] getDoubles()
      Gets the double array.
      ColumnEncoding getEncoding()
      Get the encoding for this column.
      float getFloat​(int position)
      Gets a float at position.
      float[] getFloats()
      Gets the float array.
      int getInstanceSize()  
      int getInt​(int position)
      Gets a little endian int at position.
      int[] getInts()
      Gets the little endian int array.
      long getLong​(int position)
      Gets a little endian long at position.
      long[] getLongs()
      Gets the little endian long array.
      java.lang.Object getObject​(int position)
      Gets an Object at position.
      java.lang.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.
      TsPrimitiveType getTsPrimitiveType​(int position)
      Gets a TsPrimitiveType at position.
      Column getValue()  
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RunLengthEncodedColumn

        public RunLengthEncodedColumn​(Column value,
                                      int positionCount)
    • Method Detail

      • getValue

        public Column getValue()
      • getBoolean

        public boolean getBoolean​(int position)
        Description copied from interface: Column
        Gets a boolean at position.
        Specified by:
        getBoolean in interface Column
      • getInt

        public int getInt​(int position)
        Description copied from interface: Column
        Gets a little endian int at position.
        Specified by:
        getInt in interface Column
      • getLong

        public long getLong​(int position)
        Description copied from interface: Column
        Gets a little endian long at position.
        Specified by:
        getLong in interface Column
      • getFloat

        public float getFloat​(int position)
        Description copied from interface: Column
        Gets a float at position.
        Specified by:
        getFloat in interface Column
      • getDouble

        public double getDouble​(int position)
        Description copied from interface: Column
        Gets a double at position.
        Specified by:
        getDouble in interface Column
      • getBinary

        public Binary getBinary​(int position)
        Description copied from interface: Column
        Gets a Binary at position.
        Specified by:
        getBinary in interface Column
      • getObject

        public java.lang.Object getObject​(int position)
        Description copied from interface: Column
        Gets an Object at position.
        Specified by:
        getObject in interface Column
      • getBooleans

        public boolean[] getBooleans()
        Description copied from interface: Column
        Gets the boolean array.
        Specified by:
        getBooleans in interface Column
      • getInts

        public int[] getInts()
        Description copied from interface: Column
        Gets the little endian int array.
        Specified by:
        getInts in interface Column
      • getLongs

        public long[] getLongs()
        Description copied from interface: Column
        Gets the little endian long array.
        Specified by:
        getLongs in interface Column
      • getFloats

        public float[] getFloats()
        Description copied from interface: Column
        Gets the float array.
        Specified by:
        getFloats in interface Column
      • getDoubles

        public double[] getDoubles()
        Description copied from interface: Column
        Gets the double array.
        Specified by:
        getDoubles in interface Column
      • getBinaries

        public Binary[] getBinaries()
        Description copied from interface: Column
        Gets the Binary list.
        Specified by:
        getBinaries in interface Column
      • getObjects

        public java.lang.Object[] getObjects()
        Description copied from interface: Column
        Gets the Object array.
        Specified by:
        getObjects in interface Column
      • mayHaveNull

        public boolean mayHaveNull()
        Description copied from interface: Column
        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.
        Specified by:
        mayHaveNull in interface Column
      • isNull

        public boolean isNull​(int position)
        Description copied from interface: Column
        Is the specified position null?
        Specified by:
        isNull in interface Column
      • isNull

        public boolean[] isNull()
        Description copied from interface: Column
        Returns the array to determine whether each position of the column is null or not.
        Specified by:
        isNull in interface Column
      • getPositionCount

        public int getPositionCount()
        Description copied from interface: Column
        Returns the number of positions in this block.
        Specified by:
        getPositionCount in interface Column
      • getRetainedSizeInBytes

        public long getRetainedSizeInBytes()
        Description copied from interface: Column
        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.
        Specified by:
        getRetainedSizeInBytes in interface Column
      • getRegion

        public Column getRegion​(int positionOffset,
                                int length)
        Description copied from interface: Column
        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.

        Specified by:
        getRegion in interface Column
      • subColumn

        public Column subColumn​(int fromIndex)
        Description copied from interface: Column
        This method will create a temporary view of origin column, which will reuse the array of column but with different array offset.
        Specified by:
        subColumn in interface Column
      • reverse

        public void reverse()
        Description copied from interface: Column
        reverse the column
        Specified by:
        reverse in interface Column