Class MTree.Query

  • All Implemented Interfaces:
    Iterable<MTree.ResultItem>
    Enclosing class:
    MTree<DATA>

    public class MTree.Query
    extends Object
    implements Iterable<MTree.ResultItem>
    An 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.