java.io.Closeable, java.lang.AutoCloseablepublic static class ArrayFile.Writer extends MapFile.Writer
MapFile.Writer.Option| Constructor | Description |
|---|---|
Writer(Configuration conf,
FileSystem fs,
java.lang.String file,
java.lang.Class<? extends Writable> valClass) |
Create the named file for values of the named class.
|
Writer(Configuration conf,
FileSystem fs,
java.lang.String file,
java.lang.Class<? extends Writable> valClass,
SequenceFile.CompressionType compress,
Progressable progress) |
Create the named file for values of the named class.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
append(Writable value) |
Append a value to the file.
|
append, close, comparator, compression, compression, getIndexInterval, keyClass, progressable, setIndexInterval, setIndexInterval, valueClasspublic Writer(Configuration conf, FileSystem fs, java.lang.String file, java.lang.Class<? extends Writable> valClass) throws java.io.IOException
conf - configuration.fs - file system.file - file.valClass - valClass.java.io.IOException - raised on errors performing I/O.public Writer(Configuration conf, FileSystem fs, java.lang.String file, java.lang.Class<? extends Writable> valClass, SequenceFile.CompressionType compress, Progressable progress) throws java.io.IOException
conf - configuration.fs - file system.file - file.valClass - valClass.compress - compress.progress - progress.java.io.IOException - raised on errors performing I/O.public void append(Writable value) throws java.io.IOException
value - value.java.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.