Spring Data for VMware GemFire
Class ProjectingLuceneTemplate
java.lang.Object
org.springframework.data.gemfire.search.lucene.support.LuceneOperationsSupport
org.springframework.data.gemfire.search.lucene.LuceneAccessor
org.springframework.data.gemfire.search.lucene.support.LuceneAccessorSupport
org.springframework.data.gemfire.search.lucene.LuceneTemplate
org.springframework.data.gemfire.search.lucene.ProjectingLuceneAccessor
org.springframework.data.gemfire.search.lucene.ProjectingLuceneTemplate
- 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
Deprecated.
To be removed in GemFire 10 integration
ProjectingLuceneTemplate is a Lucene data access operations class encapsulating functionality
for performing Lucene queries and other Lucene data access operations and returning the query results
as application-specific domain object views.- Since:
- 1.1.0
- See Also:
-
ProjectingLuceneAccessorProjectingLuceneOperationsRegionLuceneIndexLuceneQueryLuceneQueryFactoryLuceneQueryProviderLuceneResultStructPageableLuceneQueryResults
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.search.lucene.LuceneAccessor
LuceneAccessor.LuceneQueryExecutor<T> -
Field Summary
Fields inherited from interface org.springframework.data.gemfire.search.lucene.LuceneOperations
DEFAULT_PAGE_SIZE, DEFAULT_RESULT_LIMIT -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructs a default, uninitialized instance of theProjectingLuceneTemplate.ProjectingLuceneTemplate(String indexName, String regionPath) Deprecated.Constructs an instance of theProjectingLuceneTemplateinitialized with the given Lucene index name andRegionreference upon which Lucene queries are executed.ProjectingLuceneTemplate(String indexName, org.apache.geode.cache.Region<?, ?> region) Deprecated.Constructs an instance of theProjectingLuceneTemplateinitialized with the given Lucene index name andRegionreference upon which Lucene queries are executed.ProjectingLuceneTemplate(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Constructs an instance of theProjectingLuceneTemplateinitialized with the givenLuceneIndexused to perform Lucene queries (searches). -
Method Summary
Modifier and TypeMethodDescription<T> org.springframework.data.domain.Page<T>Deprecated.Executes the givenquerywith the limited results projected as instances of theprojectionType.<T> List<T>Deprecated.Executes the givenquerywith the limited results projected as instances of theprojectionType.<T> org.springframework.data.domain.Page<T>query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit, int pageSize, Class<T> projectionType) Deprecated.Executes the providedquerywith the limited results projected as instances of theprojectionType.<T> List<T>query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit, Class<T> projectionType) Deprecated.Executes the providedquerywith the limited results projected as instances of theprojectionType.Methods inherited from class org.springframework.data.gemfire.search.lucene.ProjectingLuceneAccessor
afterPropertiesSet, getBeanClassLoader, getBeanFactory, getProjectionFactory, project, project, project, resolveProjectionFactory, setBeanClassLoader, setBeanFactory, setProjectionFactory, setThenGetProjectionFactoryMethods inherited from class org.springframework.data.gemfire.search.lucene.LuceneTemplate
query, query, query, query, queryForKeys, queryForKeys, queryForValues, queryForValuesMethods inherited from class org.springframework.data.gemfire.search.lucene.LuceneAccessor
createLuceneQueryFactory, createLuceneQueryFactory, createLuceneQueryFactory, doFind, getCache, getIndexName, getLuceneIndex, getLuceneService, getRegion, getRegionPath, resolveCache, resolveIndexName, resolveLuceneService, resolveLuceneService, resolveRegionPath, setCache, setIndexName, setLuceneIndex, setLuceneService, setRegion, setRegionPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.gemfire.search.lucene.LuceneOperations
query, query, query, query, query, query, queryForKeys, queryForKeys, queryForKeys, queryForKeys, queryForValues, queryForValues, queryForValues, queryForValuesMethods inherited from interface org.springframework.data.gemfire.search.lucene.ProjectingLuceneOperations
query, query
-
Constructor Details
-
ProjectingLuceneTemplate
public ProjectingLuceneTemplate()Deprecated.Constructs a default, uninitialized instance of theProjectingLuceneTemplate. -
ProjectingLuceneTemplate
public ProjectingLuceneTemplate(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Constructs an instance of theProjectingLuceneTemplateinitialized with the givenLuceneIndexused to perform Lucene queries (searches).- Parameters:
luceneIndex-LuceneIndexused in Lucene queries.- See Also:
-
LuceneIndex
-
ProjectingLuceneTemplate
Deprecated.Constructs an instance of theProjectingLuceneTemplateinitialized with the given Lucene index name andRegionreference upon which Lucene queries are executed.- Parameters:
indexName-Stringcontaining the name of theLuceneIndexused in Lucene queries.region-Regionon which Lucene queries are executed.- See Also:
-
Region
-
ProjectingLuceneTemplate
Deprecated.Constructs an instance of theProjectingLuceneTemplateinitialized with the given Lucene index name andRegionreference upon which Lucene queries are executed.
-
-
Method Details
-
query
public <T> List<T> query(String query, String defaultField, int resultLimit, Class<T> projectionType) Deprecated.Description copied from interface:ProjectingLuceneOperationsExecutes the givenquerywith the limited results projected as instances of theprojectionType.- Type Parameters:
T-Classtype of the projection.- Parameters:
query- Lucenequeryto execute.defaultField-Stringspecifying the default field used in Lucene queries when a field is not explicitly defined in the Lucene query clause.resultLimit- limit on the number of query results to return.projectionType-Classtype of the individual elements in the query results.- Returns:
- a
Listof Lucene query results projected as instances ofprojectionType. - See Also:
-
query
public <T> org.springframework.data.domain.Page<T> query(String query, String defaultField, int resultLimit, int pageSize, Class<T> projectionType) Deprecated.Description copied from interface:ProjectingLuceneOperationsExecutes the givenquerywith the limited results projected as instances of theprojectionType.- Type Parameters:
T-Classtype of the projection.- Parameters:
query- Lucenequeryto execute.defaultField-Stringspecifying the default field used in Lucene queries when a field is not explicitly defined in the Lucene query clause.resultLimit- limit on the number of query results to return.pageSize- number of results on aPage.projectionType-Classtype of the individual elements in the query results.- Returns:
- the first
Pageof results returned from the Lucene query. - See Also:
-
Page
-
query
public <T> List<T> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit, Class<T> projectionType) Deprecated.Description copied from interface:ProjectingLuceneOperationsExecutes the providedquerywith the limited results projected as instances of theprojectionType.- Type Parameters:
T-Classtype of the projection.- Parameters:
queryProvider-LuceneQueryProviderproviding the Lucenequeryto execute.resultLimit- limit on the number of query results to return.projectionType-Classtype of the individual elements in the query results.- Returns:
- a
Listof Lucene query results projected as instances ofprojectionType. - See Also:
-
LuceneQueryProviderList
-
query
public <T> org.springframework.data.domain.Page<T> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit, int pageSize, Class<T> projectionType) Deprecated.Description copied from interface:ProjectingLuceneOperationsExecutes the providedquerywith the limited results projected as instances of theprojectionType.- Type Parameters:
T-Classtype of the projection.- Parameters:
queryProvider-LuceneQueryProviderproviding the Lucenequeryto execute.resultLimit- limit on the number of query results to return.pageSize- number of results on aPage.projectionType-Classtype of the individual elements in the query results.- Returns:
- the first
Pageof results returned from the Lucene query. - See Also:
-
LuceneQueryProviderPage
-