org.apache.hadoop.mapred.join
Class ArrayListBackedIterator<X extends Writable>

java.lang.Object
  extended by org.apache.hadoop.mapreduce.lib.join.ArrayListBackedIterator<X>
      extended by org.apache.hadoop.mapred.join.ArrayListBackedIterator<X>
All Implemented Interfaces:
ResetableIterator<X>

@InterfaceAudience.Public
@InterfaceStability.Stable
public class ArrayListBackedIterator<X extends Writable>
extends ArrayListBackedIterator<X>
implements ResetableIterator<X>

This class provides an implementation of ResetableIterator. The implementation uses an ArrayList to store elements added to it, replaying them as requested. Prefer StreamBackedIterator.


Constructor Summary
ArrayListBackedIterator()
           
ArrayListBackedIterator(ArrayList<X> data)
           
 
Method Summary
 
Methods inherited from class org.apache.hadoop.mapreduce.lib.join.ArrayListBackedIterator
add, clear, close, hasNext, next, replay, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.mapreduce.lib.join.ResetableIterator
add, clear, close, hasNext, next, replay, reset
 

Constructor Detail

ArrayListBackedIterator

public ArrayListBackedIterator()

ArrayListBackedIterator

public ArrayListBackedIterator(ArrayList<X> data)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.