public class TableScanOperator extends Operator<TableScanDesc> implements java.io.Serializable
Operator.OperatorFunc, Operator.ProgressCounter, Operator.State
Modifier and Type | Field and Description |
---|---|
protected JobConf |
jc |
alias, beginTime, childOperators, childOperatorsArray, childOperatorsTag, colExprMap, conf, counterNames, counterNameToEnum, counters, done, fatalErrorCntr, groupKeyObject, id, inputObjInspectors, inputRows, isLogInfoEnabled, LOG, numInputRowsCntr, numOutputRowsCntr, operatorId, out, outputObjInspector, outputRows, parentOperators, reporter, state, statsMap, timeTakenCntr, totalTime
Constructor and Description |
---|
TableScanOperator() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUpInputFileChangedOp() |
void |
closeOp(boolean abort)
Operator specific close routine.
|
java.lang.String |
getName()
The operator name for this operator type.
|
java.util.ArrayList<java.lang.Integer> |
getNeededColumnIDs() |
java.util.List<java.lang.String> |
getNeededColumns() |
static java.lang.String |
getOperatorName() |
TableDesc |
getTableDesc() |
OperatorType |
getType()
Return the type of the specific operator among the
types in OperatorType.
|
protected void |
initializeOp(Configuration hconf)
Operator specific initialization.
|
void |
processOp(java.lang.Object row,
int tag)
Other than gathering statistics for the ANALYZE command, the table scan operator
does not do anything special other than just forwarding the row.
|
void |
setNeededColumnIDs(java.util.ArrayList<java.lang.Integer> orign_columns) |
void |
setNeededColumns(java.util.List<java.lang.String> columnNames) |
void |
setTableDesc(TableDesc tableDesc) |
boolean |
supportAutomaticSortMergeJoin()
Whether this operator supports automatic sort merge join.
|
boolean |
supportSkewJoinOptimization() |
acceptLimitPushdown, allInitializedParentsAreClosed, areAllParentsInitialized, assignCounterNameToEnum, augmentPlan, checkFatalErrors, cleanUpInputFileChanged, clone, close, columnNamesRowResolvedCanBeObtained, dump, dump, endGroup, fatalErrorMessage, flush, forward, getAdditionalCounters, getChildOperators, getChildren, getColumnExprMap, getConf, getConfiguration, getCounterNames, getCounterNameToEnum, getCounters, getDone, getExecContext, getGroupKeyObject, getIdentifier, getInputObjInspectors, getNextCntr, getNumChild, getNumParent, getOperatorId, getParentOperators, getSchema, getStats, getWrappedCounterName, incrCounter, initEvaluators, initEvaluators, initEvaluatorsAndReturnStruct, initialize, initialize, initializeChildren, initializeCounters, initializeLocalWork, initOperatorId, isUseBucketizedHiveInputFormat, jobClose, jobCloseOp, logStats, opAllowedAfterMapJoin, opAllowedBeforeMapJoin, opAllowedBeforeSortMergeJoin, opAllowedConvertMapJoin, passExecContext, preorderMap, process, processGroup, removeChild, removeChildAndAdoptItsChildren, removeChildren, removeParent, replaceChild, replaceParent, reset, resetId, resetLastEnumUsed, resetStats, setAlias, setChildOperators, setColumnExprMap, setConf, setCounterNames, setCounterNameToEnum, setDone, setExecContext, setGroupKeyObject, setId, setInputObjInspectors, setOperatorId, setOutputCollector, setParentOperators, setReporter, setSchema, setUseBucketizedHiveInputFormat, startGroup, supportUnionRemoveOptimization, toString, toString, updateCounters
public TableDesc getTableDesc()
public void setTableDesc(TableDesc tableDesc)
public void processOp(java.lang.Object row, int tag) throws HiveException
processOp
in class Operator<TableScanDesc>
row
- The object representing the row.tag
- The tag of the row usually means which parent this row comes from.
Rows with the same tag should have exactly the same rowInspector
all the time.HiveException
public void cleanUpInputFileChangedOp() throws HiveException
cleanUpInputFileChangedOp
in class Operator<TableScanDesc>
HiveException
protected void initializeOp(Configuration hconf) throws HiveException
Operator
initializeOp
in class Operator<TableScanDesc>
HiveException
public void closeOp(boolean abort) throws HiveException
Operator
closeOp
in class Operator<TableScanDesc>
HiveException
public java.lang.String getName()
getName
in interface Node
getName
in class Operator<TableScanDesc>
public static java.lang.String getOperatorName()
public void setNeededColumnIDs(java.util.ArrayList<java.lang.Integer> orign_columns)
public java.util.ArrayList<java.lang.Integer> getNeededColumnIDs()
public void setNeededColumns(java.util.List<java.lang.String> columnNames)
public java.util.List<java.lang.String> getNeededColumns()
public OperatorType getType()
Operator
getType
in class Operator<TableScanDesc>
public boolean supportSkewJoinOptimization()
supportSkewJoinOptimization
in class Operator<TableScanDesc>
public boolean supportAutomaticSortMergeJoin()
Operator
supportAutomaticSortMergeJoin
in class Operator<TableScanDesc>
Copyright © 2012 The Apache Software Foundation