private static class ProcedureWALFormatReader.EntryIterator extends Object implements ProcedureStore.ProcedureIterator
Modifier and Type | Field and Description |
---|---|
private ProcedureWALFormatReader.Entry |
current |
private ProcedureWALFormatReader.Entry |
replayHead |
Constructor and Description |
---|
ProcedureWALFormatReader.EntryIterator(ProcedureWALFormatReader.Entry replayHead) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if the iterator has more elements.
|
boolean |
isNextCompleted() |
Procedure |
nextAsProcedure()
Returns the next procedure in the iteration.
|
ProcedureInfo |
nextAsProcedureInfo() |
void |
reset()
Reset the Iterator by seeking to the beginning of the list.
|
void |
skipNext()
Skip the next procedure
|
private final ProcedureWALFormatReader.Entry replayHead
private ProcedureWALFormatReader.Entry current
public ProcedureWALFormatReader.EntryIterator(ProcedureWALFormatReader.Entry replayHead)
public void reset()
ProcedureStore.ProcedureIterator
reset
in interface ProcedureStore.ProcedureIterator
public boolean hasNext()
ProcedureStore.ProcedureIterator
hasNext
in interface ProcedureStore.ProcedureIterator
public boolean isNextCompleted()
isNextCompleted
in interface ProcedureStore.ProcedureIterator
public void skipNext()
ProcedureStore.ProcedureIterator
skipNext
in interface ProcedureStore.ProcedureIterator
public Procedure nextAsProcedure() throws IOException
ProcedureStore.ProcedureIterator
nextAsProcedure
in interface ProcedureStore.ProcedureIterator
IOException
- if there was an error fetching/deserializing the procedurepublic ProcedureInfo nextAsProcedureInfo()
nextAsProcedureInfo
in interface ProcedureStore.ProcedureIterator
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.