@InterfaceAudience.Public @InterfaceStability.Evolving public class MarkableIterator<VALUE> extends Object
MarkableIterator
is a wrapper iterator class that
implements the MarkableIteratorInterface
.Constructor and Description |
---|
MarkableIterator(Iterator<VALUE> itr)
Create a new iterator layered on the input iterator
|
Modifier and Type | Method and Description |
---|---|
void |
clearMark()
Clear any previously set mark
|
boolean |
hasNext() |
void |
mark()
Mark the current record.
|
VALUE |
next() |
void |
remove() |
void |
reset()
Reset the iterator to the last record before a call to the previous mark
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public MarkableIterator(Iterator<VALUE> itr)
itr
- underlying iterator that implements MarkableIteratorInterfacepublic void mark() throws IOException
IOException
public void reset() throws IOException
IOException
public void clearMark() throws IOException
IOException
public boolean hasNext()
public void remove()
Copyright © 2018 Apache Software Foundation. All rights reserved.