org.apache.hadoop.hbase.io
Class BloomFilterMapFile.Writer
java.lang.Object
org.apache.hadoop.hbase.io.MapFile.Writer
org.apache.hadoop.hbase.io.HBaseMapFile.HBaseWriter
org.apache.hadoop.hbase.io.BloomFilterMapFile.Writer
- All Implemented Interfaces:
- Closeable
- Enclosing class:
- BloomFilterMapFile
public static class BloomFilterMapFile.Writer
- extends HBaseMapFile.HBaseWriter
Method Summary |
void |
append(org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Writable val)
Append a key/value pair to the map. |
void |
close()
Close the map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BloomFilterMapFile.Writer
public BloomFilterMapFile.Writer(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
String dirName,
SequenceFile.CompressionType compression,
boolean filter,
int nrows,
HRegionInfo hri)
throws IOException
- Parameters:
conf
- fs
- dirName
- compression
- filter
- nrows
- hri
-
- Throws:
IOException
append
public void append(org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Writable val)
throws IOException
- Description copied from class:
MapFile.Writer
- Append a key/value pair to the map. The key must be greater or equal
to the previous key added to the map.
- Overrides:
append
in class MapFile.Writer
- Throws:
IOException
close
public void close()
throws IOException
- Description copied from class:
MapFile.Writer
- Close the map.
- Specified by:
close
in interface Closeable
- Overrides:
close
in class MapFile.Writer
- Throws:
IOException
Copyright © 2008 The Apache Software Foundation