Class FloatColumn

  • All Implemented Interfaces:
    Column

    public class FloatColumn
    extends java.lang.Object
    implements Column
    • Field Detail

      • SIZE_IN_BYTES_PER_POSITION

        public static final int SIZE_IN_BYTES_PER_POSITION
        See Also:
        Constant Field Values
    • Constructor Detail

      • FloatColumn

        public FloatColumn​(int positionCount,
                           java.util.Optional<boolean[]> valueIsNull,
                           float[] values)
    • Method Detail

      • getFloat

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

        public float[] getFloats()
        Description copied from interface: Column
        Gets the float array.
        Specified by:
        getFloats 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
      • 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