Class AColIndex
java.lang.Object
org.apache.sysds.runtime.compress.colgroup.indexes.AColIndex
- All Implemented Interfaces:
IColIndex
- Direct Known Subclasses:
ArrayIndex,CombinedIndex,RangeIndex,SingleIndex,TwoIndex,TwoRangesIndex
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sysds.runtime.compress.colgroup.indexes.IColIndex
IColIndex.ColIndexType, IColIndex.SliceResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis contains method is not strict since it only verifies one element is contained from each a and b.booleancontainsAny(IColIndex idx) Analyze if this column group contain any of the given column Ids.booleancontainsStrict(IColIndex a, IColIndex b) This contains both a and b ...voiddecompressToDenseFromSparse(SparseBlock sb, int vr, int off, double[] c) Decompress this column index into the dense c array.voiddecompressVec(int nCol, double[] c, int off, double[] values, int rowIdx) Decompress into c using the values provided.booleaninthashCode()Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sysds.runtime.compress.colgroup.indexes.IColIndex
avgOfIndex, combine, contains, equals, estimateInMemorySize, findIndex, get, getExactSizeOnDisk, getReorderingIndex, isContiguous, isSorted, iterator, shift, size, slice, sort, write
-
Constructor Details
-
AColIndex
public AColIndex()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
contains
Description copied from interface:IColIndexThis contains method is not strict since it only verifies one element is contained from each a and b. -
containsStrict
Description copied from interface:IColIndexThis contains both a and b ... it is strict because it verifies all cells. Note it returns false if there are more elements in this than the sum of a and b.- Specified by:
containsStrictin interfaceIColIndex- Parameters:
a- one other array to containb- another array to contain- Returns:
- if this array contains both a and b
-
containsAny
Description copied from interface:IColIndexAnalyze if this column group contain any of the given column Ids.- Specified by:
containsAnyin interfaceIColIndex- Parameters:
idx- A List of indexes- Returns:
- If it is contained
-
decompressToDenseFromSparse
Description copied from interface:IColIndexDecompress this column index into the dense c array.- Specified by:
decompressToDenseFromSparsein interfaceIColIndex- Parameters:
sb- A sparse block to extract values out of and insert into cvr- The row to extract from the sparse blockoff- The offset that the row starts at in c.c- The dense output to decompress into
-
decompressVec
public void decompressVec(int nCol, double[] c, int off, double[] values, int rowIdx) Description copied from interface:IColIndexDecompress into c using the values provided. The offset to start into c is off and then row index is similarly the offset of values. nCol specify the number of values to add over.- Specified by:
decompressVecin interfaceIColIndex- Parameters:
nCol- The number of columns to copy.c- The output to add intooff- The offset to start in cvalues- the values to copy fromrowIdx- The offset to start in values
-