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, setIndexInterval
public SetFile.Writer(FileSystem fs, String dirName, Class<? extends WritableComparable> keyClass) throws IOException
IOException
public SetFile.Writer(Configuration conf, FileSystem fs, String dirName, Class<? extends WritableComparable> keyClass, SequenceFile.CompressionType compress) throws IOException
IOException
public SetFile.Writer(Configuration conf, FileSystem fs, String dirName, WritableComparator comparator, SequenceFile.CompressionType compress) throws IOException
IOException
public void append(WritableComparable key) throws IOException
IOException
Copyright © 2009 The Apache Software Foundation