java.lang.Object
org.springframework.data.domain.Sort.Order
org.springframework.data.elasticsearch.core.query.Order
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GeoDistanceOrder

public class Order extends org.springframework.data.domain.Sort.Order
Extends the Sort.Order with properties that can be set on Elasticsearch order options.
Since:
4.3
Author:
Peter-Josef Meisch
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Order.Mode
     
    static final org.springframework.data.domain.Sort.NullHandling
     
    protected final Order.Mode
     
    protected final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Order(org.springframework.data.domain.Sort.Direction direction, String property)
     
    Order(org.springframework.data.domain.Sort.Direction direction, String property, String unmappedType)
     
    Order(org.springframework.data.domain.Sort.Direction direction, String property, org.springframework.data.domain.Sort.NullHandling nullHandlingHint)
     
    Order(org.springframework.data.domain.Sort.Direction direction, String property, org.springframework.data.domain.Sort.NullHandling nullHandlingHint, String unmappedType)
     
    Order(org.springframework.data.domain.Sort.Direction direction, String property, org.springframework.data.domain.Sort.NullHandling nullHandlingHint, Order.Mode mode)
     
    Order(org.springframework.data.domain.Sort.Direction direction, String property, org.springframework.data.domain.Sort.NullHandling nullHandlingHint, Order.Mode mode, String unmappedType)
     
    Order(org.springframework.data.domain.Sort.Direction direction, String property, Order.Mode mode)
     
    Order(org.springframework.data.domain.Sort.Direction direction, String property, Order.Mode mode, String unmappedType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    org.springframework.data.domain.Sort.Order
    with(org.springframework.data.domain.Sort.Direction direction)
     
    org.springframework.data.domain.Sort.Order
    with(org.springframework.data.domain.Sort.NullHandling nullHandling)
     
     
    org.springframework.data.domain.Sort.Order
    withProperty(String property)
     
    withUnmappedType(String unmappedType)
     

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

    asc, by, desc, equals, getDirection, getNullHandling, getProperty, hashCode, ignoreCase, isAscending, isDescending, isIgnoreCase, nullsFirst, nullsLast, nullsNative, reverse, toString, withProperties

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • DEFAULT_MODE

      public static final Order.Mode DEFAULT_MODE
    • DEFAULT_NULL_HANDLING

      public static final org.springframework.data.domain.Sort.NullHandling DEFAULT_NULL_HANDLING
    • mode

      protected final Order.Mode mode
    • unmappedType

      @Nullable protected final String unmappedType
  • Constructor Details

    • Order

      public Order(org.springframework.data.domain.Sort.Direction direction, String property)
    • Order

      public Order(org.springframework.data.domain.Sort.Direction direction, String property, Order.Mode mode)
    • Order

      public Order(org.springframework.data.domain.Sort.Direction direction, String property, @Nullable String unmappedType)
    • Order

      public Order(org.springframework.data.domain.Sort.Direction direction, String property, Order.Mode mode, @Nullable String unmappedType)
    • Order

      public Order(org.springframework.data.domain.Sort.Direction direction, String property, org.springframework.data.domain.Sort.NullHandling nullHandlingHint)
    • Order

      public Order(org.springframework.data.domain.Sort.Direction direction, String property, org.springframework.data.domain.Sort.NullHandling nullHandlingHint, Order.Mode mode)
    • Order

      public Order(org.springframework.data.domain.Sort.Direction direction, String property, org.springframework.data.domain.Sort.NullHandling nullHandlingHint, @Nullable String unmappedType)
    • Order

      public Order(org.springframework.data.domain.Sort.Direction direction, String property, org.springframework.data.domain.Sort.NullHandling nullHandlingHint, Order.Mode mode, @Nullable String unmappedType)
  • Method Details

    • getUnmappedType

      @Nullable public String getUnmappedType()
    • with

      public org.springframework.data.domain.Sort.Order with(org.springframework.data.domain.Sort.Direction direction)
      Overrides:
      with in class org.springframework.data.domain.Sort.Order
    • withProperty

      public org.springframework.data.domain.Sort.Order withProperty(String property)
      Overrides:
      withProperty in class org.springframework.data.domain.Sort.Order
    • with

      public org.springframework.data.domain.Sort.Order with(org.springframework.data.domain.Sort.NullHandling nullHandling)
      Overrides:
      with in class org.springframework.data.domain.Sort.Order
    • withUnmappedType

      public Order withUnmappedType(@Nullable String unmappedType)
    • with

      public Order with(Order.Mode mode)
    • getMode

      public Order.Mode getMode()