
public class IncreasingVectorIter extends AbstractVectorIter implements IntegerComparator
pos, sort, vec| Constructor and Description |
|---|
IncreasingVectorIter(NumberVector vec)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IncreasingVectorIter |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
int |
compare(int x,
int y)
Compare two Integer.
|
IncreasingVectorIter |
retract()
Moves the iterator backward to the previous entry.
|
IncreasingVectorIter |
seek(int off)
Moves the iterator to the given position
|
advance, dim, getOffset, tiedToPrevious, validpublic IncreasingVectorIter(NumberVector vec)
vec - Vector to iterate over.public int compare(int x,
int y)
IntegerComparatorcompare in interface IntegerComparatorx - First inty - Second intpublic IncreasingVectorIter advance(int count)
ArrayIteradvance in interface ArrayIteradvance in class AbstractVectorItercount - offset to move forward or backwardspublic IncreasingVectorIter retract()
ArrayIterretract in interface ArrayIterretract in class AbstractVectorIterpublic IncreasingVectorIter seek(int off)
ArrayIterseek in interface ArrayIterseek in class AbstractVectorIteroff - Seek offsetCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.