public final class ColGroupFactory extends Object
Constructor and Description |
---|
ColGroupFactory() |
Modifier and Type | Method and Description |
---|---|
static AColGroup |
compress(int[] colIndexes,
int rlen,
ABitmap ubm,
AColGroup.CompressionType compType,
CompressionSettings cs,
MatrixBlock rawMatrixBlock,
double tupleSparsity)
Method for compressing a column group.
|
static List<AColGroup> |
compressColGroups(MatrixBlock in,
CompressedSizeInfo csi,
CompressionSettings compSettings,
int k)
The actual compression method, that handles the logic of compressing multiple columns together.
|
static AColGroup |
genColGroupConst(int numCols,
double value)
Generate a constant column group.
|
static AColGroup |
genColGroupConst(int numCols,
double[] values)
Generate a constant column group.
|
static AColGroup |
getColGroupConst(int[] cols,
double value)
Generate a constant column group.
|
static AColGroup |
getColGroupConst(int[] cols,
double[] values)
Generate a constant column group.
|
static AColGroup |
getColGroupConst(int numCols,
ADictionary dict)
Generate a constant column group.
|
public static List<AColGroup> compressColGroups(MatrixBlock in, CompressedSizeInfo csi, CompressionSettings compSettings, int k)
in
- The input matrix, that could have been transposed if CompSettings was set to do thatcsi
- The compression Information extracted from the estimation, this contains which groups of
columns to compress togethercompSettings
- The compression settings to construct the compression based on.k
- The degree of parallelism used.public static AColGroup genColGroupConst(int numCols, double value)
numCols
- The number of columnsvalue
- The value contained in all cells.public static AColGroup genColGroupConst(int numCols, double[] values)
numCols
- The number of columns.values
- The value vector that contains all the unique values for each column in the matrix.public static AColGroup getColGroupConst(int[] cols, double value)
cols
- The specific column indexes that is contained in this constant group.value
- The value contained in all cells.public static AColGroup getColGroupConst(int[] cols, double[] values)
cols
- The specific column indexes that is contained in this constant group.values
- The value vector that contains all the unique values for each column in the matrix.public static AColGroup getColGroupConst(int numCols, ADictionary dict)
numCols
- The number of columns.dict
- The dictionary to contain int the Constant group.public static AColGroup compress(int[] colIndexes, int rlen, ABitmap ubm, AColGroup.CompressionType compType, CompressionSettings cs, MatrixBlock rawMatrixBlock, double tupleSparsity)
colIndexes
- The column indexes to compressrlen
- The number of rows in the columnsubm
- The bitmap containing all the data needed for the compression (unless Uncompressed ColGroup)compType
- The CompressionType selected.cs
- The compression settings used for the given compression.rawMatrixBlock
- The copy of the original input (maybe transposed) MatrixBlocktupleSparsity
- The sparsity of the dictionary when constructed.Copyright © 2021 The Apache Software Foundation. All rights reserved.