Class QueryEngineRegistry

java.lang.Object
org.apache.jena.sparql.engine.QueryEngineRegistry

public class QueryEngineRegistry extends Object
  • Constructor Details

    • QueryEngineRegistry

      public QueryEngineRegistry()
  • Method Details

    • get

      public static QueryEngineRegistry get()
    • chooseRegistry

      public static QueryEngineRegistry chooseRegistry(Context context)
      If there is a registry in the context then return it otherwise yield the global instance
    • get

      public static QueryEngineRegistry get(Context context)
      Get the query engine registry from the context or null if there is none. Returns null if the context is null.
    • set

      public static void set(Context context, QueryEngineRegistry registry)
    • copy

      public QueryEngineRegistry copy()
    • copyFrom

      public static QueryEngineRegistry copyFrom(Context context)
      Create a copy of the registry from the context or return a new instance
    • findFactory

      public static QueryEngineFactory findFactory(Query query, DatasetGraph dataset, Context context)
      Locate a suitable factory for this query and dataset from the default registry
      Parameters:
      query - Query
      dataset - Dataset
      Returns:
      A QueryExecutionFactory or null if none accept the request
    • findFactory

      public static QueryEngineFactory findFactory(Op op, DatasetGraph dataset, Context context)
      Locate a suitable factory for this algebra expression and dataset from the default registry
      Parameters:
      op - Algebra expression
      dataset - DatasetGraph
      context -
      Returns:
      A QueryExecutionFactory or null if none accept the request
    • find

      public QueryEngineFactory find(Query query, DatasetGraph dataset)
      Locate a suitable factory for this query and dataset
      Parameters:
      query - Query
      dataset - Dataset
      Returns:
      A QueryExecutionFactory or null if none accept the request
    • find

      public QueryEngineFactory find(Query query, DatasetGraph dataset, Context context)
      Locate a suitable factory for this query and dataset
      Parameters:
      query - Query
      dataset - Dataset
      Returns:
      A QueryExecutionFactory or null if none accept the request
    • find

      public QueryEngineFactory find(Op op, DatasetGraph dataset, Context context)
      Locate a suitable factory for this algebra expression and dataset
      Parameters:
      op - Algebra expression
      dataset - DatasetGraph
      context -
      Returns:
      A QueryExecutionFactory or null if none accept the request
    • addFactory

      public static void addFactory(QueryEngineFactory f)
      Add a QueryExecutionFactory to the default registry
    • add

      public void add(QueryEngineFactory f)
      Add a QueryExecutionFactory
    • removeFactory

      public static void removeFactory(QueryEngineFactory f)
      Remove a QueryExecutionFactory
    • remove

      public void remove(QueryEngineFactory f)
      Remove a QueryExecutionFactory
    • factories

      public List<QueryEngineFactory> factories()
      Allow careful manipulation of the factories list
    • containsFactory

      public static boolean containsFactory(QueryEngineFactory f)
      Check whether a query engine factory is already registered in the default registry
    • contains

      public boolean contains(QueryEngineFactory f)
      Check whether a query engine factory is already registered