Class TAlterTableOption
- All Implemented Interfaces:
Visitable,Iterator<TSourceToken>
getOptionType() returns the type of various option:
Column
EAlterTableOptionType.AddColumn, checkgetColumnDefinitionList()for newly added columnsEAlterTableOptionType.AlterColumn, alter column option,getColumnName()returns the column name.
checkgetAlterColumnSubType()for the subtype of alter column option.EAlterColumnSubType.SetDefault,getDefaultExpr()returns default expressionEAlterColumnSubType.DropDefaultEAlterColumnSubType.DropNotNullEAlterColumnSubType.SetNotNullEAlterColumnSubType.SetStatistics,getStatisticsValue()returns the statistics valueEAlterColumnSubType.SetOptions,getAttributeOptions()returns the set optionsEAlterColumnSubType.ResetOptions,getAttributeOptions()returns the reset optionsEAlterColumnSubType.SetStorage,getStorageName()retuns the storage nameEAlterColumnSubType.SetDataType,returns the data type name
EAlterTableOptionType.ChangeColumn, MySQL,Hive,Impala change column clause,old column name,new column definitionEAlterTableOptionType.DropColumn, checkgetColumnNameList()for dropped columns.getDropRestrictType()returns drop restrict type if any.EAlterTableOptionType.ModifyColumn, checkgetColumnDefinitionList()for modified columnsEAlterTableOptionType.RenameColumn, renameold nametonew nameEAlterTableOptionType.SetUnUsedColumn, checkgetColumnNameList()for unused column. Oracle set unused column.EAlterTableOptionType.DropUnUsedColumn, Oracle drop unused columnsEAlterTableOptionType.DropColumnsContinue, Oracle drop columns continue
Constraint
EAlterTableOptionType.AddConstraint, checkgetConstraintList()for newly added table level constraintsEAlterTableOptionType.AddConstraintPK,primary key column list. MySQL,getConstraintName()returns the constraint nameEAlterTableOptionType.AddConstraintUnique,unique key column list. MyQL,getConstraintName()returns the constraint nameEAlterTableOptionType.AddConstraintFK,unique key column list,[constraint name],[referenced table name],[referenced column list],MySQLEAlterTableOptionType.AddConstraintIndex, checkindex column list,[constraint name],[index storage type]MySQL add index constraintEAlterTableOptionType.DropConstraint,constraint name list,[drop restrict type], Oracle/DB2/Greenplum drop constraint.EAlterTableOptionType.AlterConstraintFK, DB2 alter foreign key.EAlterTableOptionType.AlterConstraintCheck,check constraint name, DB2 alter check constraint.EAlterTableOptionType.DropConstraintIndex,constriant name, MySQL drop indexEAlterTableOptionType.DropConstraintKey,constriant name, MySQL drop indexEAlterTableOptionType.DropConstraintPK, Oracle/DB2/MySQL drop primary key.EAlterTableOptionType.DropConstraintFK,[constriant name], DB2/MySQL drop foreign key.EAlterTableOptionType.DropConstraintUnique, In Oracle, getunique column list, In DB2, getconstraint name.EAlterTableOptionType.DropConstraintCheck,check constraint name, DB2 drop check constraint.EAlterTableOptionType.ModifyConstraint, checkconstraint nameEAlterTableOptionType.RenameConstraint, renameold nametonew nameEAlterTableOptionType.ValidateConstraint,constraint name, greenplum/postgresql
Enable/disable
EAlterTableOptionType.enableTrigger,trigger name, greenplum/postgresql.EAlterTableOptionType.enableAlwaysTrigger,trigger name, greenplum/postgresql.EAlterTableOptionType.enableReplicaTrigger,trigger name, greenplum/postgresql.EAlterTableOptionType.disableTrigger,trigger name, greenplum/postgresql.EAlterTableOptionType.enableRule,rule name, greenplum/postgresql.EAlterTableOptionType.enableAlwaysRule,rule name, greenplum/postgresql.EAlterTableOptionType.enableReplicaRule,rule name, greenplum/postgresql.EAlterTableOptionType.disableRule,rule name, greenplum.
Others
EAlterTableOptionType.RenameTable,new table nameEAlterTableOptionType.inherit,parent table, greenplum/postgresql.EAlterTableOptionType.noInherit,parent table, greenplum/postgresql.EAlterTableOptionType.ofAnyType,type name, greenplum/postgresql.EAlterTableOptionType.ownerTo,owner name, greenplum/postgresql.EAlterTableOptionType.setTablespace,tablespace name, greenplum/postgresql.EAlterTableOptionType.setSchema,schema name, greenplum.EAlterTableOptionType.clusterOn,index name, postgresql.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class gudusoft.gsqlparser.nodes.TParseTreeNode
dbvendor, doubleLinkedTokenListToString, nodeActionAppend, nodeActionInsert, nodeActionRemove, nodeActionUnknown, nodeActionUpdate, nodeActionUpdateText, nodeChangeEndToken, nodeChangeStartToken -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAccept a visitorvoidAccept a visitor to iterate this class and sub-nodes of this classvoidvoiddoParse(TCustomSqlStatement psql, ESqlClause plocation) Analyze the sub-nodes inside this node.subtype of alter column.static EAlterTableOptionTypeGreenplum, Postgresql,Snowflake, any name when option type isEAlterTableOptionType.ofAnyTypeGreenplum,PostgreSQL,Snowflake, set/reset options when option type isEAlterTableOptionType.AlterColumnand subtype isEAlterColumnSubType.SetOptionsorEAlterColumnSubType.ResetOptionsList ofTColumnDefinitionList, valid whengetOptionType()is:valid whengetOptionType()is:List ofTObjectNameList, valid whengetOptionType()is:intList ofTConstraintin add constraint clause, valid whengetOptionType()isEAlterTableOptionType.AddConstraintvalid whengetOptionType()is:constraint name list when option type is:EAlterTableOptionType.DropConstraintMySQL, PostgreSQL, expression in set default clause of alter column.drop restrict type such as: cascade, restrictHive,Impala, partition spec of EXCHANGE partitionSpec WITH TABLE tableName clause.Hive,Impala,file format of SET FILEFORMAT clause valid whengetOptionType()isEAlterTableOptionType.setFileFormatMySQL, column list of foreign keyGreenplum, Postgresql, Snowflake, index name when option type isEAlterTableOptionType.clusterOnMySQL, index optionsDeprecated.As of v1.7.2.4.MySQL, unique, fulltext or spatial keyword used in add key/index clause when option type isEAlterTableOptionType.AddConstraintIndexnew collation when option type isEAlterTableOptionType.AlterColumnand subtype isEAlterColumnSubType.SetDataTypenew column name valid whengetOptionType()isEAlterTableOptionType.RenameColumnnew constraint name valid whengetOptionType()isEAlterTableOptionType.RenameConstraintnew data type when option type isEAlterTableOptionType.AlterColumnand subtype isEAlterColumnSubType.SetDataTypeowner name or roleId when option type isEAlterTableOptionType.ownerToHive, Impala, new partition spec in RENAME TO clause valid whengetOptionType()is:EAlterTableOptionType.renamePartitionnew table name is valid when option type is one of the following values:EAlterTableOptionType.RenameTable, new table in rename to clauseEAlterTableOptionType.setPrivileges, Netezza, table name in set privileges to clauseEAlterTableOptionType.exchangePartition,Hive, Impala, table name in exchange partition with table clauseEAlterTableOptionType.switchPartition, SQL Server, Openedge, table name of switch partition to target_table clauseGreenplum, Postgresql, Snowflake, tablespace name when option type isEAlterTableOptionType.setTablespaceHive, Impala, number of buckets of INTO BUCKETS clause valid whengetOptionType()is:EAlterTableOptionType.tableBucketsType of this alter table optionGreenplum, Postgresql,Snowflake, parent table when option type isEAlterTableOptionType.inheritorEAlterTableOptionType.noInheritHive,Impala, column of PARTITION COLUMN ( columnDef ) clause valid whengetOptionType()is:EAlterTableOptionType.clusteredSortedSQL Server, source_partition_number_expression in switch partition clauseSQL Server, target_partition_number_expression in switch partition clausepartition name in PostgreSQL attached partition clause.Hive, Impala, partition spec list in unarchive clause when option type isEAlterTableOptionType.unArchive,EAlterTableOptionType.archive.MySQL, referenced column list in foreign key clause.referenced table in foreign key clause.referenced table in foreign key clauseGreenplum, Postgresql,Snowflake, rule name when option type isEAlterTableOptionType.enableRuleorEAlterTableOptionType.enableAlwaysRuleorEAlterTableOptionType.enableReplicaRuleorEAlterTableOptionType.disableRuleGreenplum, Schema name when option type isEAlterTableOptionType.setSchemavalid whengetOptionType()is:Hive, Impala, skewed location of SET SKEWED LOCATION clause valid whengetOptionType()is:EAlterTableOptionType.skewedLocationredshift alter table...Greenplum,PostgreSQL,Snowflake, statistics value when option type isEAlterTableOptionType.AlterColumnand subtype isEAlterColumnSubType.SetStatisticsstorage name when option type isEAlterTableOptionType.AlterColumnand subtype isEAlterColumnSubType.SetStorageHive, Impala, clustered by ...table constraint when option type isEAlterTableOptionType.AddConstraintHive,Impala, file location of SET LOCATION clause valid whengetOptionType()is:EAlterTableOptionType.setLocationHive, Impala, table properties of SET/UNSET TBLPROPERTIES clause whengetOptionType()isEAlterTableOptionType.setTablePropertiesorEAlterTableOptionType.unsetTableProperties
table properties of SET SERDE clause whengetOptionType()isEAlterTableOptionType.serdeHive, Impala, tableSkewed clause syntax like: SKEWED BY '(' columnNameList ')' ON '(' skewedValueElement ')' valid whengetOptionType()is:EAlterTableOptionType.tableSkewedGreenplum, Postgresql,Snowflake, trigger name when option type isEAlterTableOptionType.enableTriggerorEAlterTableOptionType.enableAlwaysTriggerorEAlterTableOptionType.enableReplicaTriggerorEAlterTableOptionType.disableTriggerusing expr when option type isEAlterTableOptionType.AlterColumnand subtype isEAlterColumnSubType.SetDataTypevoidInitialize a query tree node.voidvoidvoidvoidsetAnyTypeName(TObjectName anyTypeName) voidsetAttributeOptions(ArrayList<TAttributeOption> attributeOptions) voidsetColumnDefinitionList(TColumnDefinitionList columnDefinitionList) voidsetColumnName(TObjectName columnName) voidsetColumnNameList(TObjectNameList columnNameList) voidsetColumnPosition(TDummy node) voidsetConstraintList(TConstraintList constraintList) voidsetConstraintName(TDummy pName) voidsetConstraintName(TObjectName constraintName) voidsetConstraintNameList(TObjectNameList constraintNameList) voidsetDefaultExpr(TExpression defaultExpr) voidsetDropRestrictType(EKeyReferenceType dropRestrictType) voidvoidsetExchangePartitionSpec(TPartitionExtensionClause exchangePartitionSpec) voidsetFileFormat(THiveTableFileFormat fileFormat) voidsetIndexCols(TPTNodeList<TColumnWithSortOrder> indexCols) voidsetIndexName(TObjectName indexName) voidsetIndexOptionList(TPTNodeList<TMySQLIndexOption> indexOptionList) voidsetMySQLIndexStorageType(TMySQLIndexStorageType mySQLIndexStorageType) voidsetMySQLIndexTypeToken(TSourceToken mySQLIndexTypeToken) voidsetNewCollation(TObjectName newCollation) voidsetNewColumnDef(TColumnDefinition newColumnDef) voidsetNewColumnName(TObjectName newColumnName) voidsetNewConstraintName(TObjectName newConstraintName) voidsetNewDataType(TTypeName newDataType) voidsetNewOwnerName(TObjectName newOwnerName) voidsetNewPartitionSpec(TPartitionExtensionClause newPartitionSpec) voidsetNewTableName(TObjectName newTableName) set new table name when option type isEAlterTableOptionType.RenameTablevoidsetNewTablespaceName(TObjectName newTablespaceName) voidsetNumberOfBuckets(TConstant numberOfBuckets) voidsetOptionType(EAlterTableOptionType optionType) voidsetParentTable(TObjectName parentTable) voidsetPartitionBoundSpec(TPartitionBoundSpecSqlNode partitionBoundSpec) voidsetPartitionColumnDef(TColumnDefinition partitionColumnDef) voidsetPartitionExpression1(TExpression partitionExpression1) voidsetPartitionExpression2(TExpression partitionExpression2) voidsetReferencedColumnList(TObjectNameList referencedColumnList) voidsetReferencedObjectName(TObjectName referencedObjectName) voidsetRuleName(TObjectName ruleName) voidsetSchemaName(TObjectName schemaName) voidsetSerdeName(TObjectName serdeName) voidsetSkewedLocations(TExpressionList skewedLocations) voidsetStatisticsValue(TConstant statisticsValue) voidsetStorageName(TObjectName storageName) voidsetTableBuckets(THiveTableBuckets tableBuckets) voidsetTableConstraint(TConstraint tableConstraint) voidsetTableLocation(TObjectName tableLocation) voidsetTableProperties(TPTNodeList<THiveKeyValueProperty> tableProperties) voidsetTableSkewed(THiveTableSkewed tableSkewed) voidsetTriggerName(TObjectName triggerName) voidsetUsingExpr(TExpression usingExpr) Methods inherited from class gudusoft.gsqlparser.nodes.TParseTreeNode
addAllMyTokensToTokenList, addToTokenChain, appendNewNode, calculateTokenCount, doAppendNewNode, fastSetString, getAnchorNode, getColumnNo, getCommentAfterNode, getCommentBeforeNode, getCompactString, getDummyTag, getEndToken, getEvaluateDatatype, getEvalValue, getGsqlparser, getLineNo, getLocation, getMd5, getNodeStatus, getNodeType, getParentObjectName, getPlainText, getStartToken, getTokenCount, hasNext, init, init, insertAfterAToken, insertNewNodeBeforeMe, isChanged, isTokensInChain, next, refreshAllNodesTokenCount, remove, removeAllMyTokensFromTokenList, removeTokens, removeTokensBetweenNodes, removeTokensBetweenToken, replaceWithNewNode, resetIterator, setAnchorNode, setChanged, setDummyTag, setEndToken, setEndToken, setEndToken, setEndToken, setEndToken, setEndTokenDirectly, setEvaluateDatatype, setEvalValue, setGsqlparser, setIncludingComment, setLocation, setNewSubNode, setNodeStatus, setNodeType, setParent, setPlainText, setStartToken, setStartToken, setStartToken, setStartToken, setStartTokenDirectly, setString, setString2, subNodeInNode, toScript, toString, toString2Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
COLUMN_POSITION_NONE
- See Also:
-
COLUMN_POSITION_FIRST
- See Also:
-
COLUMN_POSITION_AFTER
- See Also:
-
-
Constructor Details
-
TAlterTableOption
public TAlterTableOption()
-
-
Method Details
-
getPeriodForClause
-
getAlterTableOptionTypeByToken
-
getTablePartition
-
adjustOptionByToken
-
getMySQLTableOption
-
setPartitionBoundSpec
-
getPartitionBoundSpec
-
getAfterColumnName
-
getColumnPosition
-
setColumnPosition
-
getAlterColumnSubType
subtype of alter column.- Returns:
- subtype of alter column.
-
setIndexOptionList
-
getIndexOptionList
MySQL, index options- Returns:
- index options
-
setIndexCols
-
getIndexCols
MySQL, column list of foreign key- Returns:
- column list of foreign key
-
setDropRestrictType
-
getDropRestrictType
drop restrict type such as: cascade, restrict- Returns:
- drop restrict type such as: cascade, restrict
-
getOptionType
Type of this alter table option- Returns:
- Type of this alter table option
-
getReferencedTable
referenced table in foreign key clause- Returns:
- referenced table in foreign key clause
-
getPartitionName
partition name in PostgreSQL attached partition clause.- Returns:
- partition name
-
getSourceTableName
redshift alter table... append from source table- Returns:
- redshift alter table... append from source table
-
getPartitionExpression2
SQL Server, target_partition_number_expression in switch partition clause- Returns:
-
getPartitionExpression1
SQL Server, source_partition_number_expression in switch partition clause- Returns:
- source_partition_number_expression
-
getConstraintNameList
constraint name list when option type is:EAlterTableOptionType.DropConstraint- Returns:
- constraint name list
-
getSchemaName
Greenplum, Schema name when option type isEAlterTableOptionType.setSchema- Returns:
- schema name
-
setNewTablespaceName
-
getNewTablespaceName
Greenplum, Postgresql, Snowflake, tablespace name when option type isEAlterTableOptionType.setTablespace- Returns:
- tablespace name
-
setNewOwnerName
-
getNewOwnerName
owner name or roleId when option type isEAlterTableOptionType.ownerTo- Returns:
- owner name or role id
-
setAnyTypeName
-
getAnyTypeName
Greenplum, Postgresql,Snowflake, any name when option type isEAlterTableOptionType.ofAnyType- Returns:
- any name
-
setParentTable
-
getParentTable
Greenplum, Postgresql,Snowflake, parent table when option type isEAlterTableOptionType.inheritorEAlterTableOptionType.noInherit- Returns:
- parent table
-
setRuleName
-
getRuleName
Greenplum, Postgresql,Snowflake, rule name when option type isEAlterTableOptionType.enableRuleorEAlterTableOptionType.enableAlwaysRuleorEAlterTableOptionType.enableReplicaRuleorEAlterTableOptionType.disableRule- Returns:
- rule name
-
setTriggerName
-
getTriggerName
Greenplum, Postgresql,Snowflake, trigger name when option type isEAlterTableOptionType.enableTriggerorEAlterTableOptionType.enableAlwaysTriggerorEAlterTableOptionType.enableReplicaTriggerorEAlterTableOptionType.disableTrigger- Returns:
- trigger name
-
setIndexName
-
getIndexName
Greenplum, Postgresql, Snowflake, index name when option type isEAlterTableOptionType.clusterOn- Returns:
- index name
-
getNewIndexName
-
setTableConstraint
-
getTableConstraint
table constraint when option type isEAlterTableOptionType.AddConstraint- Returns:
- table constraint
-
setUsingExpr
-
getUsingExpr
using expr when option type isEAlterTableOptionType.AlterColumnand subtype isEAlterColumnSubType.SetDataType- Returns:
- using expr
-
setNewCollation
-
getNewCollation
new collation when option type isEAlterTableOptionType.AlterColumnand subtype isEAlterColumnSubType.SetDataType- Returns:
- new collation
-
setNewDataType
-
getNewDataType
new data type when option type isEAlterTableOptionType.AlterColumnand subtype isEAlterColumnSubType.SetDataType- Returns:
- new data type
-
setStorageName
-
getStorageName
storage name when option type isEAlterTableOptionType.AlterColumnand subtype isEAlterColumnSubType.SetStorage- Returns:
- storage name
-
setAttributeOptions
-
getAttributeOptions
Greenplum,PostgreSQL,Snowflake, set/reset options when option type isEAlterTableOptionType.AlterColumnand subtype isEAlterColumnSubType.SetOptionsorEAlterColumnSubType.ResetOptions- Returns:
- set/reset options
-
setStatisticsValue
-
getStatisticsValue
Greenplum,PostgreSQL,Snowflake, statistics value when option type isEAlterTableOptionType.AlterColumnand subtype isEAlterColumnSubType.SetStatistics- Returns:
- statistcs value
-
setDefaultExpr
-
getDefaultExpr
MySQL, PostgreSQL, expression in set default clause of alter column.- Returns:
- expression in set default clause of alter column.
-
setMySQLIndexTypeToken
-
getMySQLIndexTypeToken
MySQL, unique, fulltext or spatial keyword used in add key/index clause when option type isEAlterTableOptionType.AddConstraintIndex- Returns:
- unique, fulltext or spatial keyword
-
setMySQLIndexStorageType
-
getMySQLIndexStorageType
Deprecated.As of v1.7.2.4. usegetIndexOptionList()instead.- Returns:
- index storage type
-
setNewTableName
set new table name when option type isEAlterTableOptionType.RenameTable- Parameters:
newTableName- the new table name
-
getNewTableName
new table name is valid when option type is one of the following values:EAlterTableOptionType.RenameTable, new table in rename to clauseEAlterTableOptionType.setPrivileges, Netezza, table name in set privileges to clauseEAlterTableOptionType.exchangePartition,Hive, Impala, table name in exchange partition with table clauseEAlterTableOptionType.switchPartition, SQL Server, Openedge, table name of switch partition to target_table clause
- Returns:
- new table name
-
setReferencedColumnList
-
setReferencedObjectName
-
setColumnName
-
getConstraintList
List ofTConstraintin add constraint clause, valid whengetOptionType()isEAlterTableOptionType.AddConstraint- Returns:
- constraint list
-
getNameList
-
getColumnNameList
List ofTObjectNameList, valid whengetOptionType()is:EAlterTableOptionType.SetUnUsedColumnEAlterTableOptionType.DropColumnEAlterTableOptionType.AddConstraintIndex, columns of an indexEAlterTableOptionType.AddConstraintPK, columns of primary keyEAlterTableOptionType.AddConstraintUnique, columns of unique keyEAlterTableOptionType.AddConstraintFK, columns of foreign keyEAlterTableOptionType.DropConstraintUnique, available in Oracle- Returns:
- column name list
-
getColumnDefinitionList
- Returns:
- column definition list
-
getColumnName
valid whengetOptionType()is:EAlterTableOptionType.AlterColumnEAlterTableOptionType.RenameColumnEAlterTableOptionType.ChangeColumnEAlterTableOptionType.AddConstraintIndex, index name, optional- Returns:
- column name
-
getConstraintName
valid whengetOptionType()is:EAlterTableOptionType.AddConstraintPK, optionalEAlterTableOptionType.AddConstraintUnique, optionalEAlterTableOptionType.AddConstraintFK, optionalEAlterTableOptionType.ModifyConstraintEAlterTableOptionType.RenameConstraintEAlterTableOptionType.DropConstraintFKEAlterTableOptionType.DropConstraintUnique, available in DB2EAlterTableOptionType.DropConstraintCheck, available in DB2EAlterTableOptionType.DropConstraintIndex, available in DB2EAlterTableOptionType.DropConstraintKey, available in DB2EAlterTableOptionType.AlterConstraintFK, available in DB2EAlterTableOptionType.AlterConstraintCheck, available in DB2- Returns:
- constraint name
-
getNewColumnName
new column name valid whengetOptionType()isEAlterTableOptionType.RenameColumn- Returns:
- new column name
-
getNewConstraintName
new constraint name valid whengetOptionType()isEAlterTableOptionType.RenameConstraint- Returns:
- new constraint name
-
getReferencedColumnList
MySQL, referenced column list in foreign key clause.- Returns:
- referenced column list in foreign key clause.
-
getReferencedObjectName
referenced table in foreign key clause. Please usegetReferencedTable()instead.- Returns:
- referenced table in foreign key clause
-
init
Description copied from class:TParseTreeNodeInitialize a query tree node. Used internally- Overrides:
initin classTParseTreeNode- Parameters:
arg1- first argument
-
init
- Overrides:
initin classTParseTreeNode
-
getComment
-
getCommentExpr
-
setNewConstraintName
-
setConstraintName
-
setConstraintName
-
getNewColumnDef
- Returns:
TColumnDefinition, valid whengetOptionType()is:
-
getSerdeName
valid whengetOptionType()is:- Returns:
- serde name
-
init
- Overrides:
initin classTParseTreeNode
-
init
- Overrides:
initin classTParseTreeNode
-
getPartitionDefinitionList
-
getPartitionSpecList
Hive, Impala, partition spec list in unarchive clause when option type isEAlterTableOptionType.unArchive,EAlterTableOptionType.archive.
partition spec list in touch clause when option type isEAlterTableOptionType.touch,
partition spec list in drop clause when option type isEAlterTableOptionType.dropPartitionSpecList,
partition spec list in add clause when option type isEAlterTableOptionType.addPartitionSpecList,- Returns:
- partition spec list
-
getTableProperties
Hive, Impala, table properties of SET/UNSET TBLPROPERTIES clause whengetOptionType()isEAlterTableOptionType.setTablePropertiesorEAlterTableOptionType.unsetTableProperties
table properties of SET SERDE clause whengetOptionType()isEAlterTableOptionType.serde- Returns:
- table properties of SET/UNSET TBLPROPERTIES/SET SERDE clause.
-
getFileFormat
Hive,Impala,file format of SET FILEFORMAT clause valid whengetOptionType()isEAlterTableOptionType.setFileFormat- Returns:
- file format of SET FILEFORMAT
-
getTableLocation
Hive,Impala, file location of SET LOCATION clause valid whengetOptionType()is:EAlterTableOptionType.setLocation- Returns:
- file location of SET LOCATION clause
-
getPartitionDefinition
-
getNewPartitionSpec
Hive, Impala, new partition spec in RENAME TO clause valid whengetOptionType()is:EAlterTableOptionType.renamePartition- Returns:
- new partition spec in RENAME TO clause
-
getNumberOfBuckets
Hive, Impala, number of buckets of INTO BUCKETS clause valid whengetOptionType()is:EAlterTableOptionType.tableBuckets- Returns:
- number of buckets of INTO BUCKETS clause
-
getSkewedLocations
Hive, Impala, skewed location of SET SKEWED LOCATION clause valid whengetOptionType()is:EAlterTableOptionType.skewedLocation- Returns:
- skewed location of SET SKEWED LOCATION clause
-
getTableBuckets
Hive, Impala, clustered by ... [sorted by ...] into number buckets valid whengetOptionType()is:EAlterTableOptionType.clusteredSorted- Returns:
- table buckets
-
getPartitionColumnDef
Hive,Impala, column of PARTITION COLUMN ( columnDef ) clause valid whengetOptionType()is:EAlterTableOptionType.clusteredSorted- Returns:
- column of PARTITION COLUMN ( columnDef ) clause
-
getTableSkewed
Hive, Impala, tableSkewed clause syntax like: SKEWED BY '(' columnNameList ')' ON '(' skewedValueElement ')' valid whengetOptionType()is:EAlterTableOptionType.tableSkewed- Returns:
- tableSkewed clause
-
getExchangePartitionSpec
Hive,Impala, partition spec of EXCHANGE partitionSpec WITH TABLE tableName clause. valid whengetOptionType()is:EAlterTableOptionType.exchangePartition- Returns:
- partition spec of EXCHANGE partitionSpec WITH TABLE tableName clause.
-
doParse
Description copied from class:TParseTreeNodeAnalyze the sub-nodes inside this node. Such as build the relationship between table and column.- Overrides:
doParsein classTParseTreeNode- Parameters:
psql- SQL statement this node belongs toplocation- SQL clause this node belongs to
-
getRetenttionTimeInDays
-
accept
Description copied from class:TParseTreeNodeAccept a visitor- Specified by:
acceptin interfaceVisitable- Overrides:
acceptin classTParseTreeNode- Parameters:
v- visitor is a descendant class ofTParseTreeVisitor
-
acceptChildren
Description copied from class:TParseTreeNodeAccept a visitor to iterate this class and sub-nodes of this class- Specified by:
acceptChildrenin interfaceVisitable- Overrides:
acceptChildrenin classTParseTreeNode- Parameters:
v- visitor is a descendant class ofTParseTreeVisitor
-
setSerdeName
-
setDropRestrictType
-
setColumnDefinitionList
-
setConstraintList
-
setColumnNameList
-
setNewColumnName
-
setSchemaName
-
setConstraintNameList
-
setPartitionExpression1
-
setPartitionExpression2
-
setNewColumnDef
-
setTableProperties
-
setFileFormat
-
setTableLocation
-
setNewPartitionSpec
-
setNumberOfBuckets
-
setSkewedLocations
-
setTableBuckets
-
setPartitionColumnDef
-
setTableSkewed
-
setExchangePartitionSpec
-
setOptionType
-