Class AColIndex
- java.lang.Object
-
- org.apache.sysds.runtime.compress.colgroup.indexes.AColIndex
-
- All Implemented Interfaces:
IColIndex
- Direct Known Subclasses:
ArrayIndex
,RangeIndex
,SingleIndex
,TwoIndex
public abstract class AColIndex extends Object implements IColIndex
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.sysds.runtime.compress.colgroup.indexes.IColIndex
IColIndex.ColIndexType, IColIndex.SliceResult
-
-
Constructor Summary
Constructors Constructor Description AColIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(IColIndex a, IColIndex b)
This contains method is not strict since it only verifies one element is contained from each a and b.boolean
containsStrict(IColIndex a, IColIndex b)
This contains both a and b ...boolean
equals(Object other)
int
hashCode()
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.sysds.runtime.compress.colgroup.indexes.IColIndex
combine, equals, estimateInMemorySize, findIndex, get, getExactSizeOnDisk, isContiguous, iterator, shift, size, slice, write
-
-
-
-
Method Detail
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object other)
-
contains
public boolean contains(IColIndex a, IColIndex b)
Description copied from interface:IColIndex
This contains method is not strict since it only verifies one element is contained from each a and b.
-
containsStrict
public boolean containsStrict(IColIndex a, IColIndex b)
Description copied from interface:IColIndex
This 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:
containsStrict
in interfaceIColIndex
- Parameters:
a
- one other array to containb
- another array to contain- Returns:
- if this array contains both a and b
-
-