Class SpelIndexResolver

java.lang.Object
org.springframework.data.redis.core.convert.SpelIndexResolver
All Implemented Interfaces:
IndexResolver

public class SpelIndexResolver extends Object implements IndexResolver
An IndexResolver that resolves IndexedData using a SpelExpressionParser.
Since:
1.7
Author:
Rob Winch, Christoph Strobl
  • Constructor Details

    • SpelIndexResolver

      public SpelIndexResolver(RedisMappingContext mappingContext)
      Creates a new instance using a default SpelExpressionParser.
      Parameters:
      mappingContext - the RedisMappingContext to use. Cannot be null.
    • SpelIndexResolver

      public SpelIndexResolver(RedisMappingContext mappingContext, org.springframework.expression.spel.standard.SpelExpressionParser parser)
      Creates a new instance
      Parameters:
      mappingContext - the RedisMappingContext to use. Cannot be null.
      parser - the SpelExpressionParser to use. Cannot be null.
  • Method Details

    • resolveIndexesFor

      public Set<IndexedData> resolveIndexesFor(org.springframework.data.util.TypeInformation<?> typeInformation, @Nullable Object value)
      Description copied from interface: IndexResolver
      Resolves all indexes for given type information / value combination.
      Specified by:
      resolveIndexesFor in interface IndexResolver
      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, org.springframework.data.util.TypeInformation<?> typeInformation, Object value)
      Description copied from interface: IndexResolver
      Resolves all indexes for given type information / value combination.
      Specified by:
      resolveIndexesFor in interface IndexResolver
      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

      public void setBeanResolver(org.springframework.expression.BeanResolver beanResolver)
      Allows setting the BeanResolver
      Parameters:
      beanResolver - can be null.
      See Also:
      • BeanFactoryResolver