org.apache.avro.hadoop.io
Class AvroSequenceFile.Reader

java.lang.Object
  extended by org.apache.hadoop.io.SequenceFile.Reader
      extended by org.apache.avro.hadoop.io.AvroSequenceFile.Reader
All Implemented Interfaces:
Closeable
Enclosing class:
AvroSequenceFile

public static class AvroSequenceFile.Reader
extends org.apache.hadoop.io.SequenceFile.Reader

A reader for SequenceFiles that may contain Avro data.


Nested Class Summary
static class AvroSequenceFile.Reader.Options
          A helper class to encapsulate the options that can be used to construct a Reader.
 
Constructor Summary
AvroSequenceFile.Reader(AvroSequenceFile.Reader.Options options)
          Creates a new Reader from a SequenceFile that supports Avro data.
 
Method Summary
 
Methods inherited from class org.apache.hadoop.io.SequenceFile.Reader
close, createValueBytes, getCompressionCodec, getCurrentValue, getCurrentValue, getKeyClass, getKeyClassName, getMetadata, getPosition, getValueClass, getValueClassName, isBlockCompressed, isCompressed, next, next, next, next, nextRaw, nextRawKey, nextRawValue, openFile, seek, sync, syncSeen, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AvroSequenceFile.Reader

public AvroSequenceFile.Reader(AvroSequenceFile.Reader.Options options)
                        throws IOException
Creates a new Reader from a SequenceFile that supports Avro data.

Parameters:
options - The reader options.
Throws:
IOException - If the reader cannot be initialized.


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