Class RecordReaderIterator

  extended by cascading.util.SingleValueIterator<Value>
      extended by cascading.util.SingleValueCloseableIterator<RecordReader>
          extended by
All Implemented Interfaces:
cascading.util.CloseableIterator<RecordReader>, Closeable, Iterator<RecordReader>

public class RecordReaderIterator
extends cascading.util.SingleValueCloseableIterator<RecordReader>

RecordReaderIterator is a utility class for handing off a single RecordReader instance via the Iterator.

This class is frequently used with the TupleEntrySchemeIterator where there is only one RecordReader to iterate values over.

Field Summary
Fields inherited from class cascading.util.SingleValueIterator
EMPTY, value
Constructor Summary
RecordReaderIterator(RecordReader reader)
Method Summary
 void close()
Methods inherited from class cascading.util.SingleValueCloseableIterator
Methods inherited from class cascading.util.SingleValueIterator
hasNext, next, remove, 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
hasNext, next, remove

Constructor Detail


public RecordReaderIterator(RecordReader reader)
Method Detail


public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class cascading.util.SingleValueCloseableIterator<RecordReader>

Copyright © 2007-2013 Concurrent, Inc. All Rights Reserved.