public static interface ProcedureStore.ProcedureIterator
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if the iterator has more elements.
|
boolean |
isNextFinished()
Calling this method does not need to convert the protobuf message to the Procedure class, so
if it returns true we can call
skipNext() to skip the procedure without
deserializing. |
Procedure |
next()
Returns the next procedure in the iteration.
|
void |
reset()
Reset the Iterator by seeking to the beginning of the list.
|
void |
skipNext()
Skip the next procedure
This method is used to skip the deserializing of the procedure to increase performance, as
when calling next we need to convert the protobuf message to the Procedure class.
|
void reset()
boolean hasNext()
boolean isNextFinished()
skipNext()
to skip the procedure without
deserializing. This could increase the performance.void skipNext()
Procedure next() throws IOException
IOException
- if there was an error fetching/deserializing the procedureCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.