java.lang.Object
tools.refinery.interpreter.localsearch.matcher.integration.LocalSearchBackend
All Implemented Interfaces:
IQueryBackend

public abstract class LocalSearchBackend extends Object implements IQueryBackend
  • Constructor Details

  • Method Details

    • flushUpdates

      public void flushUpdates()
      Specified by:
      flushUpdates in interface IQueryBackend
    • getResultProvider

      public IQueryResultProvider getResultProvider(PQuery query)
      Specified by:
      getResultProvider in interface IQueryBackend
    • getResultProvider

      public IQueryResultProvider getResultProvider(PQuery query, QueryEvaluationHint hints)
      Specified by:
      getResultProvider in interface IQueryBackend
      Since:
      1.4
    • getResultProviderRequestor

      public ResultProviderRequestor getResultProviderRequestor(PQuery query, QueryEvaluationHint userHints)
      Returns a requestor that this backend uses while processing pattern calls from this query.
      Since:
      2.1
    • initializeResultProvider

      protected abstract AbstractLocalSearchResultProvider initializeResultProvider(PQuery query, QueryEvaluationHint hints)
      Throws:
      InterpreterRuntimeException
      Since:
      1.7
    • dispose

      public void dispose()
      Specified by:
      dispose in interface IQueryBackend
    • isCaching

      public boolean isCaching()
      Specified by:
      isCaching in interface IQueryBackend
    • peekExistingResultProvider

      public AbstractLocalSearchResultProvider peekExistingResultProvider(PQuery query)
      Specified by:
      peekExistingResultProvider in interface IQueryBackend
      Since:
      2.0
    • getRuntimeContext

      public IQueryRuntimeContext getRuntimeContext()
      Since:
      1.4
    • getQueryAnalyzer

      public QueryAnalyzer getQueryAnalyzer()
      Since:
      1.5
    • getHintProvider

      public IQueryBackendHintProvider getHintProvider()
      Since:
      1.4
    • addAdapter

      public void addAdapter(ILocalSearchAdapter adapter)
      Since:
      1.5
    • removeAdapter

      public void removeAdapter(ILocalSearchAdapter adapter)
      Since:
      1.5
    • getAdapters

      public List<ILocalSearchAdapter> getAdapters()
      Return a copy of the current adapters
      Since:
      1.7
    • getBackendContext

      public IQueryBackendContext getBackendContext()
      Since:
      1.5
    • getCache

      public ICache getCache()
      Returns the internal cache of the backend
      Since:
      1.7
    • recomputePlans

      public void recomputePlans(PQuery... queries)
      Updates the previously stored search plans for one or more given queries, computing a new set of plans if necessary. The new plans created are the same that would be created by executing prepare on the given query definitions.
      Since:
      2.0
    • recomputePlans

      public void recomputePlans(Collection<PQuery> queries)
      Updates the previously stored search plans for one or more given queries, computing a new set of plans if necessary The new plans created are the same that would be created by executing prepare on the given query definitions.
      Since:
      2.0
    • recomputePlans

      public void recomputePlans()
      Updates the previously stored search plans for one or more given queries, computing a new set of plans if necessary The new plans created are the same that would be created by executing prepare on the given query definitions.
      Since:
      2.0
    • getSearchPlan

      public IPlanDescriptor getSearchPlan(PQuery query, Set<PParameter> adornment)
      Returns a search plan for a given query and adornment if such plan is already calculated.
      Returns:
      a previously calculated search plan for the given query and adornment, or null if no such plan exists
      Since:
      2.0