Package org.apache.hadoop.hbase.io.hfile
Class HFileContextBuilder
java.lang.Object
org.apache.hadoop.hbase.io.hfile.HFileContextBuilder
A builder that helps in building up the HFileContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
Number of uncompressed bytes we allow per block.private int
the number of bytes per checksum valueprivate CellComparator
private ChecksumType
the checksum typeprivate byte[]
private Compression.Algorithm
Compression algorithm usedprivate boolean
Whether tags to be compressed or notprivate Encryption.Context
Crypto contextstatic final int
private DataBlockEncoding
private long
private String
private boolean
Whether mvcc is to be included in the Read/Writeprivate boolean
Whether tags are to be included in the Read/Writeprivate IndexBlockEncoding
the index block encoding typeprivate byte[]
private boolean
Whether checksum is enabled or not -
Constructor Summary
ConstructorDescriptionUse this constructor if you want to change a few settings only in another context. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
withBlockSize
(int blockSize) withBytesPerCheckSum
(int bytesPerChecksum) withCellComparator
(CellComparator cellComparator) withChecksumType
(ChecksumType checkSumType) withColumnFamily
(byte[] columnFamily) withCompression
(Compression.Algorithm compression) withCompressTags
(boolean compressTags) withCreateTime
(long fileCreateTime) withDataBlockEncoding
(DataBlockEncoding encoding) withEncryptionContext
(Encryption.Context cryptoContext) withHBaseCheckSum
(boolean useHBaseCheckSum) withHFileName
(String name) withIncludesMvcc
(boolean includesMvcc) withIncludesTags
(boolean includesTags) withIndexBlockEncoding
(IndexBlockEncoding indexBlockEncoding) withTableName
(byte[] tableName)
-
Field Details
-
DEFAULT_BYTES_PER_CHECKSUM
- See Also:
-
usesHBaseChecksum
Whether checksum is enabled or not -
includesMvcc
Whether mvcc is to be included in the Read/Write -
includesTags
Whether tags are to be included in the Read/Write -
compression
Compression algorithm used -
compressTags
Whether tags to be compressed or not -
checkSumType
the checksum type -
bytesPerChecksum
the number of bytes per checksum value -
blockSize
Number of uncompressed bytes we allow per block. -
encoding
-
indexBlockEncoding
the index block encoding type -
cryptoContext
Crypto context -
fileCreateTime
-
hfileName
-
columnFamily
-
tableName
-
cellComparator
-
-
Constructor Details
-
HFileContextBuilder
public HFileContextBuilder() -
HFileContextBuilder
Use this constructor if you want to change a few settings only in another context.
-
-
Method Details
-
withHBaseCheckSum
-
withIncludesMvcc
-
withIncludesTags
-
withCompression
-
withCompressTags
-
withChecksumType
-
withBytesPerCheckSum
-
withBlockSize
-
withDataBlockEncoding
-
withIndexBlockEncoding
-
withEncryptionContext
-
withCreateTime
-
withHFileName
-
withColumnFamily
-
withTableName
-
withCellComparator
-
build
-