Package be.panako.strategy.olaf
Class OlafStrategy
java.lang.Object
be.panako.strategy.Strategy
be.panako.strategy.olaf.OlafStrategy
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()Clear al information from the key value storedoublebooleanhasResource(String resource) Are there fingerprints for this resource already stored in the database?booleanvoidload()voidmonitor(String query, int maxNumberOfReqults, Set<Integer> avoid, QueryResultHandler handler) name()voidvoidPrint some storage statistics.voidquery(String query, int maxNumberOfResults, Set<Integer> avoid, QueryResultHandler handler) voidquery(String query, int maxNumberOfResults, Set<Integer> avoid, QueryResultHandler handler, double startTimeOffset, double numberOfSeconds) Returns an internal identifier, probably an integer, for a given filename.doubleStore an audio file in the data store.toFingerprints(String resource) toFingerprints(String resource, double startTimeOffset, double numberOfSeconds) Methods inherited from class be.panako.strategy.StrategyclassToName, getInstance
- 
Constructor Details- 
OlafStrategypublic OlafStrategy()
 
- 
- 
Method Details- 
storeDescription copied from class:StrategyStore an audio file in the data store. The name of the resource is used to extract a numerical identifier. The description is arbitrary.
- 
delete
- 
toFingerprints
- 
toFingerprintspublic List<OlafFingerprint> toFingerprints(String resource, double startTimeOffset, double numberOfSeconds) 
- 
querypublic void query(String query, int maxNumberOfResults, Set<Integer> avoid, QueryResultHandler handler) 
- 
querypublic void query(String query, int maxNumberOfResults, Set<Integer> avoid, QueryResultHandler handler, double startTimeOffset, double numberOfSeconds) 
- 
monitorpublic void monitor(String query, int maxNumberOfReqults, Set<Integer> avoid, QueryResultHandler handler) 
- 
hasResourceDescription copied from class:StrategyAre there fingerprints for this resource already stored in the database?- Specified by:
- hasResourcein class- Strategy
- Parameters:
- resource- The name of the resource.
- Returns:
- True if the resource is already treated. False otherwise.
 
- 
isStorageAvailablepublic boolean isStorageAvailable()- Specified by:
- isStorageAvailablein class- Strategy
- Returns:
- True if the storage is available, false otherwise.
 
- 
printStorageStatisticspublic void printStorageStatistics()Description copied from class:StrategyPrint some storage statistics.- Specified by:
- printStorageStatisticsin class- Strategy
 
- 
resolveDescription copied from class:StrategyReturns an internal identifier, probably an integer, for a given filename.
- 
loadpublic void load()
- 
print
- 
name
- 
clearpublic void clear()Description copied from class:StrategyClear al information from the key value store
 
-