Modifier and Type | Field and Description |
---|---|
private BloomType |
bloomType |
private CacheConfig |
cacheConf |
private KeyValue.KVComparator |
comparator |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.fs.Path |
dir |
private InetSocketAddress[] |
favoredNodes |
private HFileContext |
fileContext |
private org.apache.hadoop.fs.Path |
filePath |
private org.apache.hadoop.fs.FileSystem |
fs |
private long |
maxKeyCount |
private boolean |
shouldDropCacheBehind |
Constructor and Description |
---|
StoreFile.WriterBuilder(org.apache.hadoop.conf.Configuration conf,
CacheConfig cacheConf,
org.apache.hadoop.fs.FileSystem fs) |
Modifier and Type | Method and Description |
---|---|
StoreFile.Writer |
build()
Create a store file writer.
|
StoreFile.WriterBuilder |
withBloomType(BloomType bloomType) |
StoreFile.WriterBuilder |
withComparator(KeyValue.KVComparator comparator) |
StoreFile.WriterBuilder |
withFavoredNodes(InetSocketAddress[] favoredNodes) |
StoreFile.WriterBuilder |
withFileContext(HFileContext fileContext) |
StoreFile.WriterBuilder |
withFilePath(org.apache.hadoop.fs.Path filePath)
Use either this method or
withOutputDir(org.apache.hadoop.fs.Path) , but not both. |
StoreFile.WriterBuilder |
withMaxKeyCount(long maxKeyCount) |
StoreFile.WriterBuilder |
withOutputDir(org.apache.hadoop.fs.Path dir)
Use either this method or
withFilePath(org.apache.hadoop.fs.Path) , but not both. |
StoreFile.WriterBuilder |
withShouldDropCacheBehind(boolean shouldDropCacheBehind) |
private final org.apache.hadoop.conf.Configuration conf
private final CacheConfig cacheConf
private final org.apache.hadoop.fs.FileSystem fs
private KeyValue.KVComparator comparator
private BloomType bloomType
private long maxKeyCount
private org.apache.hadoop.fs.Path dir
private org.apache.hadoop.fs.Path filePath
private InetSocketAddress[] favoredNodes
private HFileContext fileContext
private boolean shouldDropCacheBehind
public StoreFile.WriterBuilder(org.apache.hadoop.conf.Configuration conf, CacheConfig cacheConf, org.apache.hadoop.fs.FileSystem fs)
public StoreFile.WriterBuilder withOutputDir(org.apache.hadoop.fs.Path dir)
withFilePath(org.apache.hadoop.fs.Path)
, but not both.dir
- Path to column family directory. The directory is created if
does not exist. The file is given a unique name within this
directory.public StoreFile.WriterBuilder withFilePath(org.apache.hadoop.fs.Path filePath)
withOutputDir(org.apache.hadoop.fs.Path)
, but not both.filePath
- the StoreFile path to writepublic StoreFile.WriterBuilder withFavoredNodes(InetSocketAddress[] favoredNodes)
favoredNodes
- an array of favored nodes or possibly nullpublic StoreFile.WriterBuilder withComparator(KeyValue.KVComparator comparator)
public StoreFile.WriterBuilder withBloomType(BloomType bloomType)
public StoreFile.WriterBuilder withMaxKeyCount(long maxKeyCount)
maxKeyCount
- estimated maximum number of keys we expect to addpublic StoreFile.WriterBuilder withFileContext(HFileContext fileContext)
public StoreFile.WriterBuilder withShouldDropCacheBehind(boolean shouldDropCacheBehind)
public StoreFile.Writer build() throws IOException
StoreFile.Writer.appendMetadata(long, boolean)
.IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.