Interface IEncode
-
- All Known Implementing Classes:
ConstEncoding,DenseEncoding,EmptyEncoding,SparseEncoding
public interface IEncodeThis interface covers an intermediate encoding for the samples to improve the efficiency of the joining of sample column groups.
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.commons.logging.LogLOG
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description IEncodecombine(IEncode e)Combine two encodings, note it should be guaranteed by the caller that the number of unique multiplied does not overflow Integer.static IEncodecreateFromMatrixBlock(MatrixBlock m, boolean transposed, int rowCol)static IEncodecreateFromMatrixBlock(MatrixBlock m, boolean transposed, int[] rowCols)static IEncodecreateFromMatrixBlockDelta(MatrixBlock m, boolean transposed, int[] rowCols)static IEncodecreateFromMatrixBlockDelta(MatrixBlock m, boolean transposed, int[] rowCols, int nVals)EstimationFactorsextractFacts(int[] cols, int nRows, double tupleSparsity, double matrixSparsity)intgetUnique()booleanisDense()Signify if the counts are including zero or without zero.
-
-
-
Method Detail
-
createFromMatrixBlock
static IEncode createFromMatrixBlock(MatrixBlock m, boolean transposed, int[] rowCols)
-
createFromMatrixBlockDelta
static IEncode createFromMatrixBlockDelta(MatrixBlock m, boolean transposed, int[] rowCols)
-
createFromMatrixBlockDelta
static IEncode createFromMatrixBlockDelta(MatrixBlock m, boolean transposed, int[] rowCols, int nVals)
-
createFromMatrixBlock
static IEncode createFromMatrixBlock(MatrixBlock m, boolean transposed, int rowCol)
-
combine
IEncode combine(IEncode e)
Combine two encodings, note it should be guaranteed by the caller that the number of unique multiplied does not overflow Integer.- Parameters:
e- The other side to combine with- Returns:
- The combined encoding
-
getUnique
int getUnique()
-
extractFacts
EstimationFactors extractFacts(int[] cols, int nRows, double tupleSparsity, double matrixSparsity)
-
isDense
boolean isDense()
Signify if the counts are including zero or without zero.- Returns:
- is dense
-
-