T
- The (java) type of data in Avro container file.public class AvroKeyRecordReader<T> extends AvroRecordReaderBase<AvroKey<T>,org.apache.hadoop.io.NullWritable,T>
Constructor and Description |
---|
AvroKeyRecordReader(Schema readerSchema)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AvroKey<T> |
getCurrentKey() |
org.apache.hadoop.io.NullWritable |
getCurrentValue() |
boolean |
nextKeyValue() |
close, createAvroFileReader, createSeekableInput, getCurrentRecord, getProgress, initialize
public AvroKeyRecordReader(Schema readerSchema)
readerSchema
- The reader schema to use for the records in the Avro container file.public boolean nextKeyValue() throws IOException, InterruptedException
nextKeyValue
in class AvroRecordReaderBase<AvroKey<T>,org.apache.hadoop.io.NullWritable,T>
IOException
InterruptedException
public AvroKey<T> getCurrentKey() throws IOException, InterruptedException
getCurrentKey
in class org.apache.hadoop.mapreduce.RecordReader<AvroKey<T>,org.apache.hadoop.io.NullWritable>
IOException
InterruptedException
public org.apache.hadoop.io.NullWritable getCurrentValue() throws IOException, InterruptedException
getCurrentValue
in class org.apache.hadoop.mapreduce.RecordReader<AvroKey<T>,org.apache.hadoop.io.NullWritable>
IOException
InterruptedException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.