public abstract class CompressedSizeEstimator extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CompressedSizeEstimator.SizeEstimationFactors |
| Modifier and Type | Field and Description |
|---|---|
protected MatrixBlock |
_data |
protected int |
_numRows |
| Constructor and Description |
|---|
CompressedSizeEstimator(MatrixBlock data) |
| Modifier and Type | Method and Description |
|---|---|
protected CompressedSizeEstimator.SizeEstimationFactors |
computeSizeEstimationFactors(UncompressedBitmap ubm,
boolean inclRLE) |
abstract CompressedSizeInfo |
estimateCompressedColGroupSize(int[] colIndexes) |
abstract CompressedSizeInfo |
estimateCompressedColGroupSize(UncompressedBitmap ubm) |
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.
|
int |
getNumRows() |
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.
|
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.
|
protected MatrixBlock _data
protected final int _numRows
public CompressedSizeEstimator(MatrixBlock data)
public int getNumRows()
public abstract CompressedSizeInfo estimateCompressedColGroupSize(int[] colIndexes)
public abstract CompressedSizeInfo estimateCompressedColGroupSize(UncompressedBitmap ubm)
protected CompressedSizeEstimator.SizeEstimationFactors computeSizeEstimationFactors(UncompressedBitmap ubm, boolean inclRLE)
protected static long getRLESize(int numVals,
int numRuns,
int numCols)
numVals - number of value tuplesnumRuns - number of runsnumCols - number of columnsprotected static long getOLESize(int numVals,
float numOffs,
int numSeqs,
int numCols)
numVals - number of value tuplesnumOffs - number of offsetsnumSeqs - number of segment headersnumCols - number of columnsprotected static long getDDCSize(int numVals,
int numRows,
int numCols)
numVals - number of value tuplesnumRows - number of rowsnumCols - number of columnsCopyright © 2017 The Apache Software Foundation. All rights reserved.