Class CouchbasePersistentEntityIndexResolver
java.lang.Object
org.springframework.data.couchbase.core.index.CouchbasePersistentEntityIndexResolver
- All Implemented Interfaces:
QueryIndexResolver
- Author:
- Michael Nitschinger, Michael Reiche
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionCouchbasePersistentEntityIndexResolver
(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext, CouchbaseOperations operations) -
Method Summary
Modifier and TypeMethodDescriptioncreateCompositeQueryIndexDefinitions
(CouchbasePersistentEntity<?> entity, CouchbasePersistentProperty property) createFieldQueryIndexDefinition
(CouchbasePersistentEntity<?> entity, CouchbasePersistentProperty property) resolveIndexFor
(TypeInformation<?> typeInformation) Find and createIndexDefinition
s for properties of givenTypeInformation
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.couchbase.core.index.QueryIndexResolver
resolveIndexFor
-
Constructor Details
-
CouchbasePersistentEntityIndexResolver
public CouchbasePersistentEntityIndexResolver(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext, CouchbaseOperations operations)
-
-
Method Details
-
resolveIndexFor
public Iterable<? extends CouchbasePersistentEntityIndexResolver.IndexDefinitionHolder> resolveIndexFor(TypeInformation<?> typeInformation) Description copied from interface:QueryIndexResolver
Find and createIndexDefinition
s for properties of givenTypeInformation
.IndexDefinition
s are created for properties and types withQueryIndexed
.- Specified by:
resolveIndexFor
in interfaceQueryIndexResolver
- Returns:
- Empty
Iterable
in case noIndexDefinition
could be resolved for type.
-
resolveIndexForEntity
public List<CouchbasePersistentEntityIndexResolver.IndexDefinitionHolder> resolveIndexForEntity(CouchbasePersistentEntity<?> root) -
createFieldQueryIndexDefinition
@Nullable protected CouchbasePersistentEntityIndexResolver.IndexDefinitionHolder createFieldQueryIndexDefinition(CouchbasePersistentEntity<?> entity, CouchbasePersistentProperty property) -
createCompositeQueryIndexDefinitions
protected List<CouchbasePersistentEntityIndexResolver.IndexDefinitionHolder> createCompositeQueryIndexDefinitions(CouchbasePersistentEntity<?> entity, CouchbasePersistentProperty property)
-