org.apache.pig.impl.eval.collector
Class DataCollector
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inTheMiddleOfBag
protected boolean inTheMiddleOfBag
successor
protected DataCollector successor
DataCollector
public DataCollector(DataCollector successor)
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