@InterfaceAudience.Private public class HFileContext extends Object implements HeapSize, Cloneable
HFileContextBuilder
(See HFileInfo and the HFile
Trailer class).HFileContextBuilder
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 CellComparator |
cellComparator |
private ChecksumType |
checksumType
the checksum type
|
private byte[] |
columnFamily |
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
|
private static int |
DEFAULT_BYTES_PER_CHECKSUM |
private DataBlockEncoding |
encoding |
private long |
fileCreateTime |
static int |
FIXED_OVERHEAD |
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 byte[] |
tableName |
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,
byte[] columnFamily,
byte[] tableName,
CellComparator cellComparator) |
HFileContext(HFileContext context)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
HFileContext |
clone() |
int |
getBlocksize() |
int |
getBytesPerChecksum() |
CellComparator |
getCellComparator() |
ChecksumType |
getChecksumType() |
byte[] |
getColumnFamily() |
Compression.Algorithm |
getCompression() |
DataBlockEncoding |
getDataBlockEncoding() |
Encryption.Context |
getEncryptionContext() |
long |
getFileCreateTime() |
String |
getHFileName() |
byte[] |
getTableName() |
long |
heapSize()
HeapSize implementation.
|
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 FIXED_OVERHEAD
private 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
private byte[] columnFamily
private byte[] tableName
private CellComparator cellComparator
public HFileContext()
public HFileContext(HFileContext 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, byte[] columnFamily, byte[] tableName, CellComparator cellComparator)
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 byte[] getColumnFamily()
public byte[] getTableName()
public CellComparator getCellComparator()
public long heapSize()
public HFileContext clone()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.