Class MTree.Query
- java.lang.Object
-
- moa.clusterers.outliers.utils.mtree.MTree.Query
-
- All Implemented Interfaces:
Iterable<MTree.ResultItem>
public class MTree.Query extends Object implements Iterable<MTree.ResultItem>
AnIterable
class which can be iterated to fetch the results of a nearest-neighbors query.The neighbors are presented in non-decreasing order from the
queryData
argument to thegetNearest*()
call.The query on the M-Tree is executed during the iteration, as the results are fetched. It means that, by the time when the n-th result is fetched, the next result may still not be known, and the resources allocated were only the necessary to identify the n first results.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<MTree.ResultItem>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
iterator
public Iterator<MTree.ResultItem> iterator()
- Specified by:
iterator
in interfaceIterable<MTree.ResultItem>
-
-