Package be.panako.strategy.olaf.storage
Class OlafStorageFile
java.lang.Object
be.panako.strategy.olaf.storage.OlafStorageFile
- 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()
long[]
dataFromLine
(String line) static OlafStorageFile
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) storeQueueToString
(List<long[]> queue)
-
Constructor Details
-
OlafStorageFile
public OlafStorageFile()
-
-
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
-
storeQueueToString
-
storeQueueToString
-
processStoreQueue
public void processStoreQueue()- Specified by:
processStoreQueue
in interfaceOlafStorage
-
dataFromLine
-
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()
-