|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object QueryProcessor.Query QueryProcessor.SF.QuerySF QueryProcessor.SF.ImgIdx.QuerySFIndex
public abstract class QuerySFIndex
Abstract class representing a query with a scoring function to be solved with an index.
Field Summary |
---|
Fields inherited from class QueryProcessor.SF.QuerySF |
---|
sf |
Fields inherited from class QueryProcessor.Query |
---|
q |
Constructor Summary | |
---|---|
QuerySFIndex(Image q,
ScoringFunction sf)
Basic constructor. |
Method Summary | |
---|---|
abstract boolean |
closeCursor()
Deletes the previously created cursor for sorted access. |
abstract boolean |
createCursor()
Creates a cursor for performing sorted access on the index. |
abstract int |
getDistances()
Returns the number of distance computations performed by the region index. |
abstract ScoredResultImage |
getNext()
Performs a sorted access on the existing cursor. |
java.util.Vector<ScoredResultImage> |
kNN(int k)
Performs a k-nn query. |
java.util.Vector<ScoredResultImage> |
range(double r)
Performs a range query. |
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 |
Constructor Detail |
---|
public QuerySFIndex(Image q, ScoringFunction sf)
q
- Query image.sf
- Scoring function to be used.Method Detail |
---|
public abstract boolean createCursor()
true
if the cursor was successfully created, false
otherwise.public abstract boolean closeCursor()
true
if the cursor was successfully deleted, false
otherwise.public java.util.Vector<ScoredResultImage> kNN(int k)
kNN
in class QuerySF
k
- Number of requested results.
public java.util.Vector<ScoredResultImage> range(double r)
r
- Radius of the query.
public abstract ScoredResultImage getNext()
null
if no such image exist.public abstract boolean resetDistances()
true
if the count was successfully reset, false
otherwise.public abstract int getDistances()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |