Class GraphFindCache

java.lang.Object
org.aksw.jena_sparql_api.io.binseach.GraphFindCache

public class GraphFindCache extends Object
This cache needs to be put into a dataset's context. Used by StageGeneratorGraphFindRaw to cache triple lookups. ISSUE Needs to be generalized to quads.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.jena.sparql.util.Symbol
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GraphFindCache(int cacheSize)
     
    GraphFindCache(com.github.benmanes.caffeine.cache.Cache<org.apache.jena.graph.Triple,org.aksw.commons.io.input.ReadableChannelSource<org.apache.jena.sparql.engine.binding.Binding[]>> cache)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get(org.apache.jena.sparql.util.Context cxt)
    Return the global instance (if any) in ARQ.getContex()
    com.github.benmanes.caffeine.cache.Cache<org.apache.jena.graph.Triple,org.aksw.commons.io.input.ReadableChannelSource<org.apache.jena.sparql.engine.binding.Binding[]>>
     
    getOrCreate(org.apache.jena.sparql.util.Context cxt)
     
    static void
    set(org.apache.jena.sparql.util.Context cxt, GraphFindCache cache)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NS

      public static final String NS
      See Also:
    • graphCache

      public static final org.apache.jena.sparql.util.Symbol graphCache
  • Constructor Details

    • GraphFindCache

      public GraphFindCache(int cacheSize)
    • GraphFindCache

      public GraphFindCache(com.github.benmanes.caffeine.cache.Cache<org.apache.jena.graph.Triple,org.aksw.commons.io.input.ReadableChannelSource<org.apache.jena.sparql.engine.binding.Binding[]>> cache)
  • Method Details

    • get

      public static GraphFindCache get(org.apache.jena.sparql.util.Context cxt)
      Return the global instance (if any) in ARQ.getContex()
    • getOrCreate

      public static GraphFindCache getOrCreate(org.apache.jena.sparql.util.Context cxt)
    • set

      public static void set(org.apache.jena.sparql.util.Context cxt, GraphFindCache cache)
    • getCache

      public com.github.benmanes.caffeine.cache.Cache<org.apache.jena.graph.Triple,org.aksw.commons.io.input.ReadableChannelSource<org.apache.jena.sparql.engine.binding.Binding[]>> getCache()