public class POPackage.POPackageTupleBuffer extends Object implements AccumulativeTupleBuffer
| Constructor and Description |
|---|
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 POPackageTupleBuffer(int batchSize,
Object key,
Iterator<NullableTuple> iter)
public boolean hasNextBatch()
AccumulativeTupleBufferhasNextBatch in interface AccumulativeTupleBufferpublic void nextBatch()
throws IOException
AccumulativeTupleBuffernextBatch in interface AccumulativeTupleBufferIOExceptionpublic void clear()
AccumulativeTupleBufferclear in interface AccumulativeTupleBufferpublic Iterator<Tuple> getTuples(int index)
AccumulativeTupleBuffergetTuples in interface AccumulativeTupleBufferindex - the index of tupleCopyright © 2007-2017 The Apache Software Foundation