QueryProcessor.Utils
Class SortedAccessMtreeRoundRobin

java.lang.Object
  extended by QueryProcessor.Utils.SortedAccess
      extended by QueryProcessor.Utils.SortedAccessMtree
          extended by QueryProcessor.Utils.SortedAccessMtreeRoundRobin

public class SortedAccessMtreeRoundRobin
extends SortedAccessMtree

Class for the management of sorted accesses to the region M-tree using the round robin policy.


Field Summary
 
Fields inherited from class QueryProcessor.Utils.SortedAccess
query, time
 
Constructor Summary
SortedAccessMtreeRoundRobin(java.lang.String filename, Image query)
          Basic constructor.
 
Method Summary
protected  int getBestSortedAccess()
          Selects the region scan to be performed next using the round robin policy.
 
Methods inherited from class QueryProcessor.Utils.SortedAccessMtree
getDistances, getNext, resetDistances
 
Methods inherited from class QueryProcessor.Utils.SortedAccess
getCount, getImage, getNext, getTime, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedAccessMtreeRoundRobin

public SortedAccessMtreeRoundRobin(java.lang.String filename,
                                   Image query)
Basic constructor.

Parameters:
filename - The absolute path of the file containing the M-tree index.
query - Query image.
Method Detail

getBestSortedAccess

protected int getBestSortedAccess()
Selects the region scan to be performed next using the round robin policy.

Specified by:
getBestSortedAccess in class SortedAccess
Returns:
Index of the best region scan.