Package io.trino.operator.window.pattern
Class LogicalIndexNavigation
java.lang.Object
io.trino.operator.window.pattern.LogicalIndexNavigation
-
Constructor Summary
ConstructorsConstructorDescriptionLogicalIndexNavigation(Set<Integer> labels, boolean last, boolean running, int logicalOffset, int physicalOffset) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintinthashCode()booleanisLast()intresolvePosition(int currentRow, ArrayView matchedLabels, int searchStart, int searchEnd, int patternStart) This method is used when evaluating labels during pattern matching, computing row pattern measures, and computing SKIP TO position after finding a match.withLogicalOffset(int logicalOffset) withPhysicalOffset(int physicalOffset)
-
Constructor Details
-
LogicalIndexNavigation
-
-
Method Details
-
getLabels
-
isLast
public boolean isLast() -
getLogicalOffset
public int getLogicalOffset() -
getPhysicalOffset
public int getPhysicalOffset() -
resolvePosition
public int resolvePosition(int currentRow, ArrayView matchedLabels, int searchStart, int searchEnd, int patternStart) This method is used when evaluating labels during pattern matching, computing row pattern measures, and computing SKIP TO position after finding a match. Search is limited up to the current row in case of running semantics and to the entire match in case of final semantics.- Returns:
- position within partition, or -1 if matching position was not found
-
withoutLogicalOffset
-
withLogicalOffset
-
withoutPhysicalOffset
-
withPhysicalOffset
-
equals
-
hashCode
public int hashCode()
-