Class FlworKey

java.lang.Object
org.rumbledb.runtime.flwor.tuple.FlworKey

public class FlworKey extends Object
  • Constructor Details

    • FlworKey

      public FlworKey(List<Item> contents)
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object otherKey)
      Overrides:
      equals in class Object
    • equalFlworKey

      public boolean equalFlworKey(FlworKey flworKey)
      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 against
      metadata -
      Returns:
      comparison value (-1=smaller, 0=equal, 1=larger) * index (of the expression that determines ordering)