Package be.panako.strategy.olaf.storage
Class OlafStorageMemory
java.lang.Object
be.panako.strategy.olaf.storage.OlafStorageMemory
- All Implemented Interfaces:
OlafStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToQueryQueue
(long queryHash) void
addToStoreQueue
(long fingerprintHash, int resourceIdentifier, int t1) void
clear()
static OlafStorageMemory
getMetadata
(long identifier) void
processQueryQueue
(Map<Long, List<OlafHit>> matchAccumulator, int range) void
processQueryQueue
(Map<Long, List<OlafHit>> matchAccumulator, int range, Set<Integer> resourcesToAvoid) void
void
storeMetadata
(long resourceID, String resourcePath, float duration, int fingerprints)
-
Constructor Details
-
OlafStorageMemory
public OlafStorageMemory()
-
-
Method Details
-
getInstance
- Returns:
- Returns or creates a storage instance. This should be a thread safe operation.
-
storeMetadata
- Specified by:
storeMetadata
in interfaceOlafStorage
-
getMetadata
- Specified by:
getMetadata
in interfaceOlafStorage
-
addToStoreQueue
public void addToStoreQueue(long fingerprintHash, int resourceIdentifier, int t1) - Specified by:
addToStoreQueue
in interfaceOlafStorage
-
processStoreQueue
public void processStoreQueue()- Specified by:
processStoreQueue
in interfaceOlafStorage
-
addToQueryQueue
public void addToQueryQueue(long queryHash) - Specified by:
addToQueryQueue
in interfaceOlafStorage
-
processQueryQueue
- Specified by:
processQueryQueue
in interfaceOlafStorage
-
processQueryQueue
public void processQueryQueue(Map<Long, List<OlafHit>> matchAccumulator, int range, Set<Integer> resourcesToAvoid) - Specified by:
processQueryQueue
in interfaceOlafStorage
-
clear
public void clear()
-