org.apache.hadoop.hive.ql.exec
Class LimitOperator
java.lang.Object
org.apache.hadoop.hive.ql.exec.Operator<limitDesc>
org.apache.hadoop.hive.ql.exec.LimitOperator
- All Implemented Interfaces:
- Serializable, Node
public class LimitOperator
- extends Operator<limitDesc>
- implements Serializable
Limit operator implementation
Limits the number of rows to be passed on.
- See Also:
- Serialized Form
Fields inherited from class org.apache.hadoop.hive.ql.exec.Operator |
alias, childOperators, conf, done, gWork, id, joinAlias, LOG, out, parentOperators, reporter, statsMap |
Methods inherited from class org.apache.hadoop.hive.ql.exec.Operator |
close, dump, endGroup, forward, getChildOperators, getChildren, getConf, getDone, getName, getParentOperators, getSchema, getStats, jobClose, logStats, preorderMap, resetStats, setAlias, setChildOperators, setConf, setDone, setId, setJoinAlias, setMapredWork, setOutputCollector, setParentOperators, setSchema, startGroup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
limit
protected transient int limit
currCount
protected transient int currCount
LimitOperator
public LimitOperator()
initialize
public void initialize(org.apache.hadoop.conf.Configuration hconf,
org.apache.hadoop.mapred.Reporter reporter)
throws HiveException
- Overrides:
initialize
in class Operator<limitDesc>
- Throws:
HiveException
process
public void process(Object row,
ObjectInspector rowInspector)
throws HiveException
- Specified by:
process
in class Operator<limitDesc>
- Throws:
HiveException
Copyright © 2009 The Apache Software Foundation