001package gudusoft.gsqlparser.nodes; 002/* 003 * Date: 12-9-26 004 */ 005 006import gudusoft.gsqlparser.TBaseType; 007import gudusoft.gsqlparser.TSourceToken; 008import gudusoft.gsqlparser.nodes.teradata.TCollectColumnIndex; 009 010import java.util.ArrayList; 011 012public class TCollectStatisticsSqlNode extends TParseTreeNode { 013 private TObjectName tableName = null; 014 private TObjectName columnName = null; 015 private TObjectName indexName = null; 016 private TObjectNameList columnList = null; 017 private TSourceToken column_or_index = null; 018 //private TCollectColumnIndex columnIndex; 019 020 021 public TSourceToken getColumn_or_index() { 022 return column_or_index; 023 } 024 025 public TObjectNameList getColumnList() { 026 return columnList; 027 } 028 029 public TObjectName getColumnName() { 030 return columnName; 031 } 032 033 public TObjectName getIndexName() { 034 return indexName; 035 } 036 037 public TObjectName getTableName() { 038 return tableName; 039 } 040 041 public void init(Object arg1){ 042 tableName = (TObjectName)arg1; 043 ((TObjectName)arg1).setObjectType(TObjectName.ttobjTable); 044 } 045 046 public TCollectColumnIndex getColumnIndex() { 047 return columnIndex; 048 } 049 050 private TCollectColumnIndex columnIndex; 051 052 private ArrayList<TCollectColumnIndex> columnIndexList; 053 public ArrayList<TCollectColumnIndex> getColumnIndexList() { 054 return columnIndexList; 055 } 056 057 public void init(Object arg1,Object arg2){ 058 init(arg1); 059 if (arg2 instanceof TCollectColumnIndex){ 060 columnIndex = (TCollectColumnIndex) arg2; 061 columnIndexList = new ArrayList<>(); 062 columnIndexList.add(columnIndex); 063 }else{ 064 columnIndexList = (ArrayList<TCollectColumnIndex>)arg2; 065 } 066 } 067 068}