|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object QueryProcessor.Query QueryProcessor.Skyline.QuerySkyline QueryProcessor.Skyline.Skyset.Skyset
public class Skyset
Class implementing the Sky-set algorithm for solving a Skyline query.
Field Summary |
---|
Fields inherited from class QueryProcessor.Query |
---|
q |
Constructor Summary | |
---|---|
Skyset(Image q,
FeatureManager fm,
SortedAccess sam)
Basic constructor. |
Method Summary | |
---|---|
boolean |
close()
Deletes the previously created cursor for sorted access. |
int |
getDistances()
Returns the total number of computed distances. |
SkylineResultLayer |
getFirstLayer()
Computes and returns the undominated images. |
int |
getImageComparisonsCount()
Returns the number of performed image comparisons. |
long |
getImageComparisonTime()
Returns the time needed to compare images for domination. |
long |
getImageRetrievalTime()
Returns the time spent for retrieving features from the DB. |
SkylineResultImage |
getNext()
Returns the next undominated image. |
SkylineResultMultiLayer |
getNext(int k)
Returns the next k images. |
SkylineResultLayer |
getNextLayer()
Returns the current layer of undominated images. |
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 |
getThresholdDominationTime()
Returns the time needed to compare images for domination against the threshold image. |
long |
getTime()
Returns the time needed to perform the whole algorithm. |
int |
getVectorComparisonsCount()
Returns the number of performed vector comparisons. |
boolean |
resetDistances()
Resets the number of computed distances. |
boolean |
resultExists()
Checks whether an image that can be output as a result (i.e., not dominated by the threshold) exists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Skyset(Image q, FeatureManager fm, SortedAccess sam)
q
- Query image.fm
- The feature manager to be used.sam
- The sorted access manager to be usedMethod Detail |
---|
public boolean close()
true
, always.public SkylineResultImage getNext()
null
if no such image exist.public SkylineResultMultiLayer getNext(int k)
k
- Number of requested results.
public SkylineResultLayer getNextLayer()
public SkylineResultLayer getFirstLayer()
getFirstLayer
in class QuerySkyline
public boolean resultExists()
true
if an image exists that can be output, false
otherwise.public int getRandomAccessCount()
public int getSortedAccessCount()
public int getRandomAccessDistances()
public int getSortedAccessDistances()
public int getDistances()
public boolean resetDistances()
true
if the count was successfully reset, false
otherwise.public int getImageComparisonsCount()
public int getVectorComparisonsCount()
public long getImageRetrievalTime()
public long getSortedAccessTime()
public long getRandomAccessTime()
public long getImageComparisonTime()
public long getThresholdDominationTime()
public long getTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |