public static class StoreFileWriter.Builder extends Object
Constructor and Description |
---|
Builder(org.apache.hadoop.conf.Configuration conf,
CacheConfig cacheConf,
org.apache.hadoop.fs.FileSystem fs) |
Builder(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs)
Creates Builder with cache configuration disabled
|
Modifier and Type | Method and Description |
---|---|
StoreFileWriter |
build()
Create a store file writer.
|
StoreFileWriter.Builder |
withBloomType(BloomType bloomType) |
StoreFileWriter.Builder |
withComparator(CellComparator comparator) |
StoreFileWriter.Builder |
withFavoredNodes(InetSocketAddress[] favoredNodes) |
StoreFileWriter.Builder |
withFileContext(HFileContext fileContext) |
StoreFileWriter.Builder |
withFilePath(org.apache.hadoop.fs.Path filePath)
Use either this method or
withOutputDir(org.apache.hadoop.fs.Path) , but not both. |
StoreFileWriter.Builder |
withMaxKeyCount(long maxKeyCount) |
StoreFileWriter.Builder |
withOutputDir(org.apache.hadoop.fs.Path dir)
Use either this method or
withFilePath(org.apache.hadoop.fs.Path) , but not both. |
StoreFileWriter.Builder |
withShouldDropCacheBehind(boolean shouldDropCacheBehind) |
public Builder(org.apache.hadoop.conf.Configuration conf, CacheConfig cacheConf, org.apache.hadoop.fs.FileSystem fs)
public Builder(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs)
public StoreFileWriter.Builder 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 StoreFileWriter.Builder withFilePath(org.apache.hadoop.fs.Path filePath)
withOutputDir(org.apache.hadoop.fs.Path)
, but not both.filePath
- the StoreFile path to writepublic StoreFileWriter.Builder withFavoredNodes(InetSocketAddress[] favoredNodes)
favoredNodes
- an array of favored nodes or possibly nullpublic StoreFileWriter.Builder withComparator(CellComparator comparator)
public StoreFileWriter.Builder withBloomType(BloomType bloomType)
public StoreFileWriter.Builder withMaxKeyCount(long maxKeyCount)
maxKeyCount
- estimated maximum number of keys we expect to addpublic StoreFileWriter.Builder withFileContext(HFileContext fileContext)
public StoreFileWriter.Builder withShouldDropCacheBehind(boolean shouldDropCacheBehind)
public StoreFileWriter build() throws IOException
StoreFileWriter.appendMetadata(long, boolean)
.IOException
Copyright © 2007–2019 Cloudera. All rights reserved.