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