org.apache.sysml.runtime.compress.estim

Class CompressedSizeEstimator

  • java.lang.Object
    • org.apache.sysml.runtime.compress.estim.CompressedSizeEstimator
    • Field Detail

      • _numRows

        protected final int _numRows
    • Constructor Detail

      • CompressedSizeEstimator

        public CompressedSizeEstimator(MatrixBlock data)
    • Method Detail

      • getNumRows

        public int getNumRows()
      • estimateCompressedColGroupSize

        public abstract CompressedSizeInfo estimateCompressedColGroupSize(int[] colIndexes)
      • getRLESize

        protected static long getRLESize(int numVals,
                                         int numRuns,
                                         int numCols)
        Estimates the number of bytes needed to encode this column group in RLE encoding format.
        Parameters:
        numVals - number of value tuples
        numRuns - number of runs
        numCols - number of columns
        Returns:
        number of bytes to encode column group in RLE format
      • getOLESize

        protected static long getOLESize(int numVals,
                                         float numOffs,
                                         int numSeqs,
                                         int numCols)
        Estimates the number of bytes needed to encode this column group in OLE format.
        Parameters:
        numVals - number of value tuples
        numOffs - number of offsets
        numSeqs - number of segment headers
        numCols - number of columns
        Returns:
        number of bytes to encode column group in RLE format
      • getDDCSize

        protected static long getDDCSize(int numVals,
                                         int numRows,
                                         int numCols)
        Estimates the number of bytes needed to encode this column group in DDC1 or DDC2 format.
        Parameters:
        numVals - number of value tuples
        numRows - number of rows
        numCols - number of columns
        Returns:
        number of bytes to encode column group in RLE format

Copyright © 2017 The Apache Software Foundation. All rights reserved.