public abstract class ColGroupOffset extends ColGroupValue
ColGroup.CompressionType| Modifier and Type | Method and Description | 
|---|---|
| void | decompressToBlock(MatrixBlock target,
                 int colpos)Decompress to block. | 
| void | decompressToBlock(MatrixBlock target,
                 int[] colIndexTargets)Decompress the contents of this column group into uncompressed packed columns | 
| void | decompressToBlock(MatrixBlock target,
                 int rl,
                 int ru)Decompress the contents of this column group into the specified full matrix block. | 
| long | estimateInMemorySize()Note: Must be overridden by child classes to account for additional data and metadata | 
| double | get(int r,
   int c)Get the value at a global row/column position. | 
| int[] | getBitmapOffsets() | 
| char[] | getBitmaps() | 
| long | getExactSizeOnDisk()Returns the exact serialized size of column group. | 
| abstract Iterator<Integer> | getIterator(int k) | 
| Iterator<IJV> | getIterator(int rl,
           int ru,
           boolean inclZeros,
           boolean rowMajor)Create a column group iterator for a row index range. | 
| abstract Iterator<Integer> | getIterator(int k,
           int rl,
           int ru) | 
| boolean | hasZeros() | 
| void | readFields(DataInput in)Deserialize column group from data input. | 
| String | toString() | 
| void | write(DataOutput out)Serializes column group to data output. | 
cleanupThreadLocalMemory, getByteValues, getCounts, getCounts, getCounts, getCounts, getIfCountsType, getNumValues, getValues, getValuesAsBlock, isLossy, setupThreadLocalMemory, unaryAggregateOperations, unaryAggregateOperationscountNonZerosPerRow, getColIndex, getColIndices, getCompType, getNumCols, getNumRows, getRowIterator, leftMultByMatrix, leftMultByRowVector, leftMultByRowVector, rightMultByMatrix, rightMultByVector, scalarOperation, shiftColIndicespublic long estimateInMemorySize()
ColGroupestimateInMemorySize in class ColGrouppublic void decompressToBlock(MatrixBlock target, int rl, int ru)
ColGroupdecompressToBlock in class ColGrouptarget - a matrix block where the columns covered by this column group have not yet been filled in.rl - row lowerru - row upperpublic void decompressToBlock(MatrixBlock target, int[] colIndexTargets)
ColGroupdecompressToBlock in class ColGrouptarget - a dense matrix block. The block must have enough space to hold the contents of this column
                        group.colIndexTargets - array that maps column indices in the original matrix block to columns of target.public void decompressToBlock(MatrixBlock target, int colpos)
ColGroupdecompressToBlock in class ColGrouptarget - dense output vectorcolpos - column to decompress, error if larger or equal numColspublic double get(int r,
                  int c)
ColGrouppublic char[] getBitmaps()
public int[] getBitmapOffsets()
public boolean hasZeros()
public void readFields(DataInput in) throws IOException
ColGroupreadFields in class ColGroupValuein - data inputIOException - if IOException occurspublic void write(DataOutput out) throws IOException
ColGroupwrite in class ColGroupValueout - data outputIOException - if IOException occurspublic long getExactSizeOnDisk()
ColGroupgetExactSizeOnDisk in class ColGroupValuepublic Iterator<IJV> getIterator(int rl, int ru, boolean inclZeros, boolean rowMajor)
ColGroupgetIterator in class ColGrouprl - row lower index, inclusiveru - row upper index, exclusiveinclZeros - include zero values into scope of iteratorrowMajor - use a row major iteration orderpublic abstract Iterator<Integer> getIterator(int k)
k - index of value tuple with associated bitmappublic abstract Iterator<Integer> getIterator(int k, int rl, int ru)
k - index of value tuple with associated bitmaprl - row lower index, inclusiveru - row upper index, exclusivepublic String toString()
toString in class ColGroupValueCopyright © 2020 The Apache Software Foundation. All rights reserved.