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
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 Sort.NullHandling
protected final Order.Mode
protected final String
-
Constructor Summary
ConstructorDescriptionOrder
(Sort.Direction direction, String property) Order
(Sort.Direction direction, String property, String unmappedType) Order
(Sort.Direction direction, String property, Sort.NullHandling nullHandlingHint) Order
(Sort.Direction direction, String property, Sort.NullHandling nullHandlingHint, String unmappedType) Order
(Sort.Direction direction, String property, Sort.NullHandling nullHandlingHint, Order.Mode mode) Order
(Sort.Direction direction, String property, Sort.NullHandling nullHandlingHint, Order.Mode mode, String unmappedType) Order
(Sort.Direction direction, String property, Order.Mode mode) Order
(Sort.Direction direction, String property, Order.Mode mode, String unmappedType) -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
with
(Sort.Direction direction) with
(Sort.NullHandling nullHandling) with
(Order.Mode mode) 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
-
mode
-
unmappedType
-
-
Constructor Details
-
Order
-
Order
-
Order
-
Order
public Order(Sort.Direction direction, String property, Order.Mode mode, @Nullable String unmappedType) -
Order
-
Order
public Order(Sort.Direction direction, String property, Sort.NullHandling nullHandlingHint, Order.Mode mode) -
Order
public Order(Sort.Direction direction, String property, Sort.NullHandling nullHandlingHint, @Nullable String unmappedType) -
Order
public Order(Sort.Direction direction, String property, Sort.NullHandling nullHandlingHint, Order.Mode mode, @Nullable String unmappedType)
-
-
Method Details
-
getUnmappedType
-
with
- Overrides:
with
in classSort.Order
-
withProperty
- Overrides:
withProperty
in classSort.Order
-
with
- Overrides:
with
in classSort.Order
-
withUnmappedType
-
with
-
getMode
-