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