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

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

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

A writer for an uncompressed SequenceFile that supports Avro data.


Nested Class Summary
static class AvroSequenceFile.Writer.Options
          A helper class to encapsulate the options that can be used to construct a Writer.
 
Field Summary
 
Fields inherited from class org.apache.hadoop.io.SequenceFile.Writer
compressedValSerializer, keySerializer, uncompressedValSerializer
 
Constructor Summary
AvroSequenceFile.Writer(AvroSequenceFile.Writer.Options options)
          Creates a new Writer to a SequenceFile that supports Avro data.
 
Method Summary
 
Methods inherited from class org.apache.hadoop.io.SequenceFile.Writer
append, append, appendRaw, close, getCompressionCodec, getKeyClass, getLength, getValueClass, sync, syncFs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvroSequenceFile.Writer

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

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


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