public static class AvroSequenceFile.BlockCompressWriter extends SequenceFileBase.BlockCompressWriterBase
compressedValSerializer, keySerializer, uncompressedValSerializer
Constructor and Description |
---|
AvroSequenceFile.BlockCompressWriter(AvroSequenceFile.Writer.Options options)
Creates a new
BlockCompressWriter to a SequenceFile that supports Avro data. |
Modifier and Type | Method and Description |
---|---|
void |
append(Object arg0,
Object arg1) |
void |
appendRaw(byte[] arg0,
int arg1,
int arg2,
SequenceFile.ValueBytes arg3) |
void |
close() |
void |
sync() |
append, getCompressionCodec, getKeyClass, getLength, getValueClass, syncFs
public AvroSequenceFile.BlockCompressWriter(AvroSequenceFile.Writer.Options options) throws IOException
BlockCompressWriter
to a SequenceFile that supports Avro data.options
- The writer options.IOException
- If the writer cannot be initialized.public void sync() throws IOException
sync
in class SequenceFile.Writer
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class SequenceFile.Writer
IOException
public void append(Object arg0, Object arg1) throws IOException
append
in class SequenceFile.Writer
IOException
public void appendRaw(byte[] arg0, int arg1, int arg2, SequenceFile.ValueBytes arg3) throws IOException
appendRaw
in class SequenceFile.Writer
IOException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.