public class ColGroupDDC1 extends ColGroupDDC
ColGroup.CompressionType| Modifier and Type | Method and Description |
|---|---|
long |
estimateInMemorySize()
Note: Must be overridden by child classes to account for additional data and metadata
|
byte[] |
getData()
Getter method to get the data, contained in The DDC ColGroup.
|
long |
getExactSizeOnDisk()
Returns the exact serialized size of column group.
|
void |
readFields(DataInput in)
Deserialize column group from data input.
|
void |
recodeData(HashMap<Double,Integer> map) |
void |
rightMultByVector(double[] b,
double[] c,
int rl,
int ru,
double[] dictVals)
Multiply the slice of the matrix that this column group represents by a vector on the right.
|
ColGroup |
scalarOperation(ScalarOperator op)
Perform the specified scalar operation directly on the compressed column group, without decompressing individual
cells if possible.
|
String |
toString() |
void |
write(DataOutput out)
Serializes column group to data output.
|
countNonZerosPerRow, decompressToBlock, decompressToBlock, decompressToBlock, get, getCompType, getCounts, getCounts, getIterator, getRowIterator, leftMultByMatrix, leftMultByRowVector, leftMultByRowVector, postScaling, postScaling, preAggregate, preAggregate, rightMultByMatrixcleanupThreadLocalMemory, getByteValues, getCounts, getCounts, getIfCountsType, getNumValues, getValues, getValuesAsBlock, isLossy, setupThreadLocalMemory, unaryAggregateOperations, unaryAggregateOperationsgetColIndex, getColIndices, getNumCols, getNumRows, shiftColIndicespublic byte[] getData()
public void rightMultByVector(double[] b,
double[] c,
int rl,
int ru,
double[] dictVals)
ColGrouprightMultByVector in class ColGroupb - vector to multiply by (tall vector)c - accumulator for holding the resultrl - row lowerru - row upper if the internal SystemML code that performs the multiplication experiences an errordictVals - The dictionary values materializedpublic void write(DataOutput out) throws IOException
ColGroupwrite in class ColGroupValueout - data outputIOException - if IOException occurspublic void readFields(DataInput in) throws IOException
ColGroupreadFields in class ColGroupValuein - data inputIOException - if IOException occurspublic long getExactSizeOnDisk()
ColGroupgetExactSizeOnDisk in class ColGroupValuepublic long estimateInMemorySize()
ColGroupestimateInMemorySize in class ColGrouppublic ColGroup scalarOperation(ScalarOperator op)
ColGroupscalarOperation in class ColGroupop - operation to performpublic String toString()
toString in class ColGroupDDCCopyright © 2020 The Apache Software Foundation. All rights reserved.