Class BinaryColumn

  • All Implemented Interfaces:
    Column

    public class BinaryColumn
    extends java.lang.Object
    implements Column
    • Constructor Detail

      • BinaryColumn

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

      • getBinary

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

        public Binary[] getBinaries()
        Description copied from interface: Column
        Gets the Binary list.
        Specified by:
        getBinaries 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