org.apache.hadoop.hbase.io.hfile
Interface HFile.Writer

All Superinterfaces:
Closeable
All Known Implementing Classes:
AbstractHFileWriter, HFileWriterV1, HFileWriterV2
Enclosing class:
HFile

public static interface HFile.Writer
extends Closeable

API required to write an HFile


Method Summary
 void addBloomFilter(BloomFilterWriter bfw)
          Store Bloom filter in the file.
 void addInlineBlockWriter(InlineBlockWriter bloomWriter)
          Adds an inline block writer such as a multi-level block index writer or a compound Bloom filter writer.
 void append(byte[] key, byte[] value)
           
 void append(KeyValue kv)
           
 void appendFileInfo(byte[] key, byte[] value)
          Add an element to the file info map.
 void appendMetaBlock(String bloomFilterMetaKey, org.apache.hadoop.io.Writable metaWriter)
           
 org.apache.hadoop.fs.Path getPath()
           
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

appendFileInfo

void appendFileInfo(byte[] key,
                    byte[] value)
                    throws IOException
Add an element to the file info map.

Throws:
IOException

append

void append(KeyValue kv)
            throws IOException
Throws:
IOException

append

void append(byte[] key,
            byte[] value)
            throws IOException
Throws:
IOException

getPath

org.apache.hadoop.fs.Path getPath()
Returns:
the path to this HFile

appendMetaBlock

void appendMetaBlock(String bloomFilterMetaKey,
                     org.apache.hadoop.io.Writable metaWriter)

addInlineBlockWriter

void addInlineBlockWriter(InlineBlockWriter bloomWriter)
Adds an inline block writer such as a multi-level block index writer or a compound Bloom filter writer.


addBloomFilter

void addBloomFilter(BloomFilterWriter bfw)
Store Bloom filter in the file. This does not deal with Bloom filter internals but is necessary, since Bloom filters are stored differently in HFile version 1 and version 2.



Copyright © 2012 The Apache Software Foundation. All Rights Reserved.