org.eclipse.incquery.runtime.localsearch.matcher.integration

## Class LocalSearchBackend

- java.lang.Object
- - org.eclipse.incquery.runtime.localsearch.matcher.integration.LocalSearchBackend

- All Implemented Interfaces:
    IQueryBackend

      public class LocalSearchBackend
      extends java.lang.Object
      implements IQueryBackend

  Author:
    Marton Bur, Zoltan Ujhelyi

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LocalSearchBackend(org.apache.log4j.Logger logger, IQueryRuntimeContext runtimeContext, IQueryCacheContext queryCacheContext, IQueryBackendHintProvider hintProvider)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `dispose()` Disposes the query backend.
    `com.google.common.collect.Table<org.eclipse.emf.ecore.EDataType,org.eclipse.emf.ecore.EClass,java.util.Set<org.eclipse.emf.ecore.EAttribute>>` | `geteAttributesByTypeForEClass()`
    `IQueryResultProvider` | `getResultProvider(PQuery query)` Returns a result provider for a given query.
    `boolean` | `isCaching()`
    `IQueryResultProvider` | `peekExistingResultProvider(PQuery query)` Returns an existing result provider for a given query, if it was previously constructed, returns null otherwise.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LocalSearchBackend

          public LocalSearchBackend(org.apache.log4j.Logger logger,
                                    IQueryRuntimeContext runtimeContext,
                                    IQueryCacheContext queryCacheContext,
                                    IQueryBackendHintProvider hintProvider)

  - ### Method Detail

    - #### getResultProvider

          public IQueryResultProvider getResultProvider(PQuery query)
                                                 throws QueryProcessingException

      Description copied from interface: `IQueryBackend`
      Returns a result provider for a given query. Repeated calls may return the same instance.
      Specified by:
        `getResultProvider` in interface `IQueryBackend`
      Throws:
        `QueryProcessingException`

    - #### dispose

          public void dispose()

      Description copied from interface: `IQueryBackend`
      Disposes the query backend.
      Specified by:
        `dispose` in interface `IQueryBackend`

    - #### isCaching

          public boolean isCaching()

      Specified by:
        `isCaching` in interface `IQueryBackend`
      Returns:
        true iff this backend is incremental, i.e. it caches the results of queries for quick retrieval, and can provide update notifications on result set changes.

    - #### peekExistingResultProvider

          public IQueryResultProvider peekExistingResultProvider(PQuery query)

      Description copied from interface: `IQueryBackend`
      Returns an existing result provider for a given query, if it was previously constructed, returns null otherwise. Will not construct and initialize new result providers.
      Specified by:
        `peekExistingResultProvider` in interface `IQueryBackend`

    - #### geteAttributesByTypeForEClass

          public com.google.common.collect.Table<org.eclipse.emf.ecore.EDataType,org.eclipse.emf.ecore.EClass,java.util.Set<org.eclipse.emf.ecore.EAttribute>> geteAttributesByTypeForEClass()