Class QueryMapper.Field

java.lang.Object
org.springframework.data.cassandra.core.convert.QueryMapper.Field
Direct Known Subclasses:
QueryMapper.MetadataBackedField
Enclosing class:
QueryMapper

protected static class QueryMapper.Field extends Object
Value object to represent a field and its meta-information.
Author:
Mark Paluch
  • Field Details

  • Method Details

    • with

      public QueryMapper.Field with(ColumnName name)
      Returns a new QueryMapper.Field with the given name.
      Parameters:
      name - must not be null or empty.
      Returns:
      a new QueryMapper.Field with the given name.
    • getProperty

      public Optional<CassandraPersistentProperty> getProperty()
      Returns the underlying CassandraPersistentProperty backing the field. For path traversals this will be the property that represents the value to handle. This means it'll be the leaf property for plain paths or the association property in case we refer to an association somewhere in the path.
    • getMappedKey

      public ColumnName getMappedKey()
      Returns the key to be used in the mapped document eventually.