public abstract class ColGroupValue extends ColGroup
ColGroup.CompressionType
Modifier and Type | Method and Description |
---|---|
static void |
cleanupThreadLocalMemory() |
byte[] |
getByteValues() |
int[] |
getCounts()
Returns the counts of values inside the MatrixBlock returned in getValuesAsBlock Throws an exception if the
getIfCountsType is false.
|
abstract int[] |
getCounts(int[] out) |
int[] |
getCounts(int rl,
int ru)
Returns the counts of values inside the MatrixBlock returned in getValuesAsBlock Throws an exception if the
getIfCountsType is false.
|
abstract int[] |
getCounts(int rl,
int ru,
int[] out) |
long |
getExactSizeOnDisk()
Returns the exact serialized size of column group.
|
boolean |
getIfCountsType()
Returns true if in the getValuesAsBlock method returns values in groups (that needs to be counted) or
individually potentially repeated values
|
int |
getNumValues()
Obtain number of distinct sets of values associated with the bitmaps in this column group.
|
double[] |
getValues()
Get all the values in the colGroup.
|
MatrixBlock |
getValuesAsBlock()
Returns the ColGroup as a MatrixBlock.
|
boolean |
isLossy()
Is Lossy
|
void |
readFields(DataInput in)
Deserialize column group from data input.
|
static void |
setupThreadLocalMemory(int len) |
String |
toString() |
void |
unaryAggregateOperations(AggregateUnaryOperator op,
double[] c)
Unary Aggregate operator, since aggregate operators require new object output, the output becomes an uncompressed
matrix.
|
void |
unaryAggregateOperations(AggregateUnaryOperator op,
double[] c,
int rl,
int ru)
Unary Aggregate operator, since aggregate operators require new object output, the output becomes an uncompressed
matrix.
|
void |
write(DataOutput out)
Serializes column group to data output.
|
countNonZerosPerRow, decompressToBlock, decompressToBlock, decompressToBlock, estimateInMemorySize, get, getColIndex, getColIndices, getCompType, getIterator, getNumCols, getNumRows, getRowIterator, leftMultByMatrix, leftMultByRowVector, leftMultByRowVector, rightMultByMatrix, rightMultByVector, scalarOperation, shiftColIndices
public int getNumValues()
public double[] getValues()
ColGroup
public byte[] getByteValues()
public MatrixBlock getValuesAsBlock()
ColGroup
getValuesAsBlock
in class ColGroup
public final int[] getCounts()
public final int[] getCounts(int rl, int ru)
rl
- the lower index of the interval of rows queriedru
- the the upper boundary of the interval of rows queriedpublic boolean getIfCountsType()
ColGroup
getIfCountsType
in class ColGroup
public void unaryAggregateOperations(AggregateUnaryOperator op, double[] c)
ColGroup
unaryAggregateOperations
in class ColGroup
op
- The operator usedc
- Rhe output matrix block.public void unaryAggregateOperations(AggregateUnaryOperator op, double[] c, int rl, int ru)
ColGroup
unaryAggregateOperations
in class ColGroup
op
- The operator usedc
- The output matrix block.rl
- The Starting Row to do aggregation fromru
- The last Row to do aggregation to (not included)public static void setupThreadLocalMemory(int len)
public static void cleanupThreadLocalMemory()
public boolean isLossy()
ColGroup
public void readFields(DataInput in) throws IOException
ColGroup
readFields
in class ColGroup
in
- data inputIOException
- if IOException occurspublic void write(DataOutput out) throws IOException
ColGroup
write
in class ColGroup
out
- data outputIOException
- if IOException occurspublic long getExactSizeOnDisk()
ColGroup
getExactSizeOnDisk
in class ColGroup
public abstract int[] getCounts(int[] out)
public abstract int[] getCounts(int rl, int ru, int[] out)
Copyright © 2020 The Apache Software Foundation. All rights reserved.