Enum Class PhysicalNode.JoinAlgorithm

java.lang.Object
java.lang.Enum<PhysicalNode.JoinAlgorithm>
com.darkcollective.relix.plan.PhysicalNode.JoinAlgorithm
All Implemented Interfaces:
Serializable, Comparable<PhysicalNode.JoinAlgorithm>, Constable
Enclosing interface:
PhysicalNode

public static enum PhysicalNode.JoinAlgorithm extends Enum<PhysicalNode.JoinAlgorithm>
How a join is executed.
  • HASH — builds a hash index on the build side, probes with the stream side. O(build-side) memory, O(1) probe per row.
  • NESTED_LOOP — nested iteration; used when no equi-join key is available. O(1) memory but O(left × right) time.
  • MERGE — sort-merge join; requires both inputs sorted on the join keys (enforced by the planner via inserted PhysicalNode.Sort nodes). O(1) memory once inputs are in order; supports early termination.
  • Enum Constant Details

  • Method Details

    • values

      public static PhysicalNode.JoinAlgorithm[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PhysicalNode.JoinAlgorithm valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null