Package org.rumbledb.runtime.flwor.tuple
Class FlworKey
java.lang.Object
org.rumbledb.runtime.flwor.tuple.FlworKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareWithFlworKey(FlworKey flworKey, List<OrderByClauseAnnotatedChildIterator> expressions, ExceptionMetadata metadata) Invariant - two Flworkeys have the same lengthbooleanequalFlworKey(FlworKey flworKey) Invariant - two Flworkeys have the same lengthbooleaninthashCode()
-
Constructor Details
-
FlworKey
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
equalFlworKey
Invariant - two Flworkeys have the same length- Parameters:
flworKey- "other" FlworKey to be compared against- Returns:
- true if both items are equal, false otherwise (also when types are different)
-
compareWithFlworKey
public int compareWithFlworKey(FlworKey flworKey, List<OrderByClauseAnnotatedChildIterator> expressions, ExceptionMetadata metadata) Invariant - two Flworkeys have the same length- Parameters:
flworKey- "other" FlworKey to be compared againstmetadata-- Returns:
- comparison value (-1=smaller, 0=equal, 1=larger) * index (of the expression that determines ordering)
-