MarkableIterator (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.mapreduce, class: MarkableIterator

Package org.apache.hadoop.mapreduce

# Class MarkableIterator<VALUE>

java.lang.Object
org.apache.hadoop.mapreduce.MarkableIterator<VALUE>

All Implemented Interfaces:
  `Iterator<VALUE>`

@Public @Evolving public class MarkableIterator<VALUE> extends Object
`MarkableIterator` is a wrapper iterator class that implements the `MarkableIteratorInterface`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MarkableIterator(Iterator<VALUE> itr)`
  Create a new iterator layered on the input iterator

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `clearMark()`
  `boolean`
  `hasNext()`
  `void`
  `mark()`
  `VALUE`
  `next()`
  `void`
  `remove()`
  `void`
  `reset()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface java.util.Iterator

  `forEachRemaining`

- ## Constructor Details

  - ### MarkableIterator

    public MarkableIterator(Iterator<VALUE> itr)
    Create a new iterator layered on the input iterator
    Parameters:
      `itr` - underlying iterator that implements MarkableIteratorInterface

- ## Method Details

  - ### mark

    public void mark() throws IOException
    Throws:
      `IOException`

  - ### reset

    public void reset() throws IOException
    Throws:
      `IOException`

  - ### clearMark

    public void clearMark() throws IOException
    Throws:
      `IOException`

  - ### hasNext

    public boolean hasNext()
    Specified by:
      `hasNext` in interface `Iterator<VALUE>`

  - ### next

    public VALUE next()
    Specified by:
      `next` in interface `Iterator<VALUE>`

  - ### remove

    public void remove()
    Specified by:
      `remove` in interface `Iterator<VALUE>`