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
FieldsModifier and TypeFieldDescriptionprivate intNumber of uncompressed bytes we allow per block.private intthe number of bytes per checksum valueprivate CellComparatorprivate ChecksumTypethe checksum typeprivate byte[]private Compression.AlgorithmCompression algorithm usedprivate booleanWhether tags to be compressed or notprivate Encryption.ContextCrypto contextstatic final intprivate DataBlockEncodingprivate longprivate Stringprivate booleanWhether mvcc is to be included in the Read/Writeprivate booleanWhether tags are to be included in the Read/Writeprivate IndexBlockEncodingthe index block encoding typeprivate byte[]private booleanWhether checksum is enabled or not -
Constructor Summary
ConstructorsConstructorDescriptionUse 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) withDecompressionContext(Compression.HFileDecompressionContext decompressionContext) 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 -
decompressionContext
-
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
-
withDecompressionContext
public HFileContextBuilder withDecompressionContext(@Nullable Compression.HFileDecompressionContext decompressionContext) -
withCompressTags
-
withChecksumType
-
withBytesPerCheckSum
-
withBlockSize
-
withDataBlockEncoding
-
withIndexBlockEncoding
-
withEncryptionContext
-
withCreateTime
-
withHFileName
-
withColumnFamily
-
withTableName
-
withCellComparator
-
build
-