Class DictionaryCacheLRI

  • All Implemented Interfaces:
    DictionaryCache

    public class DictionaryCacheLRI
    extends java.lang.Object
    implements DictionaryCache
    Least-Recently-Inserted Cache. Removes the oldest entries inserted. Can result in cache misses but it is very fast. It uses an array-based circular buffer to remove old entries
    Author:
    mario.arias
    • Constructor Summary

      Constructors 
      Constructor Description
      DictionaryCacheLRI​(int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      org.apache.jena.graph.Node get​(long id)  
      void put​(long id, org.apache.jena.graph.Node node)  
      long size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DictionaryCacheLRI

        public DictionaryCacheLRI​(int size)