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 an ColGroup. | 
| 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 numRows,
                int numCols,
                double value) | 
| static AColGroup | getColGroupConst(int numRows,
                int[] cols,
                double value) | 
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 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 selectedcs - The compression Settings used for the given compressionrawMatrixBlock - The copy of the original input (maybe transposed) MatrixBlocktupleSparsity - The sparsity of the ubs entries.public static AColGroup genColGroupConst(int numRows, int numCols, double value)
public static AColGroup getColGroupConst(int numRows, int[] cols, double value)
Copyright © 2021 The Apache Software Foundation. All rights reserved.