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, unaryAggregateOperations
countNonZerosPerRow, getColIndex, getColIndices, getCompType, getNumCols, getNumRows, getRowIterator, leftMultByMatrix, leftMultByRowVector, leftMultByRowVector, rightMultByMatrix, rightMultByVector, scalarOperation, shiftColIndices
public long estimateInMemorySize()
ColGroup
estimateInMemorySize
in class ColGroup
public void decompressToBlock(MatrixBlock target, int rl, int ru)
ColGroup
decompressToBlock
in class ColGroup
target
- 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)
ColGroup
decompressToBlock
in class ColGroup
target
- 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)
ColGroup
decompressToBlock
in class ColGroup
target
- dense output vectorcolpos
- column to decompress, error if larger or equal numColspublic double get(int r, int c)
ColGroup
public char[] getBitmaps()
public int[] getBitmapOffsets()
public boolean hasZeros()
public void readFields(DataInput in) throws IOException
ColGroup
readFields
in class ColGroupValue
in
- data inputIOException
- if IOException occurspublic void write(DataOutput out) throws IOException
ColGroup
write
in class ColGroupValue
out
- data outputIOException
- if IOException occurspublic long getExactSizeOnDisk()
ColGroup
getExactSizeOnDisk
in class ColGroupValue
public Iterator<IJV> getIterator(int rl, int ru, boolean inclZeros, boolean rowMajor)
ColGroup
getIterator
in class ColGroup
rl
- 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 ColGroupValue
Copyright © 2020 The Apache Software Foundation. All rights reserved.