org.apache.hadoop.hbase.io.hfile
Class HFile.WriterFactory

java.lang.Object
  extended by org.apache.hadoop.hbase.io.hfile.HFile.WriterFactory
Enclosing class:
HFile

public abstract static class HFile.WriterFactory
extends Object

This variety of ways to construct writers is used throughout the code, and we want to be able to swap writer implementations.


Field Summary
protected  CacheConfig cacheConf
           
protected  org.apache.hadoop.conf.Configuration conf
           
 
Method Summary
abstract  HFile.Writer createWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path)
           
abstract  HFile.Writer createWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, int blockSize, Compression.Algorithm compress, KeyValue.KeyComparator comparator)
           
abstract  HFile.Writer createWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, int blockSize, String compress, KeyValue.KeyComparator comparator)
           
abstract  HFile.Writer createWriter(org.apache.hadoop.fs.FSDataOutputStream ostream, int blockSize, Compression.Algorithm compress, KeyValue.KeyComparator c)
           
abstract  HFile.Writer createWriter(org.apache.hadoop.fs.FSDataOutputStream ostream, int blockSize, String compress, KeyValue.KeyComparator comparator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conf

protected org.apache.hadoop.conf.Configuration conf

cacheConf

protected CacheConfig cacheConf
Method Detail

createWriter

public abstract HFile.Writer createWriter(org.apache.hadoop.fs.FileSystem fs,
                                          org.apache.hadoop.fs.Path path)
                                   throws IOException
Throws:
IOException

createWriter

public abstract HFile.Writer createWriter(org.apache.hadoop.fs.FileSystem fs,
                                          org.apache.hadoop.fs.Path path,
                                          int blockSize,
                                          Compression.Algorithm compress,
                                          KeyValue.KeyComparator comparator)
                                   throws IOException
Throws:
IOException

createWriter

public abstract HFile.Writer createWriter(org.apache.hadoop.fs.FileSystem fs,
                                          org.apache.hadoop.fs.Path path,
                                          int blockSize,
                                          String compress,
                                          KeyValue.KeyComparator comparator)
                                   throws IOException
Throws:
IOException

createWriter

public abstract HFile.Writer createWriter(org.apache.hadoop.fs.FSDataOutputStream ostream,
                                          int blockSize,
                                          String compress,
                                          KeyValue.KeyComparator comparator)
                                   throws IOException
Throws:
IOException

createWriter

public abstract HFile.Writer createWriter(org.apache.hadoop.fs.FSDataOutputStream ostream,
                                          int blockSize,
                                          Compression.Algorithm compress,
                                          KeyValue.KeyComparator c)
                                   throws IOException
Throws:
IOException


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