org.apache.pig.impl.util
Class DataBuffer

java.lang.Object
  extended by org.apache.pig.impl.eval.collector.DataCollector
      extended by org.apache.pig.impl.util.DataBuffer

public class DataBuffer
extends DataCollector


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

DataBuffer

public DataBuffer()
Method Detail

add

public void add(Datum d)
Description copied from class: DataCollector
Add a tuple to the collector.

Specified by:
add in class DataCollector

removeFirst

public Datum removeFirst()

removeFirstAndAssertEmpty

public 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.


isEmpty

public boolean isEmpty()


Copyright © ${year} The Apache Software Foundation