Class Order
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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Order.Mode
static final org.springframework.data.domain.Sort.NullHandling
protected final Order.Mode
protected final String
-
Constructor Summary
ConstructorDescriptionOrder
(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 TypeMethodDescriptiongetMode()
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) with
(Order.Mode mode) 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
-
Field Details
-
DEFAULT_MODE
-
DEFAULT_NULL_HANDLING
public static final org.springframework.data.domain.Sort.NullHandling DEFAULT_NULL_HANDLING -
mode
-
unmappedType
-
-
Constructor Details
-
Order
-
Order
public Order(org.springframework.data.domain.Sort.Direction direction, String property, Order.Mode mode) -
Order
-
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
-
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
-
with
public org.springframework.data.domain.Sort.Order with(org.springframework.data.domain.Sort.Direction direction) - Overrides:
with
in classorg.springframework.data.domain.Sort.Order
-
withProperty
- Overrides:
withProperty
in classorg.springframework.data.domain.Sort.Order
-
with
public org.springframework.data.domain.Sort.Order with(org.springframework.data.domain.Sort.NullHandling nullHandling) - Overrides:
with
in classorg.springframework.data.domain.Sort.Order
-
withUnmappedType
-
with
-
getMode
-