Package be.panako.strategy.olaf.storage
Interface OlafStorage
- All Known Implementing Classes:
OlafStorageFile,OlafStorageKV,OlafStorageMemory
public interface OlafStorage
-
Method Summary
Modifier and Type Method Description voidaddToQueryQueue(long queryHash)voidaddToStoreQueue(long fingerprintHash, int resourceIdentifier, int t1)OlafResourceMetadatagetMetadata(long identifier)voidprocessQueryQueue(java.util.Map<java.lang.Long,java.util.List<OlafHit>> matchAccumulator, int range)voidprocessQueryQueue(java.util.Map<java.lang.Long,java.util.List<OlafHit>> matchAccumulator, int range, java.util.Set<java.lang.Integer> resourcesToAvoid)voidprocessStoreQueue()voidstoreMetadata(long resourceID, java.lang.String resourcePath, float duration, int fingerprints)
-
Method Details
-
storeMetadata
void storeMetadata(long resourceID, java.lang.String resourcePath, float duration, int fingerprints) -
addToStoreQueue
void addToStoreQueue(long fingerprintHash, int resourceIdentifier, int t1) -
processStoreQueue
void processStoreQueue() -
getMetadata
-
addToQueryQueue
void addToQueryQueue(long queryHash) -
processQueryQueue
void processQueryQueue(java.util.Map<java.lang.Long,java.util.List<OlafHit>> matchAccumulator, int range) -
processQueryQueue
void processQueryQueue(java.util.Map<java.lang.Long,java.util.List<OlafHit>> matchAccumulator, int range, java.util.Set<java.lang.Integer> resourcesToAvoid)
-