
private class DoubleDistanceDBIDPairKNNListHeap.Itr extends Object implements DoubleDistanceDBIDListIter
| Modifier and Type | Field and Description |
|---|---|
private int |
pos
Cursor position.
|
| Modifier | Constructor and Description |
|---|---|
private |
DoubleDistanceDBIDPairKNNListHeap.Itr() |
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
Moves the iterator forward to the next entry.
|
void |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
double |
doubleDistance()
Get the distance
|
DoubleDistance |
getDistance()
Deprecated.
use
doubleDistance()! |
DoubleDistanceDBIDPair |
getDistancePair()
Get an object pair.
|
int |
getOffset()
Get current iterator offset.
|
int |
internalGetIndex()
Get the internal index.
|
void |
retract()
Moves the iterator backward to the previous entry.
|
void |
seek(int off)
Moves the iterator to the given position
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
private DoubleDistanceDBIDPairKNNListHeap.Itr()
public int internalGetIndex()
DBIDRefinternalGetIndex in interface DBIDRefpublic boolean valid()
Iterpublic void advance()
Iter@Deprecated public DoubleDistance getDistance()
doubleDistance()!getDistance in interface DistanceDBIDListIter<DoubleDistance>getDistance in interface DoubleDistanceDBIDListIterpublic double doubleDistance()
DoubleDistanceDBIDListIterdoubleDistance in interface DoubleDistanceDBIDListIterpublic DoubleDistanceDBIDPair getDistancePair()
DoubleDistanceDBIDListItergetDistancePair in interface DistanceDBIDListIter<DoubleDistance>getDistancePair in interface DoubleDistanceDBIDListIterpublic int getOffset()
ArrayIterpublic void advance(int count)
ArrayIterpublic void retract()
ArrayIter