Class PathIndexResolver
java.lang.Object
org.springframework.data.redis.core.convert.PathIndexResolver
- All Implemented Interfaces:
IndexResolver
IndexResolver
implementation considering properties annotated with Indexed
or paths set up in
IndexConfiguration
.- Since:
- 1.7
- Author:
- Christoph Strobl, Greg Turnquist
-
Constructor Summary
ConstructorDescriptionCreates newPathIndexResolver
with emptyIndexConfiguration
.PathIndexResolver
(RedisMappingContext mappingContext) Creates newPathIndexResolver
with givenIndexConfiguration
. -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<IndexedData>
resolveIndex
(String keyspace, String propertyPath, PersistentProperty<?> property, Object value) resolveIndexesFor
(String keyspace, String path, TypeInformation<?> typeInformation, Object value) Resolves all indexes for given type information / value combination.resolveIndexesFor
(TypeInformation<?> typeInformation, Object value) Resolves all indexes for given type information / value combination.
-
Constructor Details
-
PathIndexResolver
public PathIndexResolver()Creates newPathIndexResolver
with emptyIndexConfiguration
. -
PathIndexResolver
Creates newPathIndexResolver
with givenIndexConfiguration
.- Parameters:
mappingContext
- must not be null.
-
-
Method Details
-
resolveIndexesFor
public Set<IndexedData> resolveIndexesFor(TypeInformation<?> typeInformation, @Nullable Object value) Description copied from interface:IndexResolver
Resolves all indexes for given type information / value combination.- Specified by:
resolveIndexesFor
in interfaceIndexResolver
- Parameters:
typeInformation
- must not be null.value
- the actual value. Can be null.- Returns:
- never null.
-
resolveIndexesFor
public Set<IndexedData> resolveIndexesFor(String keyspace, String path, TypeInformation<?> typeInformation, Object value) Description copied from interface:IndexResolver
Resolves all indexes for given type information / value combination.- Specified by:
resolveIndexesFor
in interfaceIndexResolver
- Parameters:
keyspace
- must not be null.path
- must not be null.typeInformation
- must not be null.value
- the actual value. Can be null.- Returns:
- never null.
-
resolveIndex
protected Set<IndexedData> resolveIndex(String keyspace, String propertyPath, @Nullable PersistentProperty<?> property, @Nullable Object value)
-