Package org.apache.avro.hadoop.io
Class AvroSequenceFile.Writer
java.lang.Object
org.apache.hadoop.io.SequenceFile.Writer
org.apache.avro.hadoop.io.AvroSequenceFile.Writer
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,StreamCapabilities
,Syncable
- Enclosing class:
AvroSequenceFile
A writer for an uncompressed SequenceFile that supports Avro data.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A helper class to encapsulate the options that can be used to construct a Writer.Nested classes/interfaces inherited from class org.apache.hadoop.io.SequenceFile.Writer
SequenceFile.Writer.Option
Nested classes/interfaces inherited from interface org.apache.hadoop.fs.StreamCapabilities
StreamCapabilities.StreamCapability
-
Field Summary
Fields inherited from class org.apache.hadoop.io.SequenceFile.Writer
compressedValSerializer, keySerializer, uncompressedValSerializer
Fields inherited from interface org.apache.hadoop.fs.StreamCapabilities
ABORTABLE_STREAM, DROPBEHIND, HFLUSH, HSYNC, IOSTATISTICS, IOSTATISTICS_CONTEXT, PREADBYTEBUFFER, READAHEAD, READBYTEBUFFER, UNBUFFER, VECTOREDIO
-
Constructor Summary
ConstructorDescriptionWriter
(AvroSequenceFile.Writer.Options options) Creates a newWriter
to a SequenceFile that supports Avro data. -
Method Summary
Methods inherited from class org.apache.hadoop.io.SequenceFile.Writer
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
-
Constructor Details
-
Writer
Creates a newWriter
to a SequenceFile that supports Avro data.- Parameters:
options
- The writer options.- Throws:
IOException
- If the writer cannot be initialized.
-