Interface QueryIndexResolver
- All Known Implementing Classes:
CouchbasePersistentEntityIndexResolver
public interface QueryIndexResolver
QueryIndexResolver
finds those IndexDefinition
s to be created for a given class.- Since:
- 1.5
- Author:
- Christoph Strobl, Thomas Darimont, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryIndexResolver
create
(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext, CouchbaseOperations operations) Creates a newQueryIndexResolver
givenCouchbaseMappingContext
.default Iterable<? extends IndexDefinition>
resolveIndexFor
(Class<?> entityType) Find and createIndexDefinition
s for properties of givenTypeInformation
.Iterable<? extends IndexDefinition>
resolveIndexFor
(TypeInformation<?> typeInformation) Find and createIndexDefinition
s for properties of givenTypeInformation
.
-
Method Details
-
create
static QueryIndexResolver create(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext, CouchbaseOperations operations) Creates a newQueryIndexResolver
givenCouchbaseMappingContext
.- Parameters:
mappingContext
- must not be null.- Returns:
- the new
QueryIndexResolver
. - Since:
- 2.2
-
resolveIndexFor
Find and createIndexDefinition
s for properties of givenTypeInformation
.IndexDefinition
s are created for properties and types withQueryIndexed
.- Parameters:
typeInformation
-- Returns:
- Empty
Iterable
in case noIndexDefinition
could be resolved for type.
-
resolveIndexFor
Find and createIndexDefinition
s for properties of givenTypeInformation
.IndexDefinition
s are created for properties and types withQueryIndexed
.- Parameters:
entityType
-- Returns:
- Empty
Iterable
in case noIndexDefinition
could be resolved for type.
-