QueryProcessor.Utils
Class SortedAccessMtree

java.lang.Object
  extended by QueryProcessor.Utils.SortedAccess
      extended by QueryProcessor.Utils.SortedAccessMtree
Direct Known Subclasses:
SortedAccessMtreeRoundRobin

public abstract class SortedAccessMtree
extends SortedAccess

Abstract class for the management of sorted accesses to the region M-tree.


Field Summary
 
Fields inherited from class QueryProcessor.Utils.SortedAccess
query, time
 
Constructor Summary
SortedAccessMtree(java.lang.String filename, Image query)
          Basic constructor.
 
Method Summary
 int getDistances()
          Returns the number of distance computations performed by the region index.
protected  SortedAccessResult getNext(int index)
          Performs a sorted access on the specified region scan.
 boolean resetDistances()
          Resets the number of distance computations performed by the region index.
 
Methods inherited from class QueryProcessor.Utils.SortedAccess
getBestSortedAccess, 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

SortedAccessMtree

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

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

getNext

protected SortedAccessResult getNext(int index)
Performs a sorted access on the specified region scan.

Specified by:
getNext in class SortedAccess
Parameters:
index - Index of the region scan to be accessed.
Returns:
The result of the requested region scan (null if no such region scan exists or if the requested region scan has been completed).

resetDistances

public boolean resetDistances()
Resets the number of distance computations performed by the region index.

Specified by:
resetDistances in class SortedAccess
Returns:
true if the count was successfully reset, false otherwise.

getDistances

public int getDistances()
Returns the number of distance computations performed by the region index.

Specified by:
getDistances in class SortedAccess
Returns:
Number of distance computations performed by the region index.