Class ColGroupFactory


  • public class ColGroupFactory
    extends Object
    Factory class for constructing ColGroups.
    • Method Detail

      • compressColGroups

        public static List<AColGroup> compressColGroups​(MatrixBlock in,
                                                        CompressedSizeInfo csi,
                                                        CompressionSettings cs,
                                                        int k)
        The actual compression method, that handles the logic of compressing multiple columns together.
        Parameters:
        in - The input matrix, that could have been transposed. If it is transposed the compSettings should specify this.
        csi - The compression information extracted from the estimation, this contains which groups of columns to compress together.
        cs - The compression settings to specify how to compress.
        k - The degree of parallelism to be used in the compression of the column groups.
        Returns:
        A resulting array of ColGroups, containing the compressed information from the input matrix block.
      • compressColGroups

        public static List<AColGroup> compressColGroups​(MatrixBlock in,
                                                        CompressedSizeInfo csi,
                                                        CompressionSettings cs,
                                                        ACostEstimate ce,
                                                        int k)
        Parameters:
        in - The input matrix, that could have been transposed. If it is transposed the compSettings should specify this.
        csi - The compression information extracted from the estimation, this contains which groups of columns to compress together.
        cs - The compression settings to specify how to compress.
        ce - The cost estimator used for the compression
        k - The degree of parallelism to be used in the compression of the column groups.
        Returns:
        A resulting array of ColGroups, containing the compressed information from the input matrix block.