org.apache.pig.impl.util
Class RewindableIterator<E>

java.lang.Object
  extended by org.apache.pig.impl.util.RewindableIterator<E>

public class RewindableIterator<E>
extends Object


Constructor Summary
RewindableIterator(Iterator<E> it)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasNext(int k)
           
 E next()
           
 void noRewind()
           
 void rewind()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RewindableIterator

public RewindableIterator(Iterator<E> it)
Method Detail

hasNext

public boolean hasNext()

hasNext

public boolean hasNext(int k)

rewind

public void rewind()
            throws IOException
Throws:
IOException

noRewind

public void noRewind()

next

public E next()


Copyright © 2007-2012 The Apache Software Foundation