Class PanakoStorageMemory

java.lang.Object
be.panako.strategy.panako.storage.PanakoStorageMemory
All Implemented Interfaces:
PanakoStorage

public class PanakoStorageMemory
extends java.lang.Object
implements PanakoStorage
  • Constructor Summary

    Constructors
    Constructor Description
    PanakoStorageMemory()  
  • Method Summary

    Modifier and Type Method Description
    void addToQueryQueue​(long queryHash)  
    void addToStoreQueue​(long fingerprintHash, int resourceIdentifier, int t1, int f1)  
    static PanakoStorageMemory getInstance()  
    PanakoResourceMetadata getMetadata​(long identifier)  
    void processQueryQueue​(java.util.Map<java.lang.Long,​java.util.List<PanakoHit>> matchAccumulator, int range)  
    void processQueryQueue​(java.util.Map<java.lang.Long,​java.util.List<PanakoHit>> matchAccumulator, int range, java.util.Set<java.lang.Integer> resourcesToAvoid)  
    void processStoreQueue()  
    void storeMetadata​(long resourceID, java.lang.String resourcePath, float duration, int fingerprints)  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PanakoStorageMemory

      public PanakoStorageMemory()
  • Method Details

    • getInstance

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

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

      public PanakoResourceMetadata getMetadata​(long identifier)
      Specified by:
      getMetadata in interface PanakoStorage
    • addToStoreQueue

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

      public void processStoreQueue()
      Specified by:
      processStoreQueue in interface PanakoStorage
    • addToQueryQueue

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

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

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