org.apache.hadoop.hive.ql.exec
Class DDLTask
java.lang.Object
org.apache.hadoop.hive.ql.exec.Task<DDLWork>
org.apache.hadoop.hive.ql.exec.DDLTask
- All Implemented Interfaces:
- Serializable, Node
public class DDLTask
- extends Task<DDLWork>
- implements Serializable
DDLTask implementation.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.Task |
Task.FeedType |
Fields inherited from class org.apache.hadoop.hive.ql.exec.Task |
BACKUP_COMMON_JOIN, backupChildrenTasks, backupTask, childTasks, clonedConf, COMMON_JOIN, console, CONVERTED_LOCAL_MAPJOIN, CONVERTED_MAPJOIN, CONVERTED_SORTMERGEJOIN, db, driverContext, feedSubscribers, id, initialized, isdone, jobID, LOCAL_MAPJOIN, MAPJOIN_ONLY_NOBACKUP, NO_TAG, parentTasks, queryPlan, queued, started, taskCounters, taskHandle, taskTag, work |
Method Summary |
int |
execute(DriverContext driverContext)
This method is overridden in each Task. |
String |
getName()
Gets the name of the node. |
StageType |
getType()
Should be overridden to return the type of the specific task among the types in StageType. |
void |
initialize(HiveConf conf,
QueryPlan queryPlan,
DriverContext ctx)
|
boolean |
requireLock()
|
int |
showColumns(Hive db,
ShowColumnsDesc showCols)
|
static void |
writeGrantInfo(DataOutput outStream,
PrincipalType principalType,
String principalName,
String dbName,
String tableName,
String partName,
String columnName,
PrivilegeGrantInfo grantInfo)
|
Methods inherited from class org.apache.hadoop.hive.ql.exec.Task |
addDependentTask, cloneConf, done, executeTask, fetch, getAndInitBackupTask, getBackupChildrenTasks, getBackupTask, getChildren, getChildTasks, getCounters, getDependentTasks, getFeedSubscribers, getId, getInitialized, getJobID, getParentTasks, getQueryPlan, getQueued, getReducer, getResultSchema, getTaskHandle, getTaskTag, getTopOperators, getWork, hasReduce, ifRetryCmdWhenFail, isLocalMode, isMapRedLocalTask, isMapRedTask, isRunnable, pushFeed, receiveFeed, removeDependentTask, removeFromChildrenTasks, setBackupChildrenTasks, setBackupTask, setChildTasks, setDone, setFeedSubscribers, setId, setInitialized, setLocalMode, setParentTasks, setQueryPlan, setQueued, setRetryCmdWhenFail, setStarted, setTaskTag, setWork, shutdown, started, subscribeFeed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDLTask
public DDLTask()
requireLock
public boolean requireLock()
- Overrides:
requireLock
in class Task<DDLWork>
initialize
public void initialize(HiveConf conf,
QueryPlan queryPlan,
DriverContext ctx)
- Overrides:
initialize
in class Task<DDLWork>
execute
public int execute(DriverContext driverContext)
- Description copied from class:
Task
- This method is overridden in each Task. TODO execute should return a TaskHandle.
- Specified by:
execute
in class Task<DDLWork>
- Returns:
- status of executing the task
showColumns
public int showColumns(Hive db,
ShowColumnsDesc showCols)
throws HiveException
- Throws:
HiveException
writeGrantInfo
public static void writeGrantInfo(DataOutput outStream,
PrincipalType principalType,
String principalName,
String dbName,
String tableName,
String partName,
String columnName,
PrivilegeGrantInfo grantInfo)
throws IOException
- Throws:
IOException
getType
public StageType getType()
- Description copied from class:
Task
- Should be overridden to return the type of the specific task among the types in StageType.
- Specified by:
getType
in class Task<DDLWork>
- Returns:
- StageType.* or null if not overridden
getName
public String getName()
- Description copied from interface:
Node
- Gets the name of the node. This is used in the rule dispatchers.
- Specified by:
getName
in interface Node
- Returns:
- String
Copyright © 2012 The Apache Software Foundation