public static class AvroSequenceFile.Writer extends SequenceFile.Writer
Modifier and Type | Class and Description |
---|---|
static class |
AvroSequenceFile.Writer.Options
A helper class to encapsulate the options that can be used to construct a
Writer.
|
SequenceFile.Writer.Option
StreamCapabilities.StreamCapability
compressedValSerializer, keySerializer, uncompressedValSerializer
ABORTABLE_STREAM, DROPBEHIND, HFLUSH, HSYNC, IOSTATISTICS, PREADBYTEBUFFER, READAHEAD, READBYTEBUFFER, UNBUFFER
Constructor and Description |
---|
Writer(AvroSequenceFile.Writer.Options options)
Creates a new
Writer to a SequenceFile that supports Avro data. |
append, append, appendIfExists, appendRaw, blockSize, bufferSize, close, compression, compression, file, flush, getCompressionCodec, getKeyClass, getLength, getValueClass, hasCapability, hflush, hsync, keyClass, metadata, progressable, replication, stream, sync, syncFs, syncInterval, valueClass
public Writer(AvroSequenceFile.Writer.Options options) throws IOException
Writer
to a SequenceFile that supports Avro data.options
- The writer options.IOException
- If the writer cannot be initialized.Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.