|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectQueryProcessor.Query
QueryProcessor.SF.QuerySF
QueryProcessor.SF.ImgIdx.QuerySFIndex
QueryProcessor.SF.ImgIdx.WindsurfQuerySFMtree
public class WindsurfQuerySFMtree
Class representing a query for Windsurf with a scoring function to be solved with a M-tree.
| Field Summary | |
|---|---|
protected java.lang.String |
filename
The absolute path of the file containing the index |
| Fields inherited from class QueryProcessor.SF.QuerySF |
|---|
sf |
| Fields inherited from class QueryProcessor.Query |
|---|
q |
| Constructor Summary | |
|---|---|
WindsurfQuerySFMtree(Image query,
ScoringFunction sf,
java.lang.String filename)
Basic constructor. |
|
| Method Summary | |
|---|---|
boolean |
closeCursor()
Deletes the previously created cursor for sorted access. |
boolean |
createCursor()
Creates a cursor for performing sorted access on the index. |
int |
getDistances()
Returns the number of distance computations performed by the region index. |
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. |
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 java.lang.String filename
| Constructor Detail |
|---|
public WindsurfQuerySFMtree(Image query,
ScoringFunction sf,
java.lang.String filename)
query - Query image.sf - Scoring function to be used.filename - The absolute path of the file containing the index.| Method Detail |
|---|
public java.util.Vector<ScoredResultImage> kNN(int k)
kNN in class QuerySFIndexk - Number of requested results.
public java.util.Vector<ScoredResultImage> range(double r)
range in class QuerySFIndexr - Radius of the query.
public boolean createCursor()
createCursor in class QuerySFIndextrue if the cursor was successfully created, false otherwise.public boolean closeCursor()
closeCursor in class QuerySFIndextrue if the cursor was successfully deleted, false otherwise.public ScoredResultImage getNext()
getNext in class QuerySFIndexpublic boolean resetDistances()
resetDistances in class QuerySFIndextrue if the count was successfully reset, false otherwise.public int getDistances()
getDistances in class QuerySFIndex
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||