org.apache.hadoop.hive.ql.plan.DDLWork Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hive-exec Show documentation
Show all versions of hive-exec Show documentation
Hive is a data warehouse infrastructure built on top of Hadoop see
http://wiki.apache.org/hadoop/Hive
The newest version!
/**
* 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 java.io.Serializable;
import java.util.HashSet;
import org.apache.hadoop.hive.ql.hooks.ReadEntity;
import org.apache.hadoop.hive.ql.hooks.WriteEntity;
import org.apache.hadoop.hive.ql.parse.AlterTablePartMergeFilesDesc;
/**
* DDLWork.
*
*/
public class DDLWork implements Serializable {
private static final long serialVersionUID = 1L;
private CreateIndexDesc createIndexDesc;
private AlterIndexDesc alterIndexDesc;
private DropIndexDesc dropIdxDesc;
private CreateDatabaseDesc createDatabaseDesc;
private SwitchDatabaseDesc switchDatabaseDesc;
private DropDatabaseDesc dropDatabaseDesc;
private CreateTableDesc createTblDesc;
private CreateTableLikeDesc createTblLikeDesc;
private CreateViewDesc createVwDesc;
private DropTableDesc dropTblDesc;
private AlterTableDesc alterTblDesc;
private AlterIndexDesc alterIdxDesc;
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 DescFunctionDesc descFunctionDesc;
private ShowPartitionsDesc showPartsDesc;
private ShowCreateTableDesc showCreateTblDesc;
private DescTableDesc descTblDesc;
private AddPartitionDesc addPartitionDesc;
private RenamePartitionDesc renamePartitionDesc;
private AlterTableSimpleDesc alterTblSimpleDesc;
private MsckDesc msckDesc;
private ShowTableStatusDesc showTblStatusDesc;
private ShowIndexesDesc showIndexesDesc;
private DescDatabaseDesc descDbDesc;
private AlterDatabaseDesc alterDbDesc;
private AlterTableAlterPartDesc alterTableAlterPartDesc;
private TruncateTableDesc truncateTblDesc;
private RoleDDLDesc roleDDLDesc;
private GrantDesc grantDesc;
private ShowGrantDesc showGrantDesc;
private RevokeDesc revokeDesc;
private GrantRevokeRoleDDL grantRevokeRoleDDL;
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;
public DDLWork() {
}
public DDLWork(HashSet inputs, HashSet outputs) {
this.inputs = inputs;
this.outputs = outputs;
}
public DDLWork(HashSet inputs, HashSet outputs,
CreateIndexDesc createIndex) {
this(inputs, outputs);
this.createIndexDesc = createIndex;
}
public DDLWork(AlterIndexDesc alterIndex) {
this.alterIndexDesc = alterIndex;
}
/**
* @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 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 alterIdxDesc
* alter index descriptor
*/
public DDLWork(HashSet inputs, HashSet outputs,
AlterIndexDesc alterIdxDesc) {
this(inputs, outputs);
this.alterIdxDesc = alterIdxDesc;
}
/**
* @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 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;
}
/**
* @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 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,
DropIndexDesc dropIndexDesc) {
this(inputs, outputs);
this.dropIdxDesc = dropIndexDesc;
}
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,
ShowIndexesDesc showIndexesDesc) {
this(inputs, outputs);
this.showIndexesDesc = showIndexesDesc;
}
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;
}
/**
* @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;
}
/**
* @return the createTblDesc
*/
@Explain(displayName = "Create Table Operator")
public CreateTableDesc getCreateTblDesc() {
return createTblDesc;
}
/**
* @param createTblDesc
* the createTblDesc to set
*/
public void setCreateTblDesc(CreateTableDesc createTblDesc) {
this.createTblDesc = createTblDesc;
}
/**
* @return the createIndexDesc
*/
public CreateIndexDesc getCreateIndexDesc() {
return createIndexDesc;
}
/**
* @param createIndexDesc
* the createIndexDesc to set
*/
public void setCreateIndexDesc(CreateIndexDesc createIndexDesc) {
this.createIndexDesc = createIndexDesc;
}
/**
* @return the alterIndexDesc
*/
public AlterIndexDesc getAlterIndexDesc() {
return alterIndexDesc;
}
/**
* @param alterIndexDesc
* the alterIndexDesc to set
*/
public void setAlterIndexDesc(AlterIndexDesc alterIndexDesc) {
this.alterIndexDesc = alterIndexDesc;
}
/**
* @return the createTblDesc
*/
@Explain(displayName = "Create Table Operator")
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")
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")
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")
public AlterTableDesc getAlterTblDesc() {
return alterTblDesc;
}
/**
* @param alterTblDesc
* the alterTblDesc to set
*/
public void setAlterTblDesc(AlterTableDesc alterTblDesc) {
this.alterTblDesc = alterTblDesc;
}
/**
* @return the showDatabasesDesc
*/
@Explain(displayName = "Show Databases Operator")
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")
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")
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")
public ShowFunctionsDesc getShowFuncsDesc() {
return showFuncsDesc;
}
/**
* @return the showLocksDesc
*/
@Explain(displayName = "Show Lock Operator")
public ShowLocksDesc getShowLocksDesc() {
return showLocksDesc;
}
/**
* @return the lockTblDesc
*/
@Explain(displayName = "Lock Table Operator")
public LockTableDesc getLockTblDesc() {
return lockTblDesc;
}
/**
* @return the unlockTblDesc
*/
@Explain(displayName = "Unlock Table Operator")
public UnlockTableDesc getUnlockTblDesc() {
return unlockTblDesc;
}
/**
* @return the descFuncDesc
*/
@Explain(displayName = "Show Function Operator")
public DescFunctionDesc getDescFunctionDesc() {
return descFunctionDesc;
}
/**
* @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;
}
/**
* @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")
public ShowPartitionsDesc getShowPartsDesc() {
return showPartsDesc;
}
/**
* @param showPartsDesc
* the showPartsDesc to set
*/
public void setShowPartsDesc(ShowPartitionsDesc showPartsDesc) {
this.showPartsDesc = showPartsDesc;
}
/**
* @return the showCreateTblDesc
*/
@Explain(displayName = "Show Create Table Operator")
public ShowCreateTableDesc getShowCreateTblDesc() {
return showCreateTblDesc;
}
/**
* @param showCreateTblDesc
* the showCreateTblDesc to set
*/
public void setShowCreateTblDesc(ShowCreateTableDesc showCreateTblDesc) {
this.showCreateTblDesc = showCreateTblDesc;
}
/**
* @return the showIndexesDesc
*/
@Explain(displayName = "Show Index Operator")
public ShowIndexesDesc getShowIndexesDesc() {
return showIndexesDesc;
}
public void setShowIndexesDesc(ShowIndexesDesc showIndexesDesc) {
this.showIndexesDesc = showIndexesDesc;
}
/**
* @return the descTblDesc
*/
@Explain(displayName = "Describe Table Operator")
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.
*/
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 CreateViewDesc getCreateVwDesc() {
return createVwDesc;
}
public void setCreateVwDesc(CreateViewDesc createVwDesc) {
this.createVwDesc = createVwDesc;
}
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;
}
public DropIndexDesc getDropIdxDesc() {
return dropIdxDesc;
}
public void setDropIdxDesc(DropIndexDesc dropIdxDesc) {
this.dropIdxDesc = dropIdxDesc;
}
/**
* @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")
public TruncateTableDesc getTruncateTblDesc() {
return truncateTblDesc;
}
public void setTruncateTblDesc(TruncateTableDesc truncateTblDesc) {
this.truncateTblDesc = truncateTblDesc;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy