|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object QueryProcessor.Utils.RegIdx.RegionQuery QueryProcessor.Utils.RegIdx.WindsurfRegionQueryMtree
public class WindsurfRegionQueryMtree
Class representing a region query for Windsurf using M-tree.
Field Summary |
---|
Fields inherited from class QueryProcessor.Utils.RegIdx.RegionQuery |
---|
query |
Constructor Summary | |
---|---|
WindsurfRegionQueryMtree(Region query,
java.lang.String filename)
Basic constructor. |
Method Summary | |
---|---|
int |
getDistances()
Returns the number of distance computations performed by the region index. |
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 |
Constructor Detail |
---|
public WindsurfRegionQueryMtree(Region query, java.lang.String filename)
query
- The query region.filename
- The absolute path of the file containing the M-tree index.Method Detail |
---|
public java.util.Vector<ScoredResultImage> kNN(int k)
kNN
in class RegionQuery
k
- Number of requested results.
public java.util.Vector<ScoredResultImage> range(double r)
range
in class RegionQuery
r
- Radius of the query.
public boolean resetDistances()
resetDistances
in class RegionQuery
true
if the count was successfully reset, false
otherwise.public int getDistances()
getDistances
in class RegionQuery
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |