Class WhereOperator

java.lang.Object
dev.frostlake.executor.operators.WhereOperator
All Implemented Interfaces:
Operator

public class WhereOperator extends Object implements Operator
WHERE clause operator - filters rows based on a predicate expression. This operator supports three evaluation modes: - SIMPLE: For single-table queries - WITH_ALIASES: For multi-table JOINs with table aliases - WITH_LATERAL_CONTEXT: For LATERAL joins with outer row context
  • Constructor Details

  • Method Details

    • create

      public static WhereOperator create(String whereExpression, OperatorContext context)
      Create a WHERE operator with automatic mode detection.
    • execute

      public List<Row> execute(List<Row> input, OperatorContext context)
      Description copied from interface: Operator
      Execute this operator on the input rows.
      Specified by:
      execute in interface Operator
      Parameters:
      input - The input rows from the previous operator
      context - The execution context containing table metadata and other information
      Returns:
      The output rows after applying this operator
    • getDescription

      public String getDescription()
      Description copied from interface: Operator
      Get a description of this operator for debugging/logging.
      Specified by:
      getDescription in interface Operator
      Returns:
      A human-readable description of the operator