public abstract static class HFile.WriterFactory extends Object
Modifier and Type | Field and Description |
---|---|
protected CacheConfig |
cacheConf |
protected KeyValue.KVComparator |
comparator |
protected org.apache.hadoop.conf.Configuration |
conf |
protected InetSocketAddress[] |
favoredNodes |
private HFileContext |
fileContext |
protected org.apache.hadoop.fs.FileSystem |
fs |
protected org.apache.hadoop.fs.FSDataOutputStream |
ostream |
protected org.apache.hadoop.fs.Path |
path |
protected boolean |
shouldDropBehind |
Constructor and Description |
---|
HFile.WriterFactory(org.apache.hadoop.conf.Configuration conf,
CacheConfig cacheConf) |
Modifier and Type | Method and Description |
---|---|
HFile.Writer |
create() |
protected abstract HFile.Writer |
createWriter(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FSDataOutputStream ostream,
KeyValue.KVComparator comparator,
HFileContext fileContext) |
HFile.WriterFactory |
withComparator(KeyValue.KVComparator comparator) |
HFile.WriterFactory |
withFavoredNodes(InetSocketAddress[] favoredNodes) |
HFile.WriterFactory |
withFileContext(HFileContext fileContext) |
HFile.WriterFactory |
withOutputStream(org.apache.hadoop.fs.FSDataOutputStream ostream) |
HFile.WriterFactory |
withPath(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path) |
HFile.WriterFactory |
withShouldDropCacheBehind(boolean shouldDropBehind) |
protected final org.apache.hadoop.conf.Configuration conf
protected final CacheConfig cacheConf
protected org.apache.hadoop.fs.FileSystem fs
protected org.apache.hadoop.fs.Path path
protected org.apache.hadoop.fs.FSDataOutputStream ostream
protected KeyValue.KVComparator comparator
protected InetSocketAddress[] favoredNodes
private HFileContext fileContext
protected boolean shouldDropBehind
HFile.WriterFactory(org.apache.hadoop.conf.Configuration conf, CacheConfig cacheConf)
public HFile.WriterFactory withPath(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path)
public HFile.WriterFactory withOutputStream(org.apache.hadoop.fs.FSDataOutputStream ostream)
public HFile.WriterFactory withComparator(KeyValue.KVComparator comparator)
public HFile.WriterFactory withFavoredNodes(InetSocketAddress[] favoredNodes)
public HFile.WriterFactory withFileContext(HFileContext fileContext)
public HFile.WriterFactory withShouldDropCacheBehind(boolean shouldDropBehind)
public HFile.Writer create() throws IOException
IOException
protected abstract HFile.Writer createWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FSDataOutputStream ostream, KeyValue.KVComparator comparator, HFileContext fileContext) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.