java.lang.Object
org.pgcodekeeper.core.database.ch.parser.rulectx.ChSelectOps

public class ChSelectOps extends Object
Merging wrapper for ClickHouse SELECT operations. Provides a unified interface for working with ClickHouse SELECT operations that may or may not be parenthesized.
  • Constructor Details

    • ChSelectOps

      public ChSelectOps(CHParser.Select_opsContext ops)
      Creates a wrapper for parenthesized ClickHouse SELECT operations.
      Parameters:
      ops - the SELECT operations context with parentheses
    • ChSelectOps

      public ChSelectOps(CHParser.Select_ops_no_parensContext ops)
      Creates a wrapper for non-parenthesized ClickHouse SELECT operations.
      Parameters:
      ops - the SELECT operations context without parentheses
  • Method Details

    • leftParen

      public org.antlr.v4.runtime.tree.TerminalNode leftParen()
      Returns the left parenthesis terminal node if present.
      Returns:
      the left parenthesis node or null if not present
    • rightParen

      public org.antlr.v4.runtime.tree.TerminalNode rightParen()
      Returns the right parenthesis terminal node if present.
      Returns:
      the right parenthesis node or null if not present
    • selectStmt

      public CHParser.Select_stmtContext selectStmt()
    • selectOps

      public List<CHParser.Select_opsContext> selectOps()
    • selectOps

      public ChSelectOps selectOps(int i)
    • union

      public org.antlr.v4.runtime.tree.TerminalNode union()
    • all

      public org.antlr.v4.runtime.tree.TerminalNode all()
    • intersect

      public org.antlr.v4.runtime.tree.TerminalNode intersect()
    • except

      public org.antlr.v4.runtime.tree.TerminalNode except()
    • distinct

      public org.antlr.v4.runtime.tree.TerminalNode distinct()
    • selectPrimary

      public CHParser.Select_primaryContext selectPrimary()