Package | Description |
---|---|
org.apache.avro.file |
A container file for Avro data.
|
Modifier and Type | Method and Description |
---|---|
DataFileWriter<D> |
DataFileWriter.appendTo(File file)
Open a writer appending to an existing file.
|
DataFileWriter<D> |
DataFileWriter.appendTo(SeekableInput in,
OutputStream out)
Open a writer appending to an existing file.
|
DataFileWriter<D> |
DataFileWriter.create(Schema schema,
File file)
Open a new file for data matching a schema with a random sync.
|
DataFileWriter<D> |
DataFileWriter.create(Schema schema,
OutputStream outs)
Open a new file for data matching a schema with a random sync.
|
DataFileWriter<D> |
DataFileWriter.create(Schema schema,
OutputStream outs,
byte[] sync)
Open a new file for data matching a schema with an explicit sync.
|
DataFileWriter<D> |
DataFileWriter.setCodec(CodecFactory c)
Configures this writer to use the given codec.
|
DataFileWriter<D> |
DataFileWriter.setMeta(String key,
byte[] value)
Set a metadata property.
|
DataFileWriter<D> |
DataFileWriter.setMeta(String key,
long value)
Set a metadata property.
|
DataFileWriter<D> |
DataFileWriter.setMeta(String key,
String value)
Set a metadata property.
|
DataFileWriter<D> |
DataFileWriter.setSyncInterval(int syncInterval)
Set the synchronization interval for this file, in bytes.
|
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.