Class SpelIndexDefinition
java.lang.Object
org.springframework.data.redis.core.index.RedisIndexDefinition
org.springframework.data.redis.core.index.SpelIndexDefinition
- All Implemented Interfaces:
IndexDefinition
SpelIndexDefinition
defines index that is evaluated based on a SpelExpression
requires the
SpelIndexResolver
to be evaluated.- Since:
- 1.7
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.redis.core.index.RedisIndexDefinition
RedisIndexDefinition.CompositeValueTransformer, RedisIndexDefinition.LowercaseIndexValueTransformer, RedisIndexDefinition.NoOpValueTransformer, RedisIndexDefinition.OrCondition<T>, RedisIndexDefinition.PathCondition
Nested classes/interfaces inherited from interface org.springframework.data.redis.core.index.IndexDefinition
IndexDefinition.Condition<T>, IndexDefinition.IndexingContext
-
Constructor Summary
ConstructorDescriptionSpelIndexDefinition
(String keyspace, String expression, String indexName) Creates newSpelIndexDefinition
. -
Method Summary
Methods inherited from class org.springframework.data.redis.core.index.RedisIndexDefinition
addCondition, getConditions, getIndexName, getKeyspace, getPath, setValueTransformer, valueTransformer
-
Constructor Details
-
SpelIndexDefinition
Creates newSpelIndexDefinition
.- Parameters:
keyspace
- must not be null.expression
- must not be null.indexName
- must not be null.
-
-
Method Details
-
getExpression
Get the raw expression.- Returns:
-
equals
- Overrides:
equals
in classRedisIndexDefinition
-
hashCode
public int hashCode()- Overrides:
hashCode
in classRedisIndexDefinition
-