Class SpelIndexResolver
java.lang.Object
org.springframework.data.redis.core.convert.SpelIndexResolver
- All Implemented Interfaces:
IndexResolver
- Since:
- 1.7
- Author:
- Rob Winch, Christoph Strobl
-
Constructor Summary
ConstructorDescriptionSpelIndexResolver
(RedisMappingContext mappingContext) Creates a new instance using a defaultSpelExpressionParser
.SpelIndexResolver
(RedisMappingContext mappingContext, SpelExpressionParser parser) Creates a new instance -
Method Summary
Modifier and TypeMethodDescriptionresolveIndexesFor
(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.void
setBeanResolver
(BeanResolver beanResolver) Allows setting the BeanResolver
-
Constructor Details
-
SpelIndexResolver
Creates a new instance using a defaultSpelExpressionParser
.- Parameters:
mappingContext
- theRedisMappingContext
to use. Cannot be null.
-
SpelIndexResolver
Creates a new instance- Parameters:
mappingContext
- theRedisMappingContext
to use. Cannot be null.parser
- theSpelExpressionParser
to use. Cannot 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.
-
setBeanResolver
Allows setting the BeanResolver- Parameters:
beanResolver
- can be null.- See Also:
-