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.
|
DataFileWriter<D> |
DataFileWriter.create(Schema schema,
OutputStream outs)
Open a new file for data matching a schema.
|
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-2012 The Apache Software Foundation. All Rights Reserved.