Constructor and Description |
---|
StoreFile.WriterBuilder(org.apache.hadoop.conf.Configuration conf,
CacheConfig cacheConf,
org.apache.hadoop.fs.FileSystem fs,
int blockSize) |
Modifier and Type | Method and Description |
---|---|
StoreFile.Writer |
build()
Create a store file writer.
|
StoreFile.WriterBuilder |
includeMVCCReadpoint(boolean includeMVCCReadpoint) |
StoreFile.WriterBuilder |
withBloomType(StoreFile.BloomType bloomType) |
StoreFile.WriterBuilder |
withBytesPerChecksum(int bytesPerChecksum) |
StoreFile.WriterBuilder |
withChecksumType(ChecksumType checksumType) |
StoreFile.WriterBuilder |
withComparator(KeyValue.KVComparator comparator) |
StoreFile.WriterBuilder |
withCompression(Compression.Algorithm compressAlgo) |
StoreFile.WriterBuilder |
withDataBlockEncoder(HFileDataBlockEncoder encoder) |
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. |
public StoreFile.WriterBuilder(org.apache.hadoop.conf.Configuration conf, CacheConfig cacheConf, org.apache.hadoop.fs.FileSystem fs, int blockSize)
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 withCompression(Compression.Algorithm compressAlgo)
public StoreFile.WriterBuilder withDataBlockEncoder(HFileDataBlockEncoder encoder)
public StoreFile.WriterBuilder withComparator(KeyValue.KVComparator comparator)
public StoreFile.WriterBuilder withBloomType(StoreFile.BloomType bloomType)
public StoreFile.WriterBuilder withMaxKeyCount(long maxKeyCount)
maxKeyCount
- estimated maximum number of keys we expect to addpublic StoreFile.WriterBuilder withChecksumType(ChecksumType checksumType)
checksumType
- the type of checksumpublic StoreFile.WriterBuilder withBytesPerChecksum(int bytesPerChecksum)
bytesPerChecksum
- the number of bytes per checksum chunkpublic StoreFile.WriterBuilder includeMVCCReadpoint(boolean includeMVCCReadpoint)
includeMVCCReadpoint
- whether to write the mvcc readpoint to the file for each KVpublic StoreFile.Writer build() throws IOException
StoreFile.Writer.appendMetadata(long, boolean)
.IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.