public interface IndexResolver
IndexResolver finds those IndexDefinitions to be created for a given class.| Modifier and Type | Method and Description |
|---|---|
static IndexResolver |
create(MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
Creates a new
IndexResolver given MongoMappingContext. |
default Iterable<? extends IndexDefinition> |
resolveIndexFor(Class<?> entityType)
Find and create
IndexDefinitions for properties of given TypeInformation. |
Iterable<? extends IndexDefinition> |
resolveIndexFor(TypeInformation<?> typeInformation)
Find and create
IndexDefinitions for properties of given TypeInformation. |
static IndexResolver create(MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
IndexResolver given MongoMappingContext.mappingContext - must not be null.IndexResolver.Iterable<? extends IndexDefinition> resolveIndexFor(TypeInformation<?> typeInformation)
IndexDefinitions for properties of given TypeInformation. IndexDefinitions
are created for properties and types with Indexed, CompoundIndexes or GeoSpatialIndexed.typeInformation - must not be null.Iterable in case no IndexDefinition could be resolved for type.default Iterable<? extends IndexDefinition> resolveIndexFor(Class<?> entityType)
IndexDefinitions for properties of given TypeInformation. IndexDefinitions
are created for properties and types with Indexed, CompoundIndexes or GeoSpatialIndexed.entityType - must not be null.Iterable in case no IndexDefinition could be resolved for type.2.2Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.