org.apache.hadoop.hive.ql.exec
Class LimitOperator

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.Operator<limitDesc>
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.Operator
Operator.OperatorFunc, Operator.State
 
Field Summary
protected  int currCount
           
protected  int limit
           
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.Operator
alias, childOperators, conf, done, gWork, id, joinAlias, LOG, out, parentOperators, reporter, statsMap
 
Constructor Summary
LimitOperator()
           
 
Method Summary
 void initialize(org.apache.hadoop.conf.Configuration hconf, org.apache.hadoop.mapred.Reporter reporter)
           
 void process(Object row, ObjectInspector rowInspector)
           
 
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
 

Field Detail

limit

protected transient int limit

currCount

protected transient int currCount
Constructor Detail

LimitOperator

public LimitOperator()
Method Detail

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