Class SimpleIndexedPropertyValue

java.lang.Object
org.springframework.data.redis.core.convert.SimpleIndexedPropertyValue
All Implemented Interfaces:
IndexedData

public class SimpleIndexedPropertyValue extends Object implements IndexedData
IndexedData implementation indicating storage of data within a Redis Set.
Since:
1.7
Author:
Christoph Strobl, Rob Winch
  • Constructor Details

    • SimpleIndexedPropertyValue

      public SimpleIndexedPropertyValue(String keyspace, String indexName, Object value)
      Parameters:
      keyspace - must not be null.
      indexName - must not be null.
      value - can be null.
  • Method Details

    • getValue

      public Object getValue()
      Get the value to index.
      Returns:
      can be null.
    • getIndexName

      public String getIndexName()
      Description copied from interface: IndexedData
      Get the String representation of the index name.
      Specified by:
      getIndexName in interface IndexedData
      Returns:
      never null.
    • getKeyspace

      public String getKeyspace()
      Description copied from interface: IndexedData
      Get the associated keyspace the index resides in.
      Specified by:
      getKeyspace in interface IndexedData
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object