org.apache.pig.impl.eval.collector
Class DataCollector

java.lang.Object
  extended by org.apache.pig.impl.eval.collector.DataCollector
Direct Known Subclasses:
DataBuffer, FlattenCollector, UnflattenCollector

public abstract class DataCollector
extends Object

This interface is used to represent tuple collectors. It may be an in memory DataBag, an input to another function, or a file.


Field Summary
protected  boolean inTheMiddleOfBag
           
protected  DataCollector successor
           
 
Constructor Summary
DataCollector(DataCollector successor)
           
 
Method Summary
abstract  void add(Datum d)
          Add a tuple to the collector.
protected  void addToSuccessor(Datum d)
           
protected  boolean checkDelimiter(Datum d)
           
protected  void finish()
           
 void finishPipe()
           
 boolean isStale()
           
 void markStale(boolean stale)
           
protected  boolean needFlatteningLocally()
           
 void setSuccessor(DataCollector output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inTheMiddleOfBag

protected boolean inTheMiddleOfBag

successor

protected DataCollector successor
Constructor Detail

DataCollector

public DataCollector(DataCollector successor)
Method Detail

add

public abstract void add(Datum d)
Add a tuple to the collector.


needFlatteningLocally

protected boolean needFlatteningLocally()

checkDelimiter

protected boolean checkDelimiter(Datum d)

addToSuccessor

protected void addToSuccessor(Datum d)

markStale

public void markStale(boolean stale)

setSuccessor

public void setSuccessor(DataCollector output)

isStale

public boolean isStale()

finishPipe

public final void finishPipe()

finish

protected void finish()


Copyright © ${year} The Apache Software Foundation