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, rightMultByMatrix
cleanupThreadLocalMemory, getByteValues, getCounts, getCounts, getIfCountsType, getNumValues, getValues, getValuesAsBlock, isLossy, setupThreadLocalMemory, unaryAggregateOperations, unaryAggregateOperations
getColIndex, getColIndices, getNumCols, getNumRows, shiftColIndices
public byte[] getData()
public void rightMultByVector(double[] b, double[] c, int rl, int ru, double[] dictVals)
ColGroup
rightMultByVector
in class ColGroup
b
- 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
ColGroup
write
in class ColGroupValue
out
- data outputIOException
- if IOException occurspublic void readFields(DataInput in) throws IOException
ColGroup
readFields
in class ColGroupValue
in
- data inputIOException
- if IOException occurspublic long getExactSizeOnDisk()
ColGroup
getExactSizeOnDisk
in class ColGroupValue
public long estimateInMemorySize()
ColGroup
estimateInMemorySize
in class ColGroup
public ColGroup scalarOperation(ScalarOperator op)
ColGroup
scalarOperation
in class ColGroup
op
- operation to performpublic String toString()
toString
in class ColGroupDDC
Copyright © 2020 The Apache Software Foundation. All rights reserved.