|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.impl.eval.collector.DataCollector
org.apache.pig.impl.util.DataBuffer
public class DataBuffer
Field Summary |
---|
Fields inherited from class org.apache.pig.impl.eval.collector.DataCollector |
---|
inTheMiddleOfBag, successor |
Constructor Summary | |
---|---|
DataBuffer()
|
Method Summary | |
---|---|
void |
add(Datum d)
Add a tuple to the collector. |
boolean |
isEmpty()
|
Datum |
removeFirst()
|
Datum |
removeFirstAndAssertEmpty()
This is a sequence we want to do frequently to accomodate the simple eval case, i.e., cases where we know that running an eval spec one item should produce one and only one item. |
Methods inherited from class org.apache.pig.impl.eval.collector.DataCollector |
---|
addToSuccessor, checkDelimiter, finish, finishPipe, isStale, markStale, needFlatteningLocally, setSuccessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataBuffer()
Method Detail |
---|
public void add(Datum d)
DataCollector
add
in class DataCollector
public Datum removeFirst()
public Datum removeFirstAndAssertEmpty()
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |