public static class StoreFileWriter.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(Configuration conf,
CacheConfig cacheConf,
FileSystem fs) |
Builder(Configuration conf,
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(java.net.InetSocketAddress[] favoredNodes) |
StoreFileWriter.Builder |
withFileContext(HFileContext fileContext) |
StoreFileWriter.Builder |
withFilePath(Path filePath)
Use either this method or
withOutputDir(Path) , but not both. |
StoreFileWriter.Builder |
withMaxKeyCount(long maxKeyCount) |
StoreFileWriter.Builder |
withOutputDir(Path dir)
Use either this method or
withFilePath(Path) , but not both. |
StoreFileWriter.Builder |
withShouldDropCacheBehind(boolean shouldDropCacheBehind) |
public Builder(Configuration conf, CacheConfig cacheConf, FileSystem fs)
public Builder(Configuration conf, FileSystem fs)
public StoreFileWriter.Builder withOutputDir(Path dir)
withFilePath(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(Path filePath)
withOutputDir(Path)
, but not both.filePath
- the StoreFile path to writepublic StoreFileWriter.Builder withFavoredNodes(java.net.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 java.io.IOException
StoreFileWriter.appendMetadata(long, boolean)
.java.io.IOException