Class ConstScheme
- java.lang.Object
-
- org.apache.sysds.runtime.compress.colgroup.scheme.ConstScheme
-
- All Implemented Interfaces:
ICLAScheme
public class ConstScheme extends Object implements ICLAScheme
-
-
Field Summary
-
Fields inherited from interface org.apache.sysds.runtime.compress.colgroup.scheme.ICLAScheme
LOG
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ICLAScheme
create(ColGroupConst g)
AColGroup
encode(MatrixBlock data)
Encode the given matrix block into the scheme provided in the instance.AColGroup
encode(MatrixBlock data, IColIndex columns)
Encode a given matrix block into the scheme provided in the instance but overwrite what columns to use.
-
-
-
Method Detail
-
create
public static ICLAScheme create(ColGroupConst g)
-
encode
public AColGroup encode(MatrixBlock data)
Description copied from interface:ICLAScheme
Encode the given matrix block into the scheme provided in the instance. The method returns null, if it is impossible to encode the input data with the given scheme.- Specified by:
encode
in interfaceICLAScheme
- Parameters:
data
- The data to encode- Returns:
- A compressed column group or null.
-
encode
public AColGroup encode(MatrixBlock data, IColIndex columns)
Description copied from interface:ICLAScheme
Encode a given matrix block into the scheme provided in the instance but overwrite what columns to use. The method returns null, if it is impossible to encode the input data with the given scheme.- Specified by:
encode
in interfaceICLAScheme
- Parameters:
data
- The data to encodecolumns
- The columns to apply the scheme to, but must be of same number than the encoded scheme- Returns:
- A compressed column group or null
-
-