public static class HFile.WriterFactory extends Object
Modifier and Type | Field and Description |
---|---|
protected CacheConfig |
cacheConf |
protected CellComparator |
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 |
---|
WriterFactory(org.apache.hadoop.conf.Configuration conf,
CacheConfig cacheConf) |
Modifier and Type | Method and Description |
---|---|
HFile.Writer |
create() |
HFile.WriterFactory |
withComparator(CellComparator 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 CellComparator comparator
protected InetSocketAddress[] favoredNodes
private HFileContext fileContext
protected boolean shouldDropBehind
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(CellComparator 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
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.