Package org.apache.hadoop.hbase.io.hfile
Class HFile.WriterFactory
java.lang.Object
org.apache.hadoop.hbase.io.hfile.HFile.WriterFactory
- Enclosing class:
- HFile
This variety of ways to construct writers is used throughout the code, and we want to be able
to swap writer implementations.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CacheConfig
protected final org.apache.hadoop.conf.Configuration
protected InetSocketAddress[]
private HFileContext
protected org.apache.hadoop.fs.FileSystem
protected org.apache.hadoop.fs.FSDataOutputStream
protected org.apache.hadoop.fs.Path
protected boolean
-
Constructor Summary
ConstructorDescriptionWriterFactory
(org.apache.hadoop.conf.Configuration conf, CacheConfig cacheConf) -
Method Summary
Modifier and TypeMethodDescriptioncreate()
withFavoredNodes
(InetSocketAddress[] favoredNodes) withFileContext
(HFileContext fileContext) withOutputStream
(org.apache.hadoop.fs.FSDataOutputStream ostream) withPath
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) withShouldDropCacheBehind
(boolean shouldDropBehind)
-
Field Details
-
conf
-
cacheConf
-
fs
-
path
-
ostream
-
favoredNodes
-
fileContext
-
shouldDropBehind
-
-
Constructor Details
-
WriterFactory
WriterFactory(org.apache.hadoop.conf.Configuration conf, CacheConfig cacheConf)
-
-
Method Details
-
withPath
public HFile.WriterFactory withPath(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) -
withOutputStream
-
withFavoredNodes
-
withFileContext
-
withShouldDropCacheBehind
-
create
- Throws:
IOException
-