private class KNNUtil.KNNSubList.Itr extends Object implements DistanceDBIDResultIter<D>
Modifier and Type | Field and Description |
---|---|
private int |
pos
Current position.
|
Modifier | Constructor and Description |
---|---|
private |
KNNUtil.KNNSubList.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 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>>
public int internalGetIndex()
DBIDRef
internalGetIndex
in interface DBIDRef