java.lang.Object
org.springframework.data.domain.Sort
com.redis.om.spring.repository.query.Sort
All Implemented Interfaces:
Serializable, Iterable<org.springframework.data.domain.Sort.Order>, Supplier<Stream<org.springframework.data.domain.Sort.Order>>, org.springframework.data.util.Streamable<org.springframework.data.domain.Sort.Order>

public class Sort extends org.springframework.data.domain.Sort
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.data.domain.Sort

    org.springframework.data.domain.Sort.Direction, org.springframework.data.domain.Sort.NullHandling, org.springframework.data.domain.Sort.Order, org.springframework.data.domain.Sort.TypedSort<T extends Object>
  • Field Summary

    Fields inherited from class org.springframework.data.domain.Sort

    DEFAULT_DIRECTION
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Sort(List<org.springframework.data.domain.Sort.Order> orders)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.springframework.data.domain.Sort
    by(org.springframework.data.domain.Sort.Direction direction, MetamodelField<?,?>... fields)
    Creates a new Sort for the given Sort.Orders use MetamodelField

    Methods inherited from class org.springframework.data.domain.Sort

    and, ascending, by, by, by, by, descending, doReverse, equals, getOrderFor, hashCode, isEmpty, isSorted, isUnsorted, iterator, reverse, sort, toString, unsorted

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface org.springframework.data.util.Streamable

    and, and, and, and, filter, flatMap, get, map, stream, toList, toSet
  • Constructor Details

    • Sort

      protected Sort(List<org.springframework.data.domain.Sort.Order> orders)
  • Method Details

    • by

      public static org.springframework.data.domain.Sort by(org.springframework.data.domain.Sort.Direction direction, MetamodelField<?,?>... fields)
      Creates a new Sort for the given Sort.Orders use MetamodelField
      Parameters:
      direction - must not be null.
      fields - must not be null.
      Returns:
      a Spring Sort object