|
||||||||||
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 QueryProcessor.SF.kNNset.kNNset
public class kNNset
Class implementing the k-NN-set algorithm for solving a query with a scoring function.
Field Summary |
---|
Fields inherited from class QueryProcessor.SF.QuerySF |
---|
sf |
Fields inherited from class QueryProcessor.Query |
---|
q |
Constructor Summary | |
---|---|
kNNset(Image q,
ScoringFunction sf,
FeatureManager fm,
SortedAccess sam)
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 total number of computed distances. |
long |
getImageRetrievalTime()
Returns the time spent for retrieving features from the DB. |
ScoredResultImage |
getNext()
Returns the next best image. |
int |
getRandomAccessCount()
Returns the number of performed random accesses. |
int |
getRandomAccessDistances()
Returns the number of distances computed outside of the index. |
long |
getRandomAccessTime()
Returns the time needed to perform random accesses. |
int |
getSortedAccessCount()
Returns the number of performed sorted accesses. |
int |
getSortedAccessDistances()
Returns the number of distances computed by the index. |
long |
getSortedAccessTime()
Returns the time needed to perform sorted accesses. |
long |
getTime()
Returns the time needed to perform the whole algorithm. |
boolean |
resetDistances()
Resets the number of computed distances. |
Methods inherited from class QueryProcessor.SF.ImgIdx.QuerySFIndex |
---|
kNN, range |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public kNNset(Image q, ScoringFunction sf, FeatureManager fm, SortedAccess sam)
q
- Query image.sf
- Scoring function to be used.fm
- The feature manager to be used.sam
- The sorted access manager to be usedMethod Detail |
---|
public boolean createCursor()
createCursor
in class QuerySFIndex
true
, always.public boolean closeCursor()
closeCursor
in class QuerySFIndex
true
, always.public ScoredResultImage getNext()
getNext
in class QuerySFIndex
null
if no such image exist.public long getSortedAccessTime()
public long getRandomAccessTime()
public long getImageRetrievalTime()
public long getTime()
public int getRandomAccessCount()
public int getSortedAccessCount()
public int getRandomAccessDistances()
public int getSortedAccessDistances()
public int getDistances()
getDistances
in class QuerySFIndex
public boolean resetDistances()
resetDistances
in class QuerySFIndex
true
if the count was successfully reset, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |