Interface IndexDefinition
- All Known Subinterfaces:
PathBasedRedisIndexDefinition
- All Known Implementing Classes:
GeoIndexDefinition
,RedisIndexDefinition
,SimpleIndexDefinition
,SpelIndexDefinition
public interface IndexDefinition
IndexDefinition
allow to set up a blueprint for creating secondary index structures in Redis. Setting up
conditions allows to define IndexDefinition.Condition
that have to be passed in order to add a value to the index. This
allows to fine-grained tune the index structure. IndexValueTransformer
gets applied to the raw value for
creating the actual index entry.- Since:
- 1.7
- Author:
- Christoph Strobl, Mark Paluch
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static final class
Context in which a particular value is about to get indexed. -
Method Summary
Modifier and TypeMethodDescription
-
Method Details
-
getKeyspace
String getKeyspace()- Returns:
- never null.
-
getConditions
Collection<IndexDefinition.Condition<?>> getConditions()- Returns:
- never null.
-
valueTransformer
IndexValueTransformer valueTransformer()- Returns:
- never null.
-
getIndexName
String getIndexName()- Returns:
- never null.
-