Class ProjectingLuceneAccessor

All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, LuceneOperations, ProjectingLuceneOperations
Direct Known Subclasses:
ProjectingLuceneAccessorSupport, ProjectingLuceneTemplate

public abstract class ProjectingLuceneAccessor extends LuceneTemplate implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, ProjectingLuceneOperations
Deprecated.
To be removed in GemFire 10 integration
ProjectingLuceneAccessor is an abstract class supporting implementations of the ProjectingLuceneOperations interface encapsulating common functionality necessary to execute Lucene queries and work with application domain object views.
Since:
1.1.0
See Also:
  • Constructor Details

    • ProjectingLuceneAccessor

      public ProjectingLuceneAccessor()
      Deprecated.
      Constructs a default, uninitialized instance of the ProjectingLuceneAccessor.
    • ProjectingLuceneAccessor

      public ProjectingLuceneAccessor(org.apache.geode.cache.lucene.LuceneIndex luceneIndex)
      Deprecated.
      Constructs an instance of the ProjectingLuceneAccessor initialized with the given LuceneIndex used to perform Lucene queries (searches).
      Parameters:
      luceneIndex - LuceneIndex used in Lucene queries.
      See Also:
      • LuceneIndex
    • ProjectingLuceneAccessor

      public ProjectingLuceneAccessor(String indexName, org.apache.geode.cache.Region<?,?> region)
      Deprecated.
      Constructs an instance of the ProjectingLuceneAccessor initialized with the given Lucene index name and Region reference upon which Lucene queries are executed.
      Parameters:
      indexName - String containing the name of the LuceneIndex used in Lucene queries.
      region - Region on which Lucene queries are executed.
      See Also:
      • Region
    • ProjectingLuceneAccessor

      public ProjectingLuceneAccessor(String indexName, String regionPath)
      Deprecated.
      Constructs an instance of the ProjectingLuceneAccessor initialized with the given Lucene index name and Region reference upon which Lucene queries are executed.
      Parameters:
      indexName - String containing the name of the LuceneIndex used in Lucene queries.
      regionPath - String containing the name of the Region on which Lucene queries are executed.
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Deprecated.
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Overrides:
      afterPropertiesSet in class LuceneAccessor
      Throws:
      Exception
    • resolveProjectionFactory

      protected org.springframework.data.projection.ProjectionFactory resolveProjectionFactory()
      Deprecated.
      Null-safe method to resolve the Spring Data ProjectionFactory used to create projections out of the Lucene query results.
      Returns:
      a resolved instance of the Spring Data ProjectionFactory used to create projections out of the Lucene query results.
      See Also:
    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoader beanClassLoader)
      Deprecated.
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
    • getBeanClassLoader

      protected ClassLoader getBeanClassLoader()
      Deprecated.
      Returns a reference to the ClassLoader used by the Spring container to load bean class definitions.
      Returns:
      a reference to the ClassLoader used by the Spring container to load bean class definitions.
      See Also:
      • BeanClassLoaderAware.setBeanClassLoader(ClassLoader)
      • ClassLoader
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Deprecated.
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • getBeanFactory

      protected org.springframework.beans.factory.BeanFactory getBeanFactory()
      Deprecated.
      Returns a reference to the Spring container.
      Returns:
      a reference to the Spring container.
      See Also:
      • BeanFactoryAware.setBeanFactory(BeanFactory)
      • BeanFactory
    • setThenGetProjectionFactory

      protected org.springframework.data.projection.ProjectionFactory setThenGetProjectionFactory(org.springframework.data.projection.ProjectionFactory projectionFactory)
      Deprecated.
    • setProjectionFactory

      public void setProjectionFactory(org.springframework.data.projection.ProjectionFactory projectionFactory)
      Deprecated.
      Sets the Spring Data ProjectionFactory used to create projections out of query results.
      Parameters:
      projectionFactory - Spring Data ProjectionFactory used to created projects out of query results.
      See Also:
      • ProjectionFactory
    • getProjectionFactory

      protected org.springframework.data.projection.ProjectionFactory getProjectionFactory()
      Deprecated.
      Returns the Spring Data ProjectionFactory used to create projections out of query results.
      Returns:
      the Spring Data ProjectionFactory used to created projects out of query results.
      See Also:
      • ProjectionFactory
    • project

      public <T, K, V> List<T> project(List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> source, Class<T> projectionType)
      Deprecated.
    • project

      public <T, K, V> T project(org.apache.geode.cache.lucene.LuceneResultStruct<K,V> source, Class<T> projectionType)
      Deprecated.
    • project

      public <T> T project(Object source, Class<T> projectionType)
      Deprecated.