|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object QueryProcessor.Utils.SortedAccess
public abstract class SortedAccess
Abstract class for the management of sorted accesses to the region index.
Field Summary | |
---|---|
protected Image |
query
The query image |
protected long |
time
The time (in milliseconds) spent for sorted accesses |
Constructor Summary | |
---|---|
SortedAccess(Image query)
Basic constructor. |
Method Summary | |
---|---|
protected abstract int |
getBestSortedAccess()
Selects the most appropriate region scan to be performed next. |
int |
getCount()
Returns the number of performed sorted accesses. |
abstract int |
getDistances()
Returns the number of distance computations performed by the region index. |
Image |
getImage()
Returns the query image. |
SortedAccessResult |
getNext()
Performs a sorted access (according to the local policy). |
protected abstract SortedAccessResult |
getNext(int index)
Performs a sorted access on the specified region scan. |
long |
getTime()
Returns the time needed to perform sorted accesses. |
void |
reset()
Resets all the counters. |
abstract boolean |
resetDistances()
Resets the number of distance computations performed by the region index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Image query
protected long time
Constructor Detail |
---|
public SortedAccess(Image query)
query
- The query image.Method Detail |
---|
public Image getImage()
protected abstract int getBestSortedAccess()
public int getCount()
protected abstract SortedAccessResult getNext(int index)
index
- Index of the region scan to be accessed.
null
if no such region scan exists or if the requested region scan has been completed).public SortedAccessResult getNext()
null
if no region scan exists or if all region scans have been completed).public void reset()
public abstract boolean resetDistances()
true
if the count was successfully reset, false
otherwise.public abstract int getDistances()
public long getTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |