Module org.neo4j.cypherdsl.core
Package org.neo4j.cypherdsl.core
Interface StatementBuilder.TerminalExposesLimit
- All Superinterfaces:
StatementBuilder.BuildableStatement<ResultStatement>
- All Known Subinterfaces:
StatementBuilder.OngoingMatchAndReturnWithOrder
,StatementBuilder.OngoingReadingAndReturn
,StatementBuilder.TerminalOngoingOrderDefinition
- Enclosing interface:
StatementBuilder
public static interface StatementBuilder.TerminalExposesLimit
extends StatementBuilder.BuildableStatement<ResultStatement>
A step that exposes the
limit(Number)
method.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionLimits the number of returned records.limit
(Expression expression) Limits the number of returned records.Methods inherited from interface org.neo4j.cypherdsl.core.StatementBuilder.BuildableStatement
build, explain, profile
-
Method Details
-
limit
@NotNull @CheckReturnValue @NotNull StatementBuilder.BuildableStatement<ResultStatement> limit(Number number) Limits the number of returned records.- Parameters:
number
- How many records to return. If this is null, all the records are returned.- Returns:
- A buildable match statement.
-
limit
@NotNull @CheckReturnValue @NotNull StatementBuilder.BuildableStatement<ResultStatement> limit(Expression expression) Limits the number of returned records.- Parameters:
expression
- How many records to return. If this is null, all the records are returned.- Returns:
- A buildable match statement.
- Since:
- 2021.0.0
-