@InterfaceAudience.Private public class HFileContextBuilder extends Object
| Modifier and Type | Field and Description | 
|---|---|
| private int | blocksizeNumber of uncompressed bytes we allow per block. | 
| private int | bytesPerChecksumthe number of bytes per checksum value | 
| private CellComparator | cellComparator | 
| private ChecksumType | checksumTypethe checksum type | 
| private byte[] | columnFamily | 
| private Compression.Algorithm | compressionCompression algorithm used | 
| private boolean | compressTagsWhether tags to be compressed or not | 
| private Encryption.Context | cryptoContextCrypto context | 
| static int | DEFAULT_BYTES_PER_CHECKSUM | 
| private DataBlockEncoding | encoding | 
| private long | fileCreateTime | 
| private String | hfileName | 
| private boolean | includesMvccWhether mvcc is to be included in the Read/Write | 
| private boolean | includesTagsWhether tags are to be included in the Read/Write | 
| private byte[] | tableName | 
| private boolean | usesHBaseChecksumWhether checksum is enabled or not | 
| Constructor and Description | 
|---|
| HFileContextBuilder() | 
| HFileContextBuilder(HFileContext hfc)Use this constructor if you want to change a few settings only in another context. | 
public static final int DEFAULT_BYTES_PER_CHECKSUM
private boolean usesHBaseChecksum
private boolean includesMvcc
private boolean includesTags
private Compression.Algorithm compression
private boolean compressTags
private ChecksumType checksumType
private int bytesPerChecksum
private int blocksize
private DataBlockEncoding encoding
private Encryption.Context cryptoContext
private long fileCreateTime
private byte[] columnFamily
private byte[] tableName
private CellComparator cellComparator
public HFileContextBuilder()
public HFileContextBuilder(HFileContext hfc)
public HFileContextBuilder withHBaseCheckSum(boolean useHBaseCheckSum)
public HFileContextBuilder withIncludesMvcc(boolean includesMvcc)
public HFileContextBuilder withIncludesTags(boolean includesTags)
public HFileContextBuilder withCompression(Compression.Algorithm compression)
public HFileContextBuilder withCompressTags(boolean compressTags)
public HFileContextBuilder withChecksumType(ChecksumType checkSumType)
public HFileContextBuilder withBytesPerCheckSum(int bytesPerChecksum)
public HFileContextBuilder withBlockSize(int blockSize)
public HFileContextBuilder withDataBlockEncoding(DataBlockEncoding encoding)
public HFileContextBuilder withEncryptionContext(Encryption.Context cryptoContext)
public HFileContextBuilder withCreateTime(long fileCreateTime)
public HFileContextBuilder withHFileName(String name)
public HFileContextBuilder withColumnFamily(byte[] columnFamily)
public HFileContextBuilder withTableName(byte[] tableName)
public HFileContextBuilder withCellComparator(CellComparator cellComparator)
public HFileContext build()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.