Class AIterator
- java.lang.Object
- 
- org.apache.sysds.runtime.compress.colgroup.offset.AIterator
 
- 
 public abstract class AIterator extends Object Iterator interface, that returns a iterator of the indexes while also maintaining a data index.
- 
- 
Field SummaryFields Modifier and Type Field Description static org.apache.commons.logging.LogLOG
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AIteratorclone()Copy the iterator with the current values.booleanequals(AIterator o)Unsafe version of equals, note that it should only compare iterators stemming from the same Offset Object.abstract intgetDataIndex()Get the current data index associated with the index returned from value.abstract intgetOffsetsIndex()Get the current offsets index, that points to the underlying offsets list.booleanisNotOver(int ub)Find out if the current offset is not exceeding the index given.abstract intnext()Increment the pointers such that the both index and dataIndex is incremented to the next entry.voidsetOff(int off)abstract intskipTo(int idx)Skip values until index is achieved.intvalue()Get the current index value, note this correspond to a row index in the original matrix.
 
- 
- 
- 
Method Detail- 
nextpublic abstract int next() Increment the pointers such that the both index and dataIndex is incremented to the next entry.- Returns:
- The new offset.
 
 - 
valuepublic int value() Get the current index value, note this correspond to a row index in the original matrix.- Returns:
- The current value pointed at.
 
 - 
setOffpublic void setOff(int off) 
 - 
isNotOverpublic boolean isNotOver(int ub) Find out if the current offset is not exceeding the index given.- Parameters:
- ub- The offset to not exceed
- Returns:
- boolean if it is exceeded.
 
 - 
getDataIndexpublic abstract int getDataIndex() Get the current data index associated with the index returned from value. This index points to a position int the mapToData object, that then inturn can be used to lookup the dictionary entry in ADictionary.- Returns:
- The Data Index.
 
 - 
getOffsetsIndexpublic abstract int getOffsetsIndex() Get the current offsets index, that points to the underlying offsets list. This is available for debugging purposes, not to be used for the calling classes.- Returns:
- The Offsets Index.
 
 - 
skipTopublic abstract int skipTo(int idx) Skip values until index is achieved.- Parameters:
- idx- The index to skip to.
- Returns:
- the index that follows or are equal to the skip to index.
 
 - 
clonepublic abstract AIterator clone() Copy the iterator with the current values.
 - 
equalspublic boolean equals(AIterator o) Unsafe version of equals, note that it should only compare iterators stemming from the same Offset Object.- Parameters:
- o- The Iterator to compare
- Returns:
- The result
 
 
- 
 
-