public static class ArrayFile.Writer extends MapFile.Writer
| 构造器和说明 |
|---|
ArrayFile.Writer(Configuration conf,
FileSystem fs,
String file,
Class<? extends Writable> valClass)
Create the named file for values of the named class.
|
ArrayFile.Writer(Configuration conf,
FileSystem fs,
String file,
Class<? extends Writable> valClass,
SequenceFile.CompressionType compress,
Progressable progress)
Create the named file for values of the named class.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
append(Writable value)
Append a value to the file.
|
append, close, getIndexInterval, setIndexInterval, setIndexIntervalpublic ArrayFile.Writer(Configuration conf, FileSystem fs, String file, Class<? extends Writable> valClass) throws IOException
IOExceptionpublic ArrayFile.Writer(Configuration conf, FileSystem fs, String file, Class<? extends Writable> valClass, SequenceFile.CompressionType compress, Progressable progress) throws IOException
IOExceptionpublic void append(Writable value) throws IOException
IOExceptionCopyright © 2009 The Apache Software Foundation