org.apache.avro.hadoop.io
Class AvroKeyValue.Iterator<K,V>

java.lang.Object
  extended by org.apache.avro.hadoop.io.AvroKeyValue.Iterator<K,V>
Type Parameters:
K - The key type.
V - The value type.
All Implemented Interfaces:
Iterator<AvroKeyValue<K,V>>
Enclosing class:
AvroKeyValue<K,V>

public static class AvroKeyValue.Iterator<K,V>
extends Object
implements Iterator<AvroKeyValue<K,V>>

A wrapper for iterators over GenericRecords that are known to be KeyValue records.


Constructor Summary
AvroKeyValue.Iterator(Iterator<? extends org.apache.avro.generic.GenericRecord> genericIterator)
          Constructs an iterator over key-value map entries out of a generic iterator.
 
Method Summary
 boolean hasNext()
          
 AvroKeyValue<K,V> next()
          
 void remove()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvroKeyValue.Iterator

public AvroKeyValue.Iterator(Iterator<? extends org.apache.avro.generic.GenericRecord> genericIterator)
Constructs an iterator over key-value map entries out of a generic iterator.

Parameters:
genericIterator - An iterator over some generic record entries.
Method Detail

hasNext

public boolean hasNext()

Specified by:
hasNext in interface Iterator<AvroKeyValue<K,V>>

next

public AvroKeyValue<K,V> next()

Specified by:
next in interface Iterator<AvroKeyValue<K,V>>

remove

public void remove()

Specified by:
remove in interface Iterator<AvroKeyValue<K,V>>


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.