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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.DDLDesc
      extended by org.apache.hadoop.hive.ql.plan.DropTableDesc
All Implemented Interfaces:
Serializable

public class DropTableDesc
extends DDLDesc
implements Serializable

DropTableDesc. TODO: this is currently used for both drop table and drop partitions.

See Also:
Serialized Form

Nested Class Summary
static class DropTableDesc.PartSpec
           
 
Constructor Summary
DropTableDesc()
           
DropTableDesc(String tableName, boolean expectView, boolean ifExists)
           
DropTableDesc(String tableName, Map<Integer,List<ExprNodeGenericFuncDesc>> partSpecs, boolean expectView, boolean ignoreProtection)
           
 
Method Summary
 boolean getExpectView()
           
 boolean getIfExists()
           
 boolean getIgnoreProtection()
           
 ArrayList<DropTableDesc.PartSpec> getPartSpecs()
           
 String getTableName()
           
 void setExpectView(boolean expectView)
           
 void setIfExists(boolean ifExists)
           
 void setIgnoreProtection(boolean ignoreProtection)
           
 void setTableName(String tableName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropTableDesc

public DropTableDesc()

DropTableDesc

public DropTableDesc(String tableName,
                     boolean expectView,
                     boolean ifExists)
Parameters:
tableName -

DropTableDesc

public DropTableDesc(String tableName,
                     Map<Integer,List<ExprNodeGenericFuncDesc>> partSpecs,
                     boolean expectView,
                     boolean ignoreProtection)
Method Detail

getTableName

public String getTableName()
Returns:
the tableName

setTableName

public void setTableName(String tableName)
Parameters:
tableName - the tableName to set

getPartSpecs

public ArrayList<DropTableDesc.PartSpec> getPartSpecs()
Returns:
the partSpecs

getIgnoreProtection

public boolean getIgnoreProtection()
Returns:
whether or not protection will be ignored for the partition

setIgnoreProtection

public void setIgnoreProtection(boolean ignoreProtection)
Parameters:
ignoreProtection - set whether or not protection will be ignored for the partition

getExpectView

public boolean getExpectView()
Returns:
whether to expect a view being dropped

setExpectView

public void setExpectView(boolean expectView)
Parameters:
expectView - set whether to expect a view being dropped

getIfExists

public boolean getIfExists()
Returns:
whether IF EXISTS was specified

setIfExists

public void setIfExists(boolean ifExists)
Parameters:
ifExists - set whether IF EXISTS was specified


Copyright © 2014 The Apache Software Foundation. All rights reserved.