@InterfaceAudience.Private public class HFileContext extends Object implements HeapSize, Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BYTES_PER_CHECKSUM |
static ChecksumType |
DEFAULT_CHECKSUM_TYPE |
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) |
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() |
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 |
setCompression(Compression.Algorithm compressAlgo) |
void |
setCompressTags(boolean compressTags) |
void |
setDataBlockEncoding(DataBlockEncoding encoding) |
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
public static final ChecksumType DEFAULT_CHECKSUM_TYPE
public HFileContext()
public HFileContext(HFileContext context)
context
- public 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)
public boolean isCompressedOrEncrypted()
public Compression.Algorithm getCompression()
public void setCompression(Compression.Algorithm compressAlgo)
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 void setDataBlockEncoding(DataBlockEncoding encoding)
public Encryption.Context getEncryptionContext()
public void setEncryptionContext(Encryption.Context cryptoContext)
public long heapSize()
public HFileContext clone()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.