Class CouchbasePersistentEntityIndexResolver
java.lang.Object
org.springframework.data.couchbase.core.index.CouchbasePersistentEntityIndexResolver
- All Implemented Interfaces:
QueryIndexResolver
- Author:
- Michael Nitschinger, Michael Reiche
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionCouchbasePersistentEntityIndexResolver(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 createIndexDefinitions for properties of givenTypeInformation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:QueryIndexResolverFind and createIndexDefinitions for properties of givenTypeInformation.IndexDefinitions are created for properties and types withQueryIndexed.- Specified by:
resolveIndexForin interfaceQueryIndexResolver- Returns:
- Empty
Iterablein case noIndexDefinitioncould 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)
-