public class MTree.Query extends Object implements Iterable<MTree.ResultItem>
Iterable
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 the getNearest*()
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.
public Iterator<MTree.ResultItem> iterator()
iterator
in interface Iterable<MTree.ResultItem>
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.