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, shiftColIndicespublic int getNumValues()
public double[] getValues()
ColGrouppublic byte[] getByteValues()
public MatrixBlock getValuesAsBlock()
ColGroupgetValuesAsBlock in class ColGrouppublic 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()
ColGroupgetIfCountsType in class ColGrouppublic void unaryAggregateOperations(AggregateUnaryOperator op, double[] c)
ColGroupunaryAggregateOperations in class ColGroupop - The operator usedc - Rhe output matrix block.public void unaryAggregateOperations(AggregateUnaryOperator op, double[] c, int rl, int ru)
ColGroupunaryAggregateOperations in class ColGroupop - 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()
ColGrouppublic void readFields(DataInput in) throws IOException
ColGroupreadFields in class ColGroupin - data inputIOException - if IOException occurspublic void write(DataOutput out) throws IOException
ColGroupwrite in class ColGroupout - data outputIOException - if IOException occurspublic long getExactSizeOnDisk()
ColGroupgetExactSizeOnDisk in class ColGrouppublic abstract int[] getCounts(int[] out)
public abstract int[] getCounts(int rl,
                                int ru,
                                int[] out)
Copyright © 2020 The Apache Software Foundation. All rights reserved.