Module org.neo4j.cypherdsl.core
Package org.neo4j.cypherdsl.core
Interface StatementBuilder.TerminalExposesOrderBy
- All Known Subinterfaces:
StatementBuilder.OngoingReadingAndReturn
- Enclosing interface:
StatementBuilder
public static interface StatementBuilder.TerminalExposesOrderBy
A step that exposes several methods to specify ordering. This is a terminal operation just before a statement
is buildable.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionorderBy
(Collection<SortItem> sortItem) Order the result set by one or moresort items
.orderBy
(@NotNull Expression expression) Order the result set by an expression.Order the result set by one or moresort items
.
-
Method Details
-
orderBy
@NotNull @CheckReturnValue @NotNull StatementBuilder.OngoingMatchAndReturnWithOrder orderBy(SortItem... sortItem) Order the result set by one or moresort items
. Those can be retrieved for all expression withCypher.sort(Expression)
or directly from properties.- Parameters:
sortItem
- One or more sort items- Returns:
- A build step that still offers methods for defining skip and limit
-
orderBy
@NotNull @CheckReturnValue @NotNull StatementBuilder.OngoingMatchAndReturnWithOrder orderBy(Collection<SortItem> sortItem) Order the result set by one or moresort items
. Those can be retrieved for all expression withCypher.sort(Expression)
or directly from properties.- Parameters:
sortItem
- One or more sort items- Returns:
- A build step that still offers methods for defining skip and limit
- Since:
- 2021.2.2
-
orderBy
@NotNull @CheckReturnValue @NotNull StatementBuilder.TerminalOngoingOrderDefinition orderBy(@NotNull @NotNull Expression expression) Order the result set by an expression.- Parameters:
expression
- The expression to order by- Returns:
- A step that allows for adding more expression or fine-tuning the sort direction of the last expression
-