Class OlafStorageKV

java.lang.Object
be.panako.strategy.olaf.storage.OlafStorageKV
All Implemented Interfaces:
OlafStorage

public class OlafStorageKV
extends java.lang.Object
implements OlafStorage
  • Constructor Details

    • OlafStorageKV

      public OlafStorageKV()
  • Method Details

    • getInstance

      public static OlafStorageKV getInstance()
      Returns:
      Returns or creates a storage instance. This should be a thread safe operation.
    • close

      public void close()
    • storeMetadata

      public void storeMetadata​(long resourceID, java.lang.String resourcePath, float duration, int fingerprints)
      Specified by:
      storeMetadata in interface OlafStorage
    • getMetadata

      public OlafResourceMetadata getMetadata​(long resourceID)
      Specified by:
      getMetadata in interface OlafStorage
    • addToStoreQueue

      public void addToStoreQueue​(long fingerprintHash, int resourceIdentifier, int t1)
      Specified by:
      addToStoreQueue in interface OlafStorage
    • processStoreQueue

      public void processStoreQueue()
      Specified by:
      processStoreQueue in interface OlafStorage
    • clearStoreQueue

      public void clearStoreQueue()
    • addToDeleteQueue

      public void addToDeleteQueue​(long key, int val1, int val2)
    • processDeleteQueue

      public void processDeleteQueue()
    • addToQueryQueue

      public void addToQueryQueue​(long queryHash)
      Specified by:
      addToQueryQueue in interface OlafStorage
    • processQueryQueue

      public void processQueryQueue​(java.util.Map<java.lang.Long,​java.util.List<OlafHit>> matchAccumulator, int range)
      Specified by:
      processQueryQueue in interface OlafStorage
    • processQueryQueue

      public void processQueryQueue​(java.util.Map<java.lang.Long,​java.util.List<OlafHit>> matchAccumulator, int range, java.util.Set<java.lang.Integer> resourcesToAvoid)
      Specified by:
      processQueryQueue in interface OlafStorage
    • entries

      public long entries​(boolean printStats)
    • deleteMetadata

      public void deleteMetadata​(long resourceID)
    • clear

      public void clear()