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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Order.Modestatic final Sort.NullHandlingprotected final Order.Modeprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionOrder(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:
within classSort.Order
-
withProperty
- Overrides:
withPropertyin classSort.Order
-
with
- Overrides:
within classSort.Order
-
withUnmappedType
-
with
-
getMode
-