public static class SetFile.Writer extends MapFile.Writer
| 构造器和说明 |
|---|
SetFile.Writer(Configuration conf,
FileSystem fs,
String dirName,
Class<? extends WritableComparable> keyClass,
SequenceFile.CompressionType compress)
Create a set naming the element class and compression type.
|
SetFile.Writer(Configuration conf,
FileSystem fs,
String dirName,
WritableComparator comparator,
SequenceFile.CompressionType compress)
Create a set naming the element comparator and compression type.
|
SetFile.Writer(FileSystem fs,
String dirName,
Class<? extends WritableComparable> keyClass)
已过时。
pass a Configuration too
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
append(WritableComparable key)
Append a key to a set.
|
append, close, getIndexInterval, setIndexInterval, setIndexIntervalpublic SetFile.Writer(FileSystem fs, String dirName, Class<? extends WritableComparable> keyClass) throws IOException
IOExceptionpublic SetFile.Writer(Configuration conf, FileSystem fs, String dirName, Class<? extends WritableComparable> keyClass, SequenceFile.CompressionType compress) throws IOException
IOExceptionpublic SetFile.Writer(Configuration conf, FileSystem fs, String dirName, WritableComparator comparator, SequenceFile.CompressionType compress) throws IOException
IOExceptionpublic void append(WritableComparable key) throws IOException
IOExceptionCopyright © 2009 The Apache Software Foundation