Class AColGroupOffset

  • All Implemented Interfaces:
    Serializable, Cloneable
    Direct Known Subclasses:
    ColGroupOLE, ColGroupRLE

    public abstract class AColGroupOffset
    extends AColGroupValue
    Base class for column groups encoded with various types of bitmap encoding. NOTES: * OLE: separate storage segment length and bitmaps led to a 30% improvement but not applied because more difficult to support both data layouts at the same time (distributed/local as well as w/ and w/o low-level opt)
    See Also:
    Serialized Form
    • Method Detail

      • estimateInMemorySize

        public long estimateInMemorySize()
        Description copied from class: AColGroup
        Get the upper bound estimate of in memory allocation for the column group.
        Overrides:
        estimateInMemorySize in class AColGroupValue
        Returns:
        an upper bound on the number of bytes used to store this ColGroup in memory.
      • getBitmaps

        public char[] getBitmaps()
      • getBitmapOffsets

        public int[] getBitmapOffsets()
      • hasZeros

        public boolean hasZeros()
      • getExactSizeOnDisk

        public long getExactSizeOnDisk()
        Description copied from class: AColGroup
        Returns the exact serialized size of column group. This can be used for example for buffer preallocation.
        Overrides:
        getExactSizeOnDisk in class AColGroupValue
        Returns:
        exact serialized size for column group
      • countNonZerosPerRow

        public abstract void countNonZerosPerRow​(int[] rnnz,
                                                 int rl,
                                                 int ru)
      • getCost

        public double getCost​(ComputationCostEstimator e,
                              int nRows)
        Description copied from class: AColGroup
        Get the computation cost associated with this column group.
        Specified by:
        getCost in class AColGroup
        Parameters:
        e - The computation cost estimator
        nRows - the number of rows in the column group
        Returns:
        The cost of this column group