public class POPackage.POPackageTupleBuffer extends Object implements AccumulativeTupleBuffer
Constructor and Description |
---|
POPackage.POPackageTupleBuffer(int batchSize,
Object key,
Iterator<NullableTuple> iter) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear internal buffer, this should be called after all data are retreived
|
Iterator<Tuple> |
getTuples(int index)
Get iterator of tuples in the buffer
|
boolean |
hasNextBatch()
Whether there are more tuples to pull out of iterator
|
Tuple |
illustratorMarkup(Object in,
Object out,
int eqClassIndex) |
void |
nextBatch()
Pull next batch of tuples from iterator and put them into this buffer
|
public POPackage.POPackageTupleBuffer(int batchSize, Object key, Iterator<NullableTuple> iter)
public boolean hasNextBatch()
AccumulativeTupleBuffer
hasNextBatch
in interface AccumulativeTupleBuffer
public void nextBatch() throws IOException
AccumulativeTupleBuffer
nextBatch
in interface AccumulativeTupleBuffer
IOException
public void clear()
AccumulativeTupleBuffer
clear
in interface AccumulativeTupleBuffer
public Iterator<Tuple> getTuples(int index)
AccumulativeTupleBuffer
getTuples
in interface AccumulativeTupleBuffer
index
- the index of tupleCopyright © 2007-2012 The Apache Software Foundation