public static class SetFile.Writer extends MapFile.Writer
MapFile.Writer.Option
Constructor and Description |
---|
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)
Deprecated.
pass a Configuration too
|
Modifier and Type | Method and Description |
---|---|
void |
append(WritableComparable key)
Append a key to a set.
|
append, close, comparator, compression, compression, getIndexInterval, keyClass, progressable, setIndexInterval, setIndexInterval, valueClass
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 © 2017 Apache Software Foundation. All Rights Reserved.