Class CompositeIndexResolver
java.lang.Object
org.springframework.data.redis.core.convert.CompositeIndexResolver
- All Implemented Interfaces:
IndexResolver
Composite
NOTE
IndexResolver implementation that iterates over a given collection of delegate
IndexResolver instances. NOTE
IndexedData created by an IndexResolver can be overwritten by subsequent
IndexResolver.- Since:
- 1.7
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeIndexResolver(Collection<IndexResolver> resolvers) Create newCompositeIndexResolver. -
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.
-
Constructor Details
-
CompositeIndexResolver
Create newCompositeIndexResolver.- Parameters:
resolvers- must not be null.
-
-
Method Details
-
resolveIndexesFor
public Set<IndexedData> resolveIndexesFor(TypeInformation<?> typeInformation, @Nullable Object value) Description copied from interface:IndexResolverResolves all indexes for given type information / value combination.- Specified by:
resolveIndexesForin 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, @Nullable Object value) Description copied from interface:IndexResolverResolves all indexes for given type information / value combination.- Specified by:
resolveIndexesForin 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.
-