public class FetchTask extends Task<FetchWork> implements Serializable
Task.FeedType, Task.TaskStateBACKUP_COMMON_JOIN, backupChildrenTasks, backupTask, childTasks, clonedConf, COMMON_JOIN, conf, console, context, CONVERTED_MAPJOIN, CONVERTED_MAPJOIN_LOCAL, CONVERTED_SORTMERGEJOIN, deferredWorkContext, feedSubscribers, HINTED_MAPJOIN, HINTED_MAPJOIN_LOCAL, id, jobID, MAPJOIN_ONLY_NOBACKUP, NO_TAG, parentTasks, queryDisplay, queryPlan, queryState, rootTask, taskCounters, taskHandle, taskQueue, taskTag, work| Constructor and Description |
|---|
FetchTask() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExecuteInParallel() |
void |
clearFetch()
Clear the Fetch Operator.
|
int |
execute()
This method is overridden in each Task.
|
boolean |
fetch(List res) |
int |
getMaxRows()
Return the maximum number of rows returned by fetch.
|
String |
getName() |
TableDesc |
getTblDesc()
Return the tableDesc of the fetchWork.
|
StageType |
getType()
Should be overridden to return the type of the specific task among the types in StageType.
|
void |
initialize(QueryState queryState,
QueryPlan queryPlan,
TaskQueue taskQueue,
Context context) |
boolean |
isCachingEnabled() |
boolean |
isFetchFrom(FileSinkDesc fs) |
void |
resetFetch() |
void |
setCachingEnabled(boolean cachingEnabled) |
void |
setMaxRows(int maxRows)
Set the maximum number of rows returned by fetch.
|
void |
setValidWriteIdList(String writeIdStr) |
addDependentTask, cloneConf, done, equals, executeTask, findLeafs, getAndInitBackupTask, getBackupChildrenTasks, getBackupTask, getChildren, getChildTasks, getConf, getContext, getCounters, getDeferredWorkContext, getDependentTasks, getDiagnosticsMessage, getException, getExternalHandle, getFeedSubscribers, getHive, getId, getInitialized, getJobID, getMapWork, getNumChild, getNumParent, getParentTasks, getQueryPlan, getQueryState, getQueued, getReducer, getStatusMessage, getTaskHandle, getTaskQueue, getTaskState, getTaskTag, getTopOperators, getTxnMgr, getWork, hashCode, hasReduce, isFetchSource, isLocalMode, isMapRedLocalTask, isMapRedTask, isNotInitialized, isRootTask, isRunnable, pushFeed, receiveFeed, removeDependentTask, removeFromChildrenTasks, requireLock, setBackupChildrenTasks, setBackupTask, setChildTasks, setConf, setConsole, setDeferredWorkContext, setDiagnosticMessage, setDone, setException, setFeedSubscribers, setFetchSource, setId, setInitialized, setLocalMode, setParentTasks, setQueryDisplay, setQueryPlan, setQueued, setRootTask, setStarted, setState, setStatusMessage, setTaskQueue, setTaskTag, setWork, shutdown, started, subscribeFeed, toString, updateStatusInQueryDisplay, updateTaskMetricspublic void setValidWriteIdList(String writeIdStr)
public void initialize(QueryState queryState, QueryPlan queryPlan, TaskQueue taskQueue, Context context)
initialize in class Task<FetchWork>public int execute()
Taskpublic TableDesc getTblDesc()
public int getMaxRows()
public void setMaxRows(int maxRows)
public boolean fetch(List res)
public boolean isFetchFrom(FileSinkDesc fs)
public StageType getType()
Taskpublic void clearFetch()
throws HiveException
HiveExceptionpublic void resetFetch()
throws HiveException
HiveExceptionpublic boolean canExecuteInParallel()
canExecuteInParallel in class Task<FetchWork>public void setCachingEnabled(boolean cachingEnabled)
public boolean isCachingEnabled()
Copyright © 2024 The Apache Software Foundation. All rights reserved.