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 TypeMethodDescriptionvoidaddToQueryQueue(long queryHash) voidaddToStoreQueue(long fingerprintHash, int resourceIdentifier, int t1) voidclear()long[]dataFromLine(String line) static OlafStorageFilegetMetadata(long identifier) voidprocessQueryQueue(Map<Long, List<OlafHit>> matchAccumulator, int range) voidprocessQueryQueue(Map<Long, List<OlafHit>> matchAccumulator, int range, Set<Integer> resourcesToAvoid) voidvoidstoreMetadata(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:
storeMetadatain interfaceOlafStorage
-
getMetadata
- Specified by:
getMetadatain interfaceOlafStorage
-
addToStoreQueue
public void addToStoreQueue(long fingerprintHash, int resourceIdentifier, int t1) - Specified by:
addToStoreQueuein interfaceOlafStorage
-
storeQueueToString
-
storeQueueToString
-
processStoreQueue
public void processStoreQueue()- Specified by:
processStoreQueuein interfaceOlafStorage
-
dataFromLine
-
addToQueryQueue
public void addToQueryQueue(long queryHash) - Specified by:
addToQueryQueuein interfaceOlafStorage
-
processQueryQueue
- Specified by:
processQueryQueuein interfaceOlafStorage
-
processQueryQueue
public void processQueryQueue(Map<Long, List<OlafHit>> matchAccumulator, int range, Set<Integer> resourcesToAvoid) - Specified by:
processQueryQueuein interfaceOlafStorage
-
clear
public void clear()
-