|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.io.MapFile.Writer org.apache.hadoop.io.SetFile.Writer
public static class SetFile.Writer
Write a new set file.
Constructor Summary | |
---|---|
SetFile.Writer(Configuration conf,
FileSystem fs,
String dirName,
Class 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 keyClass)
Deprecated. pass a Configuration too |
Method Summary | |
---|---|
void |
append(WritableComparable key)
Append a key to a set. |
Methods inherited from class org.apache.hadoop.io.MapFile.Writer |
---|
append, close, getIndexInterval, setIndexInterval, setIndexInterval |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetFile.Writer(FileSystem fs, String dirName, Class keyClass) throws IOException
IOException
public SetFile.Writer(Configuration conf, FileSystem fs, String dirName, Class keyClass, SequenceFile.CompressionType compress) throws IOException
IOException
public SetFile.Writer(Configuration conf, FileSystem fs, String dirName, WritableComparator comparator, SequenceFile.CompressionType compress) throws IOException
IOException
Method Detail |
---|
public void append(WritableComparable key) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |