Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.apache.hadoop.hive.ql.plan.DDLWork Maven / Gradle / Ivy
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hive.ql.plan;
import org.apache.hadoop.hive.ql.hooks.ReadEntity;
import org.apache.hadoop.hive.ql.hooks.WriteEntity;
import org.apache.hadoop.hive.ql.parse.AlterTablePartMergeFilesDesc;
import org.apache.hadoop.hive.ql.parse.PreInsertTableDesc;
import org.apache.hadoop.hive.ql.plan.Explain.Level;
import java.io.Serializable;
import java.util.HashSet;
/**
* DDLWork.
*
*/
public class DDLWork implements Serializable {
private static final long serialVersionUID = 1L;
// TODO: this can probably be replaced with much less code via dynamic dispatch and/or templates.
private PreInsertTableDesc preInsertTableDesc;
private InsertCommitHookDesc insertCommitHookDesc;
private AlterMaterializedViewDesc alterMVDesc;
private CreateDatabaseDesc createDatabaseDesc;
private SwitchDatabaseDesc switchDatabaseDesc;
private DropDatabaseDesc dropDatabaseDesc;
private LockDatabaseDesc lockDatabaseDesc;
private UnlockDatabaseDesc unlockDatabaseDesc;
private CreateTableDesc createTblDesc;
private CreateTableLikeDesc createTblLikeDesc;
private CreateViewDesc createVwDesc;
private DropTableDesc dropTblDesc;
private AlterTableDesc alterTblDesc;
private ShowDatabasesDesc showDatabasesDesc;
private ShowTablesDesc showTblsDesc;
private ShowColumnsDesc showColumnsDesc;
private ShowTblPropertiesDesc showTblPropertiesDesc;
private LockTableDesc lockTblDesc;
private UnlockTableDesc unlockTblDesc;
private ShowFunctionsDesc showFuncsDesc;
private ShowLocksDesc showLocksDesc;
private ShowCompactionsDesc showCompactionsDesc;
private ShowTxnsDesc showTxnsDesc;
private AbortTxnsDesc abortTxnsDesc;
private DescFunctionDesc descFunctionDesc;
private ShowPartitionsDesc showPartsDesc;
private ShowCreateDatabaseDesc showCreateDbDesc;
private ShowCreateTableDesc showCreateTblDesc;
private DescTableDesc descTblDesc;
private AddPartitionDesc addPartitionDesc;
private RenamePartitionDesc renamePartitionDesc;
private AlterTableSimpleDesc alterTblSimpleDesc;
private MsckDesc msckDesc;
private ShowTableStatusDesc showTblStatusDesc;
private DescDatabaseDesc descDbDesc;
private AlterDatabaseDesc alterDbDesc;
private AlterTableAlterPartDesc alterTableAlterPartDesc;
private TruncateTableDesc truncateTblDesc;
private AlterTableExchangePartition alterTableExchangePartition;
private KillQueryDesc killQueryDesc;
private RoleDDLDesc roleDDLDesc;
private GrantDesc grantDesc;
private ShowGrantDesc showGrantDesc;
private RevokeDesc revokeDesc;
private GrantRevokeRoleDDL grantRevokeRoleDDL;
private ShowConfDesc showConfDesc;
private CreateResourcePlanDesc createResourcePlanDesc;
private ShowResourcePlanDesc showResourcePlanDesc;
private DropResourcePlanDesc dropResourcePlanDesc;
private AlterResourcePlanDesc alterResourcePlanDesc;
private CreateWMTriggerDesc createWMTriggerDesc;
private AlterWMTriggerDesc alterWMTriggerDesc;
private DropWMTriggerDesc dropWMTriggerDesc;
private CreateOrAlterWMPoolDesc wmPoolDesc;
private DropWMPoolDesc dropWMPoolDesc;
private CreateOrAlterWMMappingDesc wmMappingDesc;
private DropWMMappingDesc dropWMMappingDesc;
private CreateOrDropTriggerToPoolMappingDesc triggerToPoolMappingDesc;
boolean needLock = false;
/**
* ReadEntitites that are passed to the hooks.
*/
protected HashSet inputs;
/**
* List of WriteEntities that are passed to the hooks.
*/
protected HashSet outputs;
private AlterTablePartMergeFilesDesc mergeFilesDesc;
private CacheMetadataDesc cacheMetadataDesc;
public DDLWork() {
}
public DDLWork(HashSet inputs, HashSet outputs) {
this.inputs = inputs;
this.outputs = outputs;
}
/**
* @param createDatabaseDesc
* Create Database descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
CreateDatabaseDesc createDatabaseDesc) {
this(inputs, outputs);
this.createDatabaseDesc = createDatabaseDesc;
}
/**
* @param inputs
* @param outputs
* @param descDatabaseDesc Database descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
DescDatabaseDesc descDatabaseDesc) {
this(inputs, outputs);
this.descDbDesc = descDatabaseDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
AlterDatabaseDesc alterDbDesc) {
this(inputs, outputs);
this.alterDbDesc = alterDbDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
TruncateTableDesc truncateTblDesc) {
this(inputs, outputs);
this.truncateTblDesc = truncateTblDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
ShowConfDesc showConfDesc) {
this(inputs, outputs);
this.showConfDesc = showConfDesc;
}
public DescDatabaseDesc getDescDatabaseDesc() {
return descDbDesc;
}
/**
* @param dropDatabaseDesc
* Drop Database descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
DropDatabaseDesc dropDatabaseDesc) {
this(inputs, outputs);
this.dropDatabaseDesc = dropDatabaseDesc;
}
/**
* @param switchDatabaseDesc
* Switch Database descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
SwitchDatabaseDesc switchDatabaseDesc) {
this(inputs, outputs);
this.switchDatabaseDesc = switchDatabaseDesc;
}
/**
* @param alterTblDesc
* alter table descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
AlterTableDesc alterTblDesc) {
this(inputs, outputs);
this.alterTblDesc = alterTblDesc;
}
/**
* @param alterMVDesc
* alter materialized view descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
AlterMaterializedViewDesc alterMVDesc) {
this(inputs, outputs);
this.alterMVDesc = alterMVDesc;
}
/**
* @param createTblDesc
* create table descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
CreateTableDesc createTblDesc) {
this(inputs, outputs);
this.createTblDesc = createTblDesc;
}
/**
* @param createTblLikeDesc
* create table like descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
CreateTableLikeDesc createTblLikeDesc) {
this(inputs, outputs);
this.createTblLikeDesc = createTblLikeDesc;
}
/**
* @param createVwDesc
* create view descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
CreateViewDesc createVwDesc) {
this(inputs, outputs);
this.createVwDesc = createVwDesc;
}
/**
* @param dropTblDesc
* drop table descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
DropTableDesc dropTblDesc) {
this(inputs, outputs);
this.dropTblDesc = dropTblDesc;
}
/**
* @param descTblDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
DescTableDesc descTblDesc) {
this(inputs, outputs);
this.descTblDesc = descTblDesc;
}
/**
* @param showDatabasesDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
ShowDatabasesDesc showDatabasesDesc) {
this(inputs, outputs);
this.showDatabasesDesc = showDatabasesDesc;
}
/**
* @param showTblsDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
ShowTablesDesc showTblsDesc) {
this(inputs, outputs);
this.showTblsDesc = showTblsDesc;
}
/**
* @param showColumnsDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
ShowColumnsDesc showColumnsDesc) {
this(inputs, outputs);
this.showColumnsDesc = showColumnsDesc;
}
/**
* @param lockTblDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
LockTableDesc lockTblDesc) {
this(inputs, outputs);
this.lockTblDesc = lockTblDesc;
}
/**
* @param unlockTblDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
UnlockTableDesc unlockTblDesc) {
this(inputs, outputs);
this.unlockTblDesc = unlockTblDesc;
}
/**
* @param lockDatabaseDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
LockDatabaseDesc lockDatabaseDesc) {
this(inputs, outputs);
this.lockDatabaseDesc = lockDatabaseDesc;
}
/**
* @param unlockDatabaseDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
UnlockDatabaseDesc unlockDatabaseDesc) {
this(inputs, outputs);
this.unlockDatabaseDesc = unlockDatabaseDesc;
}
/**
* @param showFuncsDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
ShowFunctionsDesc showFuncsDesc) {
this(inputs, outputs);
this.showFuncsDesc = showFuncsDesc;
}
/**
* @param showLocksDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
ShowLocksDesc showLocksDesc) {
this(inputs, outputs);
this.showLocksDesc = showLocksDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
ShowCompactionsDesc showCompactionsDesc) {
this(inputs, outputs);
this.showCompactionsDesc = showCompactionsDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
ShowTxnsDesc showTxnsDesc) {
this(inputs, outputs);
this.showTxnsDesc = showTxnsDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
AbortTxnsDesc abortTxnsDesc) {
this(inputs, outputs);
this.abortTxnsDesc = abortTxnsDesc;
}
/**
* @param descFuncDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
DescFunctionDesc descFuncDesc) {
this(inputs, outputs);
descFunctionDesc = descFuncDesc;
}
/**
* @param showPartsDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
ShowPartitionsDesc showPartsDesc) {
this(inputs, outputs);
this.showPartsDesc = showPartsDesc;
}
/**
* @param showCreateDbDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
ShowCreateDatabaseDesc showCreateDbDesc) {
this(inputs, outputs);
this.showCreateDbDesc = showCreateDbDesc;
}
/**
* @param showCreateTblDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
ShowCreateTableDesc showCreateTblDesc) {
this(inputs, outputs);
this.showCreateTblDesc = showCreateTblDesc;
}
/**
* @param addPartitionDesc
* information about the partitions we want to add.
*/
public DDLWork(HashSet inputs, HashSet outputs,
AddPartitionDesc addPartitionDesc) {
this(inputs, outputs);
this.addPartitionDesc = addPartitionDesc;
}
/**
* @param renamePartitionDesc
* information about the partitions we want to add.
*/
public DDLWork(HashSet inputs, HashSet outputs,
RenamePartitionDesc renamePartitionDesc) {
this(inputs, outputs);
this.renamePartitionDesc = renamePartitionDesc;
}
/**
* @param inputs
* @param outputs
* @param simpleDesc
*/
public DDLWork(HashSet inputs, HashSet outputs,
AlterTableSimpleDesc simpleDesc) {
this(inputs, outputs);
this.alterTblSimpleDesc = simpleDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
MsckDesc checkDesc) {
this(inputs, outputs);
msckDesc = checkDesc;
}
/**
* @param showTblStatusDesc
* show table status descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
ShowTableStatusDesc showTblStatusDesc) {
this(inputs, outputs);
this.showTblStatusDesc = showTblStatusDesc;
}
/**
* @param showTblPropertiesDesc
* show table properties descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
ShowTblPropertiesDesc showTblPropertiesDesc) {
this(inputs, outputs);
this.showTblPropertiesDesc = showTblPropertiesDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
RoleDDLDesc roleDDLDesc) {
this(inputs, outputs);
this.roleDDLDesc = roleDDLDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
GrantDesc grantDesc) {
this(inputs, outputs);
this.grantDesc = grantDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
ShowGrantDesc showGrant) {
this(inputs, outputs);
this.showGrantDesc = showGrant;
}
public DDLWork(HashSet inputs, HashSet outputs,
RevokeDesc revokeDesc) {
this(inputs, outputs);
this.revokeDesc = revokeDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
GrantRevokeRoleDDL grantRevokeRoleDDL) {
this(inputs, outputs);
this.grantRevokeRoleDDL = grantRevokeRoleDDL;
}
public DDLWork(HashSet inputs, HashSet outputs,
AlterTablePartMergeFilesDesc mergeDesc) {
this(inputs, outputs);
this.mergeFilesDesc = mergeDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
AlterTableAlterPartDesc alterPartDesc) {
this(inputs, outputs);
this.alterTableAlterPartDesc = alterPartDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
AlterTableExchangePartition alterTableExchangePartition) {
this(inputs, outputs);
this.alterTableExchangePartition = alterTableExchangePartition;
}
public DDLWork(HashSet inputs, HashSet outputs,
CacheMetadataDesc cacheMetadataDesc) {
this(inputs, outputs);
this.cacheMetadataDesc = cacheMetadataDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
InsertCommitHookDesc insertCommitHookDesc
) {
this(inputs, outputs);
this.insertCommitHookDesc = insertCommitHookDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
PreInsertTableDesc preInsertTableDesc) {
this(inputs, outputs);
this.preInsertTableDesc = preInsertTableDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
KillQueryDesc killQueryDesc) {
this(inputs, outputs);
this.killQueryDesc = killQueryDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
CreateResourcePlanDesc createResourcePlanDesc) {
this(inputs, outputs);
this.createResourcePlanDesc = createResourcePlanDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
ShowResourcePlanDesc showResourcePlanDesc) {
this(inputs, outputs);
this.showResourcePlanDesc = showResourcePlanDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
DropResourcePlanDesc dropResourcePlanDesc) {
this(inputs, outputs);
this.dropResourcePlanDesc = dropResourcePlanDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
AlterResourcePlanDesc alterResourcePlanDesc) {
this(inputs, outputs);
this.alterResourcePlanDesc = alterResourcePlanDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
CreateWMTriggerDesc createWMTriggerDesc) {
this(inputs, outputs);
this.createWMTriggerDesc = createWMTriggerDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
AlterWMTriggerDesc alterWMTriggerDesc) {
this(inputs, outputs);
this.alterWMTriggerDesc = alterWMTriggerDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
DropWMTriggerDesc dropWMTriggerDesc) {
this(inputs, outputs);
this.dropWMTriggerDesc = dropWMTriggerDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
CreateOrAlterWMPoolDesc wmPoolDesc) {
this(inputs, outputs);
this.wmPoolDesc = wmPoolDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
DropWMPoolDesc dropWMPoolDesc) {
this(inputs, outputs);
this.dropWMPoolDesc = dropWMPoolDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
CreateOrAlterWMMappingDesc wmMappingDesc) {
this(inputs, outputs);
this.wmMappingDesc = wmMappingDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
DropWMMappingDesc dropWMMappingDesc) {
this(inputs, outputs);
this.dropWMMappingDesc = dropWMMappingDesc;
}
public DDLWork(HashSet inputs, HashSet outputs,
CreateOrDropTriggerToPoolMappingDesc triggerToPoolMappingDesc) {
this(inputs, outputs);
this.triggerToPoolMappingDesc = triggerToPoolMappingDesc;
}
/**
* @return Create Database descriptor
*/
public CreateDatabaseDesc getCreateDatabaseDesc() {
return createDatabaseDesc;
}
/**
* Set Create Database descriptor
* @param createDatabaseDesc
*/
public void setCreateDatabaseDesc(CreateDatabaseDesc createDatabaseDesc) {
this.createDatabaseDesc = createDatabaseDesc;
}
/**
* @return Drop Database descriptor
*/
public DropDatabaseDesc getDropDatabaseDesc() {
return dropDatabaseDesc;
}
/**
* Set Drop Database descriptor
* @param dropDatabaseDesc
*/
public void setDropDatabaseDesc(DropDatabaseDesc dropDatabaseDesc) {
this.dropDatabaseDesc = dropDatabaseDesc;
}
/**
* @return Switch Database descriptor
*/
public SwitchDatabaseDesc getSwitchDatabaseDesc() {
return switchDatabaseDesc;
}
/**
* Set Switch Database descriptor
* @param switchDatabaseDesc
*/
public void setSwitchDatabaseDesc(SwitchDatabaseDesc switchDatabaseDesc) {
this.switchDatabaseDesc = switchDatabaseDesc;
}
public LockDatabaseDesc getLockDatabaseDesc() {
return lockDatabaseDesc;
}
public void setLockDatabaseDesc(LockDatabaseDesc lockDatabaseDesc) {
this.lockDatabaseDesc = lockDatabaseDesc;
}
public UnlockDatabaseDesc getUnlockDatabaseDesc() {
return unlockDatabaseDesc;
}
public void setUnlockDatabaseDesc(UnlockDatabaseDesc unlockDatabaseDesc) {
this.unlockDatabaseDesc = unlockDatabaseDesc;
}
/**
* @return the createTblDesc
*/
@Explain(displayName = "Create Table Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public CreateTableDesc getCreateTblDesc() {
return createTblDesc;
}
/**
* @param createTblDesc
* the createTblDesc to set
*/
public void setCreateTblDesc(CreateTableDesc createTblDesc) {
this.createTblDesc = createTblDesc;
}
/**
* @return the createTblDesc
*/
@Explain(displayName = "Create Table Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public CreateTableLikeDesc getCreateTblLikeDesc() {
return createTblLikeDesc;
}
/**
* @param createTblLikeDesc
* the createTblDesc to set
*/
public void setCreateTblLikeDesc(CreateTableLikeDesc createTblLikeDesc) {
this.createTblLikeDesc = createTblLikeDesc;
}
/**
* @return the createTblDesc
*/
@Explain(displayName = "Create View Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public CreateViewDesc getCreateViewDesc() {
return createVwDesc;
}
/**
* @param createVwDesc
* the createViewDesc to set
*/
public void setCreateViewDesc(CreateViewDesc createVwDesc) {
this.createVwDesc = createVwDesc;
}
/**
* @return the dropTblDesc
*/
@Explain(displayName = "Drop Table Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public DropTableDesc getDropTblDesc() {
return dropTblDesc;
}
/**
* @param dropTblDesc
* the dropTblDesc to set
*/
public void setDropTblDesc(DropTableDesc dropTblDesc) {
this.dropTblDesc = dropTblDesc;
}
/**
* @return the alterTblDesc
*/
@Explain(displayName = "Alter Table Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public AlterTableDesc getAlterTblDesc() {
return alterTblDesc;
}
/**
* @param alterTblDesc
* the alterTblDesc to set
*/
public void setAlterTblDesc(AlterTableDesc alterTblDesc) {
this.alterTblDesc = alterTblDesc;
}
/**
* @return the alterMVDesc
*/
@Explain(displayName = "Alter Materialized View Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public AlterMaterializedViewDesc getAlterMaterializedViewDesc() {
return alterMVDesc;
}
/**
* @param alterMVDesc
* the alterMVDesc to set
*/
public void setAlterMVDesc(AlterMaterializedViewDesc alterMVDesc) {
this.alterMVDesc = alterMVDesc;
}
/**
* @return the showDatabasesDesc
*/
@Explain(displayName = "Show Databases Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public ShowDatabasesDesc getShowDatabasesDesc() {
return showDatabasesDesc;
}
/**
* @param showDatabasesDesc
* the showDatabasesDesc to set
*/
public void setShowDatabasesDesc(ShowDatabasesDesc showDatabasesDesc) {
this.showDatabasesDesc = showDatabasesDesc;
}
/**
* @return the showTblsDesc
*/
@Explain(displayName = "Show Table Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public ShowTablesDesc getShowTblsDesc() {
return showTblsDesc;
}
/**
* @param showTblsDesc
* the showTblsDesc to set
*/
public void setShowTblsDesc(ShowTablesDesc showTblsDesc) {
this.showTblsDesc = showTblsDesc;
}
/**
* @return the showColumnsDesc
*/
@Explain(displayName = "Show Columns Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public ShowColumnsDesc getShowColumnsDesc() {
return showColumnsDesc;
}
/**
* @param showColumnsDesc
* the showColumnsDesc to set
*/
public void setShowColumnsDesc(ShowColumnsDesc showColumnsDesc) {
this.showColumnsDesc = showColumnsDesc;
}
/**
* @return the showFuncsDesc
*/
@Explain(displayName = "Show Function Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public ShowFunctionsDesc getShowFuncsDesc() {
return showFuncsDesc;
}
/**
* @return the showLocksDesc
*/
@Explain(displayName = "Show Lock Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public ShowLocksDesc getShowLocksDesc() {
return showLocksDesc;
}
@Explain(displayName = "Show Compactions Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public ShowCompactionsDesc getShowCompactionsDesc() {
return showCompactionsDesc;
}
@Explain(displayName = "Show Transactions Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public ShowTxnsDesc getShowTxnsDesc() {
return showTxnsDesc;
}
@Explain(displayName = "Abort Transactions Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public AbortTxnsDesc getAbortTxnsDesc() {
return abortTxnsDesc;
}
/**
* @return the lockTblDesc
*/
@Explain(displayName = "Lock Table Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public LockTableDesc getLockTblDesc() {
return lockTblDesc;
}
/**
* @return the unlockTblDesc
*/
@Explain(displayName = "Unlock Table Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public UnlockTableDesc getUnlockTblDesc() {
return unlockTblDesc;
}
/**
* @return the descFuncDesc
*/
@Explain(displayName = "Show Function Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public DescFunctionDesc getDescFunctionDesc() {
return descFunctionDesc;
}
@Explain(displayName = "Kill Query Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public KillQueryDesc getKillQueryDesc() {
return killQueryDesc;
}
/**
* @param showFuncsDesc
* the showFuncsDesc to set
*/
public void setShowFuncsDesc(ShowFunctionsDesc showFuncsDesc) {
this.showFuncsDesc = showFuncsDesc;
}
/**
* @param showLocksDesc
* the showLocksDesc to set
*/
public void setShowLocksDesc(ShowLocksDesc showLocksDesc) {
this.showLocksDesc = showLocksDesc;
}
public void setShowCompactionsDesc(ShowCompactionsDesc showCompactionsDesc) {
this.showCompactionsDesc = showCompactionsDesc;
}
public void setShowTxnsDesc(ShowTxnsDesc showTxnsDesc) {
this.showTxnsDesc = showTxnsDesc;
}
public void setAbortTxnsDesc(AbortTxnsDesc abortTxnsDesc) {
this.abortTxnsDesc = abortTxnsDesc;
}
public void setKillQueryDesc(KillQueryDesc killQueryDesc) {
this.killQueryDesc = killQueryDesc;
}
/**
* @param lockTblDesc
* the lockTblDesc to set
*/
public void setLockTblDesc(LockTableDesc lockTblDesc) {
this.lockTblDesc = lockTblDesc;
}
/**
* @param unlockTblDesc
* the unlockTblDesc to set
*/
public void setUnlockTblDesc(UnlockTableDesc unlockTblDesc) {
this.unlockTblDesc = unlockTblDesc;
}
/**
* @param descFuncDesc
* the showFuncsDesc to set
*/
public void setDescFuncDesc(DescFunctionDesc descFuncDesc) {
descFunctionDesc = descFuncDesc;
}
/**
* @return the showPartsDesc
*/
@Explain(displayName = "Show Partitions Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public ShowPartitionsDesc getShowPartsDesc() {
return showPartsDesc;
}
/**
* @param showPartsDesc
* the showPartsDesc to set
*/
public void setShowPartsDesc(ShowPartitionsDesc showPartsDesc) {
this.showPartsDesc = showPartsDesc;
}
@Explain(displayName = "Show Create Database Operator",
explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public ShowCreateDatabaseDesc getShowCreateDbDesc() {
return showCreateDbDesc;
}
public void setShowCreateDbDesc(ShowCreateDatabaseDesc showCreateDbDesc) {
this.showCreateDbDesc = showCreateDbDesc;
}
/**
* @return the showCreateTblDesc
*/
@Explain(displayName = "Show Create Table Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public ShowCreateTableDesc getShowCreateTblDesc() {
return showCreateTblDesc;
}
/**
* @param showCreateTblDesc
* the showCreateTblDesc to set
*/
public void setShowCreateTblDesc(ShowCreateTableDesc showCreateTblDesc) {
this.showCreateTblDesc = showCreateTblDesc;
}
/**
* @return the descTblDesc
*/
@Explain(displayName = "Describe Table Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public DescTableDesc getDescTblDesc() {
return descTblDesc;
}
/**
* @param descTblDesc
* the descTblDesc to set
*/
public void setDescTblDesc(DescTableDesc descTblDesc) {
this.descTblDesc = descTblDesc;
}
/**
* @return information about the partitions we want to add.
*/
@Explain(displayName = "Add Partition Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public AddPartitionDesc getAddPartitionDesc() {
return addPartitionDesc;
}
/**
* @param addPartitionDesc
* information about the partitions we want to add.
*/
public void setAddPartitionDesc(AddPartitionDesc addPartitionDesc) {
this.addPartitionDesc = addPartitionDesc;
}
/**
* @return information about the partitions we want to rename.
*/
public RenamePartitionDesc getRenamePartitionDesc() {
return renamePartitionDesc;
}
/**
* @param renamePartitionDesc
* information about the partitions we want to rename.
*/
public void setRenamePartitionDesc(RenamePartitionDesc renamePartitionDesc) {
this.renamePartitionDesc = renamePartitionDesc;
}
/**
* @return information about the table/partitions we want to alter.
*/
public AlterTableSimpleDesc getAlterTblSimpleDesc() {
return alterTblSimpleDesc;
}
/**
* @param desc
* information about the table/partitions we want to alter.
*/
public void setAlterTblSimpleDesc(AlterTableSimpleDesc desc) {
this.alterTblSimpleDesc = desc;
}
/**
* @return Metastore check description
*/
public MsckDesc getMsckDesc() {
return msckDesc;
}
/**
* @param msckDesc
* metastore check description
*/
public void setMsckDesc(MsckDesc msckDesc) {
this.msckDesc = msckDesc;
}
/**
* @return show table descriptor
*/
public ShowTableStatusDesc getShowTblStatusDesc() {
return showTblStatusDesc;
}
/**
* @param showTblStatusDesc
* show table descriptor
*/
public void setShowTblStatusDesc(ShowTableStatusDesc showTblStatusDesc) {
this.showTblStatusDesc = showTblStatusDesc;
}
public ShowTblPropertiesDesc getShowTblPropertiesDesc() {
return showTblPropertiesDesc;
}
public void setShowTblPropertiesDesc(ShowTblPropertiesDesc showTblPropertiesDesc) {
this.showTblPropertiesDesc = showTblPropertiesDesc;
}
public void setDescFunctionDesc(DescFunctionDesc descFunctionDesc) {
this.descFunctionDesc = descFunctionDesc;
}
public HashSet getInputs() {
return inputs;
}
public HashSet getOutputs() {
return outputs;
}
public void setInputs(HashSet inputs) {
this.inputs = inputs;
}
public void setOutputs(HashSet outputs) {
this.outputs = outputs;
}
/**
* @return role ddl desc
*/
public RoleDDLDesc getRoleDDLDesc() {
return roleDDLDesc;
}
/**
* @param roleDDLDesc role ddl desc
*/
public void setRoleDDLDesc(RoleDDLDesc roleDDLDesc) {
this.roleDDLDesc = roleDDLDesc;
}
/**
* @return grant desc
*/
public GrantDesc getGrantDesc() {
return grantDesc;
}
/**
* @param grantDesc grant desc
*/
public void setGrantDesc(GrantDesc grantDesc) {
this.grantDesc = grantDesc;
}
/**
* @return show grant desc
*/
public ShowGrantDesc getShowGrantDesc() {
return showGrantDesc;
}
/**
* @param showGrantDesc
*/
public void setShowGrantDesc(ShowGrantDesc showGrantDesc) {
this.showGrantDesc = showGrantDesc;
}
public RevokeDesc getRevokeDesc() {
return revokeDesc;
}
public void setRevokeDesc(RevokeDesc revokeDesc) {
this.revokeDesc = revokeDesc;
}
public GrantRevokeRoleDDL getGrantRevokeRoleDDL() {
return grantRevokeRoleDDL;
}
/**
* @param grantRevokeRoleDDL
*/
public void setGrantRevokeRoleDDL(GrantRevokeRoleDDL grantRevokeRoleDDL) {
this.grantRevokeRoleDDL = grantRevokeRoleDDL;
}
public void setAlterDatabaseDesc(AlterDatabaseDesc alterDbDesc) {
this.alterDbDesc = alterDbDesc;
}
public AlterDatabaseDesc getAlterDatabaseDesc() {
return this.alterDbDesc;
}
/**
* @return descriptor for merging files
*/
public AlterTablePartMergeFilesDesc getMergeFilesDesc() {
return mergeFilesDesc;
}
/**
* @param mergeDesc descriptor of merging files
*/
public void setMergeFilesDesc(AlterTablePartMergeFilesDesc mergeDesc) {
this.mergeFilesDesc = mergeDesc;
}
public boolean getNeedLock() {
return needLock;
}
public void setNeedLock(boolean needLock) {
this.needLock = needLock;
}
/**
* @return information about the partitions we want to change.
*/
public AlterTableAlterPartDesc getAlterTableAlterPartDesc() {
return alterTableAlterPartDesc;
}
/**
* @param alterPartitionDesc
* information about the partitions we want to change.
*/
public void setAlterTableAlterPartDesc(AlterTableAlterPartDesc alterPartitionDesc) {
this.alterTableAlterPartDesc = alterPartitionDesc;
}
@Explain(displayName = "Truncate Table Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public TruncateTableDesc getTruncateTblDesc() {
return truncateTblDesc;
}
public void setTruncateTblDesc(TruncateTableDesc truncateTblDesc) {
this.truncateTblDesc = truncateTblDesc;
}
/**
* @return information about the table partition to be exchanged
*/
public AlterTableExchangePartition getAlterTableExchangePartition() {
return this.alterTableExchangePartition;
}
/**
* @return information about the metadata to be cached
*/
public CacheMetadataDesc getCacheMetadataDesc() {
return this.cacheMetadataDesc;
}
/**
* @param alterTableExchangePartition
* set the value of the table partition to be exchanged
*/
public void setAlterTableExchangePartition(
AlterTableExchangePartition alterTableExchangePartition) {
this.alterTableExchangePartition = alterTableExchangePartition;
}
public ShowConfDesc getShowConfDesc() {
return showConfDesc;
}
public void setShowConfDesc(ShowConfDesc showConfDesc) {
this.showConfDesc = showConfDesc;
}
@Explain(displayName = "Insert operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public InsertCommitHookDesc getInsertCommitHookDesc() {
return insertCommitHookDesc;
}
public void setInsertCommitHookDesc(InsertCommitHookDesc insertCommitHookDesc) {
this.insertCommitHookDesc = insertCommitHookDesc;
}
@Explain(displayName = "Pre Insert operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public PreInsertTableDesc getPreInsertTableDesc() {
return preInsertTableDesc;
}
public void setPreInsertTableDesc(PreInsertTableDesc preInsertTableDesc) {
this.preInsertTableDesc = preInsertTableDesc;
}
@Explain(displayName = "Create resource plan")
public CreateResourcePlanDesc getCreateResourcePlanDesc() {
return createResourcePlanDesc;
}
public void setCreateResourcePlanDesc(CreateResourcePlanDesc createResourcePlanDesc) {
this.createResourcePlanDesc = createResourcePlanDesc;
}
@Explain(displayName = "Show resource plan")
public ShowResourcePlanDesc getShowResourcePlanDesc() {
return showResourcePlanDesc;
}
public void setShowResourcePlanDesc(ShowResourcePlanDesc showResourcePlanDesc) {
this.showResourcePlanDesc = showResourcePlanDesc;
}
public DropResourcePlanDesc getDropResourcePlanDesc() {
return dropResourcePlanDesc;
}
public void setDropResourcePlanDesc(DropResourcePlanDesc dropResourcePlanDesc) {
this.dropResourcePlanDesc = dropResourcePlanDesc;
}
public AlterResourcePlanDesc getAlterResourcePlanDesc() {
return alterResourcePlanDesc;
}
public void setAlterResourcePlanDesc(AlterResourcePlanDesc alterResourcePlanDesc) {
this.alterResourcePlanDesc = alterResourcePlanDesc;
}
public CreateWMTriggerDesc getCreateWMTriggerDesc() {
return createWMTriggerDesc;
}
public void setCreateWMTriggerDesc(CreateWMTriggerDesc createWMTriggerDesc) {
this.createWMTriggerDesc = createWMTriggerDesc;
}
public AlterWMTriggerDesc getAlterWMTriggerDesc() {
return alterWMTriggerDesc;
}
public void setAlterWMTriggerDesc(AlterWMTriggerDesc alterWMTriggerDesc) {
this.alterWMTriggerDesc = alterWMTriggerDesc;
}
public DropWMTriggerDesc getDropWMTriggerDesc() {
return dropWMTriggerDesc;
}
public void setDropWMTriggerDesc(DropWMTriggerDesc dropWMTriggerDesc) {
this.dropWMTriggerDesc = dropWMTriggerDesc;
}
public CreateOrAlterWMPoolDesc getWmPoolDesc() {
return wmPoolDesc;
}
public void setWmPoolDesc(CreateOrAlterWMPoolDesc wmPoolDesc) {
this.wmPoolDesc = wmPoolDesc;
}
public DropWMPoolDesc getDropWMPoolDesc() {
return dropWMPoolDesc;
}
public void setDropWMPoolDesc(DropWMPoolDesc dropWMPoolDesc) {
this.dropWMPoolDesc = dropWMPoolDesc;
}
public CreateOrAlterWMMappingDesc getWmMappingDesc() {
return wmMappingDesc;
}
public void setWmMappingDesc(CreateOrAlterWMMappingDesc wmMappingDesc) {
this.wmMappingDesc = wmMappingDesc;
}
public DropWMMappingDesc getDropWMMappingDesc() {
return dropWMMappingDesc;
}
public void setDropWMMappingDesc(DropWMMappingDesc dropWMMappingDesc) {
this.dropWMMappingDesc = dropWMMappingDesc;
}
public CreateOrDropTriggerToPoolMappingDesc getTriggerToPoolMappingDesc() {
return triggerToPoolMappingDesc;
}
public void setTriggerToPoolMappingDesc(CreateOrDropTriggerToPoolMappingDesc triggerToPoolMappingDesc) {
this.triggerToPoolMappingDesc = triggerToPoolMappingDesc;
}
}