Class CompressionScheme
java.lang.Object
org.apache.sysds.runtime.compress.colgroup.scheme.CompressionScheme
A Class that contains a full compression scheme that can be applied to MatrixBlocks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode(MatrixBlock mb) Encode the given matrix block, it is assumed that the given MatrixBlock already fit the current scheme.encode(MatrixBlock mb, int k) Encode the given matrix block, it is assumed that the given MatrixBlock already fit the current scheme.get(int i) Get the encoding in a specific index.static CompressionSchemeExtract a compression scheme for the given matrix blocktoString()update(MatrixBlock mb) Update the encodings contained to also enable compression of the given mb.update(MatrixBlock mb, int k) Update the encodings contained to also enable compression of the given mb.updateAndEncode(MatrixBlock mb, int k)
-
Constructor Details
-
CompressionScheme
-
-
Method Details
-
get
Get the encoding in a specific index.- Parameters:
i- the index- Returns:
- The encoding in that index
-
encode
Encode the given matrix block, it is assumed that the given MatrixBlock already fit the current scheme.- Parameters:
mb- A MatrixBlock given that should fit the scheme- Returns:
- A Compressed instance of the given matrixBlock;
-
encode
Encode the given matrix block, it is assumed that the given MatrixBlock already fit the current scheme.- Parameters:
mb- A MatrixBlock given that should fit the schemek- The parallelization degree- Returns:
- A Compressed instance of the given matrixBlock;
-
update
Update the encodings contained to also enable compression of the given mb.- Parameters:
mb- The matrixBlock to enable compression on.- Returns:
- The updated scheme. (It is updated in place)
-
update
Update the encodings contained to also enable compression of the given mb.- Parameters:
mb- The matrixBlock to enable compression on.k- The parallelization degree- Returns:
- The updated scheme. (It is updated in place)
-
getScheme
Extract a compression scheme for the given matrix block- Parameters:
cmb- The given compressed matrix block- Returns:
- A Compression scheme that can be applied to new encodings.
-
updateAndEncode
-
updateAndEncode
-
toString
-