001package gudusoft.gsqlparser.nodes; 002 003/** 004 * AST node for StarRocks SHOW RESOURCE GROUP / SHOW RESOURCE GROUPS statement. 005 * 006 * Syntax: 007 * SHOW RESOURCE GROUPS [ALL] 008 * SHOW RESOURCE GROUP resource_group_name 009 * 010 * Example: 011 * SHOW RESOURCE GROUPS; -- Show resource groups matching current user 012 * SHOW RESOURCE GROUPS ALL; -- Show all resource groups in cluster 013 * SHOW RESOURCE GROUP rg1; -- Show specific resource group 014 */ 015public class TShowResourceGroupSqlNode extends TParseTreeNode { 016 017 // Flag indicating if this is SHOW RESOURCE GROUPS (plural) vs SHOW RESOURCE GROUP (singular) 018 private boolean showAll; 019 020 // Flag indicating if ALL keyword is present (SHOW RESOURCE GROUPS ALL) 021 private boolean includeAll; 022 023 // Resource group name (only for SHOW RESOURCE GROUP name) 024 private TObjectName resourceGroupName; 025 026 // Getters and setters 027 public boolean isShowAll() { 028 return showAll; 029 } 030 031 public void setShowAll(boolean showAll) { 032 this.showAll = showAll; 033 } 034 035 public boolean isIncludeAll() { 036 return includeAll; 037 } 038 039 public void setIncludeAll(boolean includeAll) { 040 this.includeAll = includeAll; 041 } 042 043 public TObjectName getResourceGroupName() { 044 return resourceGroupName; 045 } 046 047 public void setResourceGroupName(TObjectName resourceGroupName) { 048 this.resourceGroupName = resourceGroupName; 049 } 050 051 public void init(Object arg1) { 052 // Optional initialization 053 } 054}