public class ImplementOffset extends Object implements Rule<OffsetNode>
- Offset (row count = x)
- Source
Into:
- Project (prune rowNumber symbol)
- Filter (rowNumber > x)
- RowNumber
- Source
Relies on RowNumberNode's property of keeping order of its input.
If the query contains an ORDER BY clause, the sorted order
will be respected when leading rows are removed.Rule.Context, Rule.Result| Constructor and Description |
|---|
ImplementOffset() |
| Modifier and Type | Method and Description |
|---|---|
Rule.Result |
apply(OffsetNode parent,
Captures captures,
Rule.Context context) |
Pattern<OffsetNode> |
getPattern()
Returns a pattern to which plan nodes this rule applies.
|
public Pattern<OffsetNode> getPattern()
RulegetPattern in interface Rule<OffsetNode>public Rule.Result apply(OffsetNode parent, Captures captures, Rule.Context context)
apply in interface Rule<OffsetNode>Copyright © 2012–2019. All rights reserved.