Class StreamBackedIterator<X extends Writable>

java.lang.Object
org.apache.hadoop.mapreduce.lib.join.StreamBackedIterator<X>
All Implemented Interfaces:
ResetableIterator<X>
Direct Known Subclasses:
StreamBackedIterator

@Public @Stable public class StreamBackedIterator<X extends Writable> extends Object implements ResetableIterator<X>
This class provides an implementation of ResetableIterator. This implementation uses a byte array to store elements added to it.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.hadoop.mapreduce.lib.join.ResetableIterator

    org.apache.hadoop.mapreduce.lib.join.ResetableIterator.EMPTY<U extends Writable>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(X item)
    Add an element to the collection of elements to iterate over.
    void
    Close datasources, but do not release internal resources.
    void
    Close datasources and release resources.
    boolean
    True if a call to next may return a value.
    boolean
    next(X val)
    Assign next value to actual.
    boolean
    replay(X val)
    Assign last value returned to actual.
    void
    Set iterator to return to the start of its range.

    Methods inherited from class java.lang.Object

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