public class ControlledMemoryReader extends java.lang.Object implements ControlledReader<Tuple>
Constructor and Description |
---|
ControlledMemoryReader(java.util.List<Tuple> messages,
java.util.Comparator keyComparator) |
Modifier and Type | Method and Description |
---|---|
void |
clearRestorePoint() |
int |
compareTo(ControlledReader<Tuple> o) |
void |
createRestorePoint() |
boolean |
hasNext() |
boolean |
hasRestorePoint() |
Tuple |
next() |
java.lang.Object |
nextKey()
Get the next key
|
void |
open()
Open the reader
|
void |
releaseResources()
Release resources associated with this reader
|
void |
restore() |
public ControlledMemoryReader(java.util.List<Tuple> messages, java.util.Comparator keyComparator)
public void open()
ControlledReader
open
in interface ControlledReader<Tuple>
public void releaseResources()
ControlledReader
releaseResources
in interface ControlledReader<Tuple>
public boolean hasNext()
hasNext
in interface java.util.Iterator<Tuple>
public java.lang.Object nextKey()
ControlledReader
nextKey
in interface ControlledReader<Tuple>
public void createRestorePoint()
createRestorePoint
in interface Restorable
public void restore()
restore
in interface Restorable
public void clearRestorePoint()
clearRestorePoint
in interface Restorable
public boolean hasRestorePoint()
hasRestorePoint
in interface Restorable
public int compareTo(ControlledReader<Tuple> o)
compareTo
in interface java.lang.Comparable<ControlledReader<Tuple>>