Package dev.frostlake.executor.operators
Class LimitOperator
java.lang.Object
dev.frostlake.executor.operators.LimitOperator
- All Implemented Interfaces:
Operator
LIMIT operator - restricts the number of rows returned.
Supports both LIMIT N and LIMIT N OFFSET M syntax.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(List<Row> input, OperatorContext context) Execute this operator on the input rows.Get a description of this operator for debugging/logging.
-
Constructor Details
-
LimitOperator
public LimitOperator(int limit, int offset) -
LimitOperator
public LimitOperator(int limit)
-
-
Method Details
-
execute
Description copied from interface:OperatorExecute this operator on the input rows. -
getDescription
Description copied from interface:OperatorGet a description of this operator for debugging/logging.- Specified by:
getDescriptionin interfaceOperator- Returns:
- A human-readable description of the operator
-