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 void
addToQueryQueue(long queryHash)
void
addToStoreQueue(long fingerprintHash, int resourceIdentifier, int t1)
OlafResourceMetadata
getMetadata(long identifier)
void
processQueryQueue(java.util.Map<java.lang.Long,java.util.List<OlafHit>> matchAccumulator, int range)
void
processQueryQueue(java.util.Map<java.lang.Long,java.util.List<OlafHit>> matchAccumulator, int range, java.util.Set<java.lang.Integer> resourcesToAvoid)
void
processStoreQueue()
void
storeMetadata(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)
-