@InterfaceAudience.Private public class HFileContext extends Object implements HeapSize, Cloneable
| Modifier and Type | Field and Description | 
|---|---|
| private int | blocksizeNumber of uncompressed bytes we allow per block. | 
| private int | bytesPerChecksumthe number of bytes per checksum value | 
| private ChecksumType | checksumTypethe checksum type | 
| private Compression.Algorithm | compressAlgoCompression algorithm used | 
| private boolean | compressTagsWhether tags to be compressed or not | 
| private Encryption.Context | cryptoContextEncryption algorithm and key used | 
| static int | DEFAULT_BYTES_PER_CHECKSUM | 
| private DataBlockEncoding | encoding | 
| private long | fileCreateTime | 
| private boolean | includesMvccWhether mvcc is to be included in the Read/Write | 
| private boolean | includesTagsWhether tags are to be included in the Read/Write | 
| private boolean | usesHBaseChecksumWhether 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) | 
| 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
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 - 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–2019 The Apache Software Foundation. All rights reserved.