Uses of Class
org.apache.avro.file.DataFileWriter
-
Uses of DataFileWriter in org.apache.avro.file
Modifier and TypeMethodDescriptionOpen a writer appending to an existing file.DataFileWriter.appendTo
(SeekableInput in, OutputStream out) Open a writer appending to an existing file.Open a new file for data matching a schema with a random sync.DataFileWriter.create
(Schema schema, OutputStream outs) Open a new file for data matching a schema with a random sync.DataFileWriter.create
(Schema schema, OutputStream outs, byte[] sync) Open a new file for data matching a schema with an explicit sync.DataFileWriter.setCodec
(CodecFactory c) Configures this writer to use the given codec.DataFileWriter.setEncoder
(Function<OutputStream, BinaryEncoder> initEncoderFunc) Allows setting a different encoder than the default DirectBinaryEncoder.Set a metadata property.Set a metadata property.Set a metadata property.DataFileWriter.setSyncInterval
(int syncInterval) Set the synchronization interval for this file, in bytes.