org.apache.hadoop.hive.ql.plan
Class DDLWork

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.DDLWork
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MsckDesc

public class DDLWork
extends Object
implements Serializable

DDLWork.

See Also:
Serialized Form

Field Summary
protected  HashSet<ReadEntity> inputs
          ReadEntitites that are passed to the hooks.
protected  HashSet<WriteEntity> outputs
          List of WriteEntities that are passed to the hooks.
 
Constructor Summary
DDLWork()
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, AddPartitionDesc addPartitionDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, AlterTableDesc alterTblDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, AlterTableSimpleDesc simpleDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, CreateDatabaseDesc createDatabaseDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, CreateTableDesc createTblDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, CreateTableLikeDesc createTblLikeDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, CreateViewDesc createVwDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, DescFunctionDesc descFuncDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, DescTableDesc descTblDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, DropDatabaseDesc dropDatabaseDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, DropTableDesc dropTblDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, MsckDesc checkDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, ShowDatabasesDesc showDatabasesDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, ShowFunctionsDesc showFuncsDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, ShowPartitionsDesc showPartsDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, ShowTablesDesc showTblsDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, ShowTableStatusDesc showTblStatusDesc)
           
DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, SwitchDatabaseDesc switchDatabaseDesc)
           
 
Method Summary
 AddPartitionDesc getAddPartitionDesc()
           
 AlterTableDesc getAlterTblDesc()
           
 AlterTableSimpleDesc getAlterTblSimpleDesc()
           
 CreateDatabaseDesc getCreateDatabaseDesc()
           
 CreateTableDesc getCreateTblDesc()
           
 CreateTableLikeDesc getCreateTblLikeDesc()
           
 CreateViewDesc getCreateViewDesc()
           
 CreateViewDesc getCreateVwDesc()
           
 DescFunctionDesc getDescFunctionDesc()
           
 DescTableDesc getDescTblDesc()
           
 DropDatabaseDesc getDropDatabaseDesc()
           
 DropTableDesc getDropTblDesc()
           
 HashSet<ReadEntity> getInputs()
           
 MsckDesc getMsckDesc()
           
 HashSet<WriteEntity> getOutputs()
           
 ShowDatabasesDesc getShowDatabasesDesc()
           
 ShowFunctionsDesc getShowFuncsDesc()
           
 ShowPartitionsDesc getShowPartsDesc()
           
 ShowTablesDesc getShowTblsDesc()
           
 ShowTableStatusDesc getShowTblStatusDesc()
           
 SwitchDatabaseDesc getSwitchDatabaseDesc()
           
 void setAddPartitionDesc(AddPartitionDesc addPartitionDesc)
           
 void setAlterTblDesc(AlterTableDesc alterTblDesc)
           
 void setAlterTblSimpleDesc(AlterTableSimpleDesc desc)
           
 void setCreateDatabaseDesc(CreateDatabaseDesc createDatabaseDesc)
          Set Create Database descriptor
 void setCreateTblDesc(CreateTableDesc createTblDesc)
           
 void setCreateTblLikeDesc(CreateTableLikeDesc createTblLikeDesc)
           
 void setCreateViewDesc(CreateViewDesc createVwDesc)
           
 void setCreateVwDesc(CreateViewDesc createVwDesc)
           
 void setDescFuncDesc(DescFunctionDesc descFuncDesc)
           
 void setDescFunctionDesc(DescFunctionDesc descFunctionDesc)
           
 void setDescTblDesc(DescTableDesc descTblDesc)
           
 void setDropDatabaseDesc(DropDatabaseDesc dropDatabaseDesc)
          Set Drop Database descriptor
 void setDropTblDesc(DropTableDesc dropTblDesc)
           
 void setInputs(HashSet<ReadEntity> inputs)
           
 void setMsckDesc(MsckDesc msckDesc)
           
 void setOutputs(HashSet<WriteEntity> outputs)
           
 void setShowDatabasesDesc(ShowDatabasesDesc showDatabasesDesc)
           
 void setShowFuncsDesc(ShowFunctionsDesc showFuncsDesc)
           
 void setShowPartsDesc(ShowPartitionsDesc showPartsDesc)
           
 void setShowTblsDesc(ShowTablesDesc showTblsDesc)
           
 void setShowTblStatusDesc(ShowTableStatusDesc showTblStatusDesc)
           
 void setSwitchDatabaseDesc(SwitchDatabaseDesc switchDatabaseDesc)
          Set Switch Database descriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputs

protected HashSet<ReadEntity> inputs
ReadEntitites that are passed to the hooks.


outputs

protected HashSet<WriteEntity> outputs
List of WriteEntities that are passed to the hooks.

Constructor Detail

DDLWork

public DDLWork()

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs)

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               CreateDatabaseDesc createDatabaseDesc)
Parameters:
createDatabaseDesc - Create Database descriptor

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               DropDatabaseDesc dropDatabaseDesc)
Parameters:
dropDatabaseDesc - Drop Database descriptor

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               SwitchDatabaseDesc switchDatabaseDesc)
Parameters:
switchDatabaseDesc - Switch Database descriptor

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               AlterTableDesc alterTblDesc)
Parameters:
alterTblDesc - alter table descriptor

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               CreateTableDesc createTblDesc)
Parameters:
createTblDesc - create table descriptor

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               CreateTableLikeDesc createTblLikeDesc)
Parameters:
createTblLikeDesc - create table like descriptor

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               CreateViewDesc createVwDesc)
Parameters:
createVwDesc - create view descriptor

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               DropTableDesc dropTblDesc)
Parameters:
dropTblDesc - drop table descriptor

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               DescTableDesc descTblDesc)
Parameters:
descTblDesc -

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               ShowDatabasesDesc showDatabasesDesc)
Parameters:
showDatabasesDesc -

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               ShowTablesDesc showTblsDesc)
Parameters:
showTblsDesc -

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               ShowFunctionsDesc showFuncsDesc)
Parameters:
showFuncsDesc -

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               DescFunctionDesc descFuncDesc)
Parameters:
descFuncDesc -

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               ShowPartitionsDesc showPartsDesc)
Parameters:
showPartsDesc -

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               AddPartitionDesc addPartitionDesc)
Parameters:
addPartitionDesc - information about the partitions we want to add.

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               AlterTableSimpleDesc simpleDesc)
Parameters:
touchDesc - information about the table/partitions that we want to touch

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               MsckDesc checkDesc)

DDLWork

public DDLWork(HashSet<ReadEntity> inputs,
               HashSet<WriteEntity> outputs,
               ShowTableStatusDesc showTblStatusDesc)
Parameters:
showTblStatusDesc - show table status descriptor
Method Detail

getCreateDatabaseDesc

public CreateDatabaseDesc getCreateDatabaseDesc()
Returns:
Create Database descriptor

setCreateDatabaseDesc

public void setCreateDatabaseDesc(CreateDatabaseDesc createDatabaseDesc)
Set Create Database descriptor

Parameters:
createDatabaseDesc -

getDropDatabaseDesc

public DropDatabaseDesc getDropDatabaseDesc()
Returns:
Drop Database descriptor

setDropDatabaseDesc

public void setDropDatabaseDesc(DropDatabaseDesc dropDatabaseDesc)
Set Drop Database descriptor

Parameters:
dropDatabaseDesc -

getSwitchDatabaseDesc

public SwitchDatabaseDesc getSwitchDatabaseDesc()
Returns:
Switch Database descriptor

setSwitchDatabaseDesc

public void setSwitchDatabaseDesc(SwitchDatabaseDesc switchDatabaseDesc)
Set Switch Database descriptor

Parameters:
switchDatabaseDesc -

getCreateTblDesc

public CreateTableDesc getCreateTblDesc()
Returns:
the createTblDesc

setCreateTblDesc

public void setCreateTblDesc(CreateTableDesc createTblDesc)
Parameters:
createTblDesc - the createTblDesc to set

getCreateTblLikeDesc

public CreateTableLikeDesc getCreateTblLikeDesc()
Returns:
the createTblDesc

setCreateTblLikeDesc

public void setCreateTblLikeDesc(CreateTableLikeDesc createTblLikeDesc)
Parameters:
createTblLikeDesc - the createTblDesc to set

getCreateViewDesc

public CreateViewDesc getCreateViewDesc()
Returns:
the createTblDesc

setCreateViewDesc

public void setCreateViewDesc(CreateViewDesc createVwDesc)
Parameters:
createVwDesc - the createViewDesc to set

getDropTblDesc

public DropTableDesc getDropTblDesc()
Returns:
the dropTblDesc

setDropTblDesc

public void setDropTblDesc(DropTableDesc dropTblDesc)
Parameters:
dropTblDesc - the dropTblDesc to set

getAlterTblDesc

public AlterTableDesc getAlterTblDesc()
Returns:
the alterTblDesc

setAlterTblDesc

public void setAlterTblDesc(AlterTableDesc alterTblDesc)
Parameters:
alterTblDesc - the alterTblDesc to set

getShowDatabasesDesc

public ShowDatabasesDesc getShowDatabasesDesc()
Returns:
the showDatabasesDesc

setShowDatabasesDesc

public void setShowDatabasesDesc(ShowDatabasesDesc showDatabasesDesc)
Parameters:
showDatabasesDesc - the showDatabasesDesc to set

getShowTblsDesc

public ShowTablesDesc getShowTblsDesc()
Returns:
the showTblsDesc

setShowTblsDesc

public void setShowTblsDesc(ShowTablesDesc showTblsDesc)
Parameters:
showTblsDesc - the showTblsDesc to set

getShowFuncsDesc

public ShowFunctionsDesc getShowFuncsDesc()
Returns:
the showFuncsDesc

getDescFunctionDesc

public DescFunctionDesc getDescFunctionDesc()
Returns:
the descFuncDesc

setShowFuncsDesc

public void setShowFuncsDesc(ShowFunctionsDesc showFuncsDesc)
Parameters:
showFuncsDesc - the showFuncsDesc to set

setDescFuncDesc

public void setDescFuncDesc(DescFunctionDesc descFuncDesc)
Parameters:
descFuncDesc - the showFuncsDesc to set

getShowPartsDesc

public ShowPartitionsDesc getShowPartsDesc()
Returns:
the showPartsDesc

setShowPartsDesc

public void setShowPartsDesc(ShowPartitionsDesc showPartsDesc)
Parameters:
showPartsDesc - the showPartsDesc to set

getDescTblDesc

public DescTableDesc getDescTblDesc()
Returns:
the descTblDesc

setDescTblDesc

public void setDescTblDesc(DescTableDesc descTblDesc)
Parameters:
descTblDesc - the descTblDesc to set

getAddPartitionDesc

public AddPartitionDesc getAddPartitionDesc()
Returns:
information about the partitions we want to add.

setAddPartitionDesc

public void setAddPartitionDesc(AddPartitionDesc addPartitionDesc)
Parameters:
addPartitionDesc - information about the partitions we want to add.

getAlterTblSimpleDesc

public AlterTableSimpleDesc getAlterTblSimpleDesc()
Returns:
information about the table/partitions we want to alter.

setAlterTblSimpleDesc

public void setAlterTblSimpleDesc(AlterTableSimpleDesc desc)
Parameters:
desc - information about the table/partitions we want to alter.

getMsckDesc

public MsckDesc getMsckDesc()
Returns:
Metastore check description

setMsckDesc

public void setMsckDesc(MsckDesc msckDesc)
Parameters:
msckDesc - metastore check description

getShowTblStatusDesc

public ShowTableStatusDesc getShowTblStatusDesc()
Returns:
show table descriptor

setShowTblStatusDesc

public void setShowTblStatusDesc(ShowTableStatusDesc showTblStatusDesc)
Parameters:
showTblStatusDesc - show table descriptor

getCreateVwDesc

public CreateViewDesc getCreateVwDesc()

setCreateVwDesc

public void setCreateVwDesc(CreateViewDesc createVwDesc)

setDescFunctionDesc

public void setDescFunctionDesc(DescFunctionDesc descFunctionDesc)

getInputs

public HashSet<ReadEntity> getInputs()

getOutputs

public HashSet<WriteEntity> getOutputs()

setInputs

public void setInputs(HashSet<ReadEntity> inputs)

setOutputs

public void setOutputs(HashSet<WriteEntity> outputs)


Copyright © 2010 The Apache Software Foundation