001package gudusoft.gsqlparser.nodes; 002 003/** 004 * AST node for StarRocks SHOW LOAD TRANSACTION statement. 005 * 006 * Syntax: 007 * SHOW LOAD TRANSACTION [FROM db_name] [WHERE condition] 008 * 009 * Used to display information about stream load transactions. 010 */ 011public class TShowLoadTransactionSqlNode extends TParseTreeNode { 012 // Database name (optional: FROM db_name) 013 private TObjectName databaseName; 014 015 // Filter condition (optional: WHERE condition) 016 private TExpression whereCondition; 017 018 // Getters and setters 019 public TObjectName getDatabaseName() { 020 return databaseName; 021 } 022 023 public void setDatabaseName(TObjectName databaseName) { 024 this.databaseName = databaseName; 025 } 026 027 public TExpression getWhereCondition() { 028 return whereCondition; 029 } 030 031 public void setWhereCondition(TExpression whereCondition) { 032 this.whereCondition = whereCondition; 033 } 034 035 public void init(Object arg1) { 036 // arg1 can be database name (TObjectName) or null 037 if (arg1 instanceof TObjectName) { 038 this.databaseName = (TObjectName) arg1; 039 } 040 } 041}