|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.MarkableIterator<VALUE>
@InterfaceAudience.Public @InterfaceStability.Evolving public class MarkableIterator<VALUE>
MarkableIterator is a wrapper iterator class that
implements the MarkableIteratorInterface.
| Constructor Summary | |
|---|---|
MarkableIterator(Iterator<VALUE> itr)
Create a new iterator layered on the input iterator |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MarkableIterator(Iterator<VALUE> itr)
itr - underlying iterator that implements MarkableIteratorInterface| Method Detail |
|---|
public void mark()
throws IOException
IOException
public void reset()
throws IOException
IOException
public void clearMark()
throws IOException
IOExceptionpublic boolean hasNext()
public VALUE next()
public void remove()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||