@InterfaceAudience.Private public class HFileContext extends Object implements HeapSize, Cloneable
Modifier and Type | Field and Description |
---|---|
private int |
blocksize
Number of uncompressed bytes we allow per block.
|
private int |
bytesPerChecksum
the number of bytes per checksum value
|
private ChecksumType |
checksumType
the checksum type
|
private Compression.Algorithm |
compressAlgo
Compression algorithm used
|
private boolean |
compressTags
Whether tags to be compressed or not
|
private Encryption.Context |
cryptoContext
Encryption algorithm and key used
|
static int |
DEFAULT_BYTES_PER_CHECKSUM |
private DataBlockEncoding |
encoding |
private long |
fileCreateTime |
private String |
hfileName |
private boolean |
includesMvcc
Whether mvcc is to be included in the Read/Write
|
private boolean |
includesTags
Whether tags are to be included in the Read/Write
|
private boolean |
usesHBaseChecksum
Whether checksum is enabled or not
|
Constructor and Description |
---|
HFileContext() |
HFileContext(boolean useHBaseChecksum,
boolean includesMvcc,
boolean includesTags,
Compression.Algorithm compressAlgo,
boolean compressTags,
ChecksumType checksumType,
int bytesPerChecksum,
int blockSize,
DataBlockEncoding encoding,
Encryption.Context cryptoContext,
long fileCreateTime,
String hfileName) |
HFileContext(HFileContext context)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
HFileContext |
clone() |
int |
getBlocksize() |
int |
getBytesPerChecksum() |
ChecksumType |
getChecksumType() |
Compression.Algorithm |
getCompression() |
DataBlockEncoding |
getDataBlockEncoding() |
Encryption.Context |
getEncryptionContext() |
long |
getFileCreateTime() |
String |
getHFileName() |
long |
heapSize()
HeapSize implementation
NOTE : The heapsize should be altered as and when new state variable are added
|
boolean |
isCompressedOrEncrypted() |
boolean |
isCompressTags() |
boolean |
isIncludesMvcc() |
boolean |
isIncludesTags() |
boolean |
isUseHBaseChecksum() |
void |
setCompressTags(boolean compressTags) |
void |
setEncryptionContext(Encryption.Context cryptoContext) |
void |
setFileCreateTime(long fileCreateTime) |
void |
setIncludesMvcc(boolean includesMvcc) |
void |
setIncludesTags(boolean includesTags) |
String |
toString() |
public static final int DEFAULT_BYTES_PER_CHECKSUM
private boolean usesHBaseChecksum
private boolean includesMvcc
private boolean includesTags
private Compression.Algorithm compressAlgo
private boolean compressTags
private ChecksumType checksumType
private int bytesPerChecksum
private int blocksize
private DataBlockEncoding encoding
private Encryption.Context cryptoContext
private long fileCreateTime
public HFileContext()
public HFileContext(HFileContext context)
context
- HFileContext(boolean useHBaseChecksum, boolean includesMvcc, boolean includesTags, Compression.Algorithm compressAlgo, boolean compressTags, ChecksumType checksumType, int bytesPerChecksum, int blockSize, DataBlockEncoding encoding, Encryption.Context cryptoContext, long fileCreateTime, String hfileName)
public boolean isCompressedOrEncrypted()
public Compression.Algorithm getCompression()
public boolean isUseHBaseChecksum()
public boolean isIncludesMvcc()
public void setIncludesMvcc(boolean includesMvcc)
public boolean isIncludesTags()
public void setIncludesTags(boolean includesTags)
public void setFileCreateTime(long fileCreateTime)
public boolean isCompressTags()
public void setCompressTags(boolean compressTags)
public ChecksumType getChecksumType()
public int getBytesPerChecksum()
public int getBlocksize()
public long getFileCreateTime()
public DataBlockEncoding getDataBlockEncoding()
public Encryption.Context getEncryptionContext()
public void setEncryptionContext(Encryption.Context cryptoContext)
public String getHFileName()
public long heapSize()
public HFileContext clone()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.