|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.io.MapFile.Writer
public static class MapFile.Writer
Writes a new map.
Constructor Summary | |
---|---|
MapFile.Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class valClass)
Create the named map for keys of the named class. |
|
MapFile.Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class valClass,
SequenceFile.CompressionType compress)
Create the named map for keys of the named class. |
|
MapFile.Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class valClass,
SequenceFile.CompressionType compress,
CompressionCodec codec,
Progressable progress)
Create the named map for keys of the named class. |
|
MapFile.Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class valClass,
SequenceFile.CompressionType compress,
Progressable progress)
Create the named map for keys of the named class. |
|
MapFile.Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
WritableComparator comparator,
java.lang.Class valClass)
Create the named map using the named key comparator. |
|
MapFile.Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
WritableComparator comparator,
java.lang.Class valClass,
SequenceFile.CompressionType compress)
Create the named map using the named key comparator. |
|
MapFile.Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
WritableComparator comparator,
java.lang.Class valClass,
SequenceFile.CompressionType compress,
CompressionCodec codec,
Progressable progress)
Create the named map using the named key comparator. |
|
MapFile.Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
WritableComparator comparator,
java.lang.Class valClass,
SequenceFile.CompressionType compress,
Progressable progress)
Create the named map using the named key comparator. |
Method Summary | |
---|---|
void |
append(WritableComparable key,
Writable val)
Append a key/value pair to the map. |
void |
close()
Close the map. |
int |
getIndexInterval()
The number of entries that are added before an index entry is added. |
static void |
setIndexInterval(Configuration conf,
int interval)
Sets the index interval and stores it in conf |
void |
setIndexInterval(int interval)
Sets the index interval. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapFile.Writer(Configuration conf, FileSystem fs, java.lang.String dirName, java.lang.Class<? extends WritableComparable> keyClass, java.lang.Class valClass) throws java.io.IOException
java.io.IOException
public MapFile.Writer(Configuration conf, FileSystem fs, java.lang.String dirName, java.lang.Class<? extends WritableComparable> keyClass, java.lang.Class valClass, SequenceFile.CompressionType compress, Progressable progress) throws java.io.IOException
java.io.IOException
public MapFile.Writer(Configuration conf, FileSystem fs, java.lang.String dirName, java.lang.Class<? extends WritableComparable> keyClass, java.lang.Class valClass, SequenceFile.CompressionType compress, CompressionCodec codec, Progressable progress) throws java.io.IOException
java.io.IOException
public MapFile.Writer(Configuration conf, FileSystem fs, java.lang.String dirName, java.lang.Class<? extends WritableComparable> keyClass, java.lang.Class valClass, SequenceFile.CompressionType compress) throws java.io.IOException
java.io.IOException
public MapFile.Writer(Configuration conf, FileSystem fs, java.lang.String dirName, WritableComparator comparator, java.lang.Class valClass) throws java.io.IOException
java.io.IOException
public MapFile.Writer(Configuration conf, FileSystem fs, java.lang.String dirName, WritableComparator comparator, java.lang.Class valClass, SequenceFile.CompressionType compress) throws java.io.IOException
java.io.IOException
public MapFile.Writer(Configuration conf, FileSystem fs, java.lang.String dirName, WritableComparator comparator, java.lang.Class valClass, SequenceFile.CompressionType compress, Progressable progress) throws java.io.IOException
java.io.IOException
public MapFile.Writer(Configuration conf, FileSystem fs, java.lang.String dirName, WritableComparator comparator, java.lang.Class valClass, SequenceFile.CompressionType compress, CompressionCodec codec, Progressable progress) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public int getIndexInterval()
public void setIndexInterval(int interval)
getIndexInterval()
public static void setIndexInterval(Configuration conf, int interval)
getIndexInterval()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
public void append(WritableComparable key, Writable val) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |