private class GenericKNNList.Itr extends Object implements DistanceDBIDResultIter<D>
Modifier and Type | Field and Description |
---|---|
private int |
pos
Cursor position.
|
Modifier | Constructor and Description |
---|---|
private |
GenericKNNList.Itr() |
Modifier and Type | Method and Description |
---|---|
void |
advance()
Moves the iterator forward to the next entry.
|
D |
getDistance()
Get the distance
|
DistanceDBIDPair<D> |
getDistancePair()
Get an object pair.
|
int |
internalGetIndex()
Get the internal index.
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
public int internalGetIndex()
DBIDRef
internalGetIndex
in interface DBIDRef
public boolean valid()
Iter
public void advance()
Iter
public D getDistance()
DistanceDBIDResultIter
getDistance
in interface DistanceDBIDResultIter<D extends Distance<D>>
public DistanceDBIDPair<D> getDistancePair()
DistanceDBIDResultIter
getDistancePair
in interface DistanceDBIDResultIter<D extends Distance<D>>