Package | Description |
---|---|
org.apache.hadoop.hbase | |
org.apache.hadoop.hbase.client |
Provides HBase Client
|
org.apache.hadoop.hbase.io.encoding | |
org.apache.hadoop.hbase.io.hfile |
Provides implementations of
HFile and HFile
BlockCache . |
org.apache.hadoop.hbase.mapreduce |
Provides HBase MapReduce
Input/OutputFormats, a table indexing MapReduce job, and utility methods.
|
org.apache.hadoop.hbase.thrift2 |
Provides an HBase Thrift
service.
|
Modifier and Type | Method and Description |
---|---|
DataBlockEncoding |
HColumnDescriptor.getDataBlockEncoding()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
HColumnDescriptor |
HColumnDescriptor.setDataBlockEncoding(DataBlockEncoding value)
Deprecated.
Set data block encoding algorithm used in block cache.
|
Modifier and Type | Field and Description |
---|---|
static DataBlockEncoding |
ColumnFamilyDescriptorBuilder.DEFAULT_DATA_BLOCK_ENCODING
Default data block encoding algorithm.
|
Modifier and Type | Method and Description |
---|---|
DataBlockEncoding |
ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor.getDataBlockEncoding() |
DataBlockEncoding |
ColumnFamilyDescriptor.getDataBlockEncoding()
Returns the data block encoding algorithm used in block cache and optionally on disk
|
Modifier and Type | Method and Description |
---|---|
ColumnFamilyDescriptorBuilder |
ColumnFamilyDescriptorBuilder.setDataBlockEncoding(DataBlockEncoding value) |
ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor |
ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor.setDataBlockEncoding(DataBlockEncoding type)
Set data block encoding algorithm used in block cache.
|
Modifier and Type | Field and Description |
---|---|
private DataBlockEncoding |
EncodedDataBlock.encoding |
private DataBlockEncoding |
HFileBlockDefaultEncodingContext.encodingAlgo |
private static DataBlockEncoding[] |
DataBlockEncoding.idArray
Maps data block encoding ids to enum instances.
|
Modifier and Type | Method and Description |
---|---|
DataBlockEncoding |
HFileBlockEncodingContext.getDataBlockEncoding()
Returns the
DataBlockEncoding encoding used |
DataBlockEncoding |
HFileBlockDefaultEncodingContext.getDataBlockEncoding() |
static DataBlockEncoding |
DataBlockEncoding.getEncodingById(short dataBlockEncodingId) |
static DataBlockEncoding |
DataBlockEncoding.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataBlockEncoding[] |
DataBlockEncoding.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
HFileBlockEncodingContext |
DataBlockEncoder.newDataBlockEncodingContext(org.apache.hadoop.conf.Configuration conf,
DataBlockEncoding encoding,
byte[] headerBytes,
HFileContext meta)
Creates a encoder specific encoding context n * store configuration n * encoding strategy used
n * header bytes to be written, put a dummy header here if the header is unknown n * HFile meta
data
|
HFileBlockEncodingContext |
AbstractDataBlockEncoder.newDataBlockEncodingContext(org.apache.hadoop.conf.Configuration conf,
DataBlockEncoding encoding,
byte[] header,
HFileContext meta) |
Constructor and Description |
---|
EncodedDataBlock(org.apache.hadoop.conf.Configuration conf,
DataBlockEncoder dataBlockEncoder,
DataBlockEncoding encoding,
byte[] rawKVs,
HFileContext meta)
Create a buffer which will be encoded using dataBlockEncoder.
|
HFileBlockDefaultEncodingContext(org.apache.hadoop.conf.Configuration conf,
DataBlockEncoding encoding,
byte[] headerBytes,
HFileContext fileContext) |
Modifier and Type | Field and Description |
---|---|
private DataBlockEncoding |
HFileDataBlockEncoderImpl.encoding |
private DataBlockEncoding |
HFileContextBuilder.encoding |
private DataBlockEncoding |
HFileContext.encoding |
Modifier and Type | Method and Description |
---|---|
Map<DataBlockEncoding,Integer> |
LruBlockCache.getEncodingCountsForTest() |
Map<DataBlockEncoding,Integer> |
LruAdaptiveBlockCache.getEncodingCountsForTest() |
Modifier and Type | Method and Description |
---|---|
private HFileBlock |
HFileReaderImpl.getCachedBlock(BlockCacheKey cacheKey,
boolean cacheBlock,
boolean useLock,
boolean isCompaction,
boolean updateCacheMetrics,
BlockType expectedBlockType,
DataBlockEncoding expectedDataBlockEncoding)
Retrieve block from cache.
|
BlockWithScanInfo |
HFileBlockIndex.ByteArrayKeyBlockIndexReader.loadDataBlockWithScanInfo(Cell key,
HFileBlock currentBlock,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
DataBlockEncoding expectedDataBlockEncoding,
HFile.CachingBlockReader cachingBlockReader) |
BlockWithScanInfo |
HFileBlockIndex.CellBasedKeyBlockIndexReader.loadDataBlockWithScanInfo(Cell key,
HFileBlock currentBlock,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
DataBlockEncoding expectedDataBlockEncoding,
HFile.CachingBlockReader cachingBlockReader) |
abstract BlockWithScanInfo |
HFileBlockIndex.BlockIndexReader.loadDataBlockWithScanInfo(Cell key,
HFileBlock currentBlock,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
DataBlockEncoding expectedDataBlockEncoding,
HFile.CachingBlockReader cachingBlockReader)
Return the BlockWithScanInfo, a data structure which contains the Data HFileBlock with other
scan info such as the key that starts the next HFileBlock.
|
HFileBlock |
HFileReaderImpl.readBlock(long dataBlockOffset,
long onDiskBlockSize,
boolean cacheBlock,
boolean pread,
boolean isCompaction,
boolean updateCacheMetrics,
BlockType expectedBlockType,
DataBlockEncoding expectedDataBlockEncoding) |
HFileBlock |
HFile.CachingBlockReader.readBlock(long offset,
long onDiskBlockSize,
boolean cacheBlock,
boolean pread,
boolean isCompaction,
boolean updateCacheMetrics,
BlockType expectedBlockType,
DataBlockEncoding expectedDataBlockEncoding)
Read in a file block.
|
HFileBlock |
HFileBlockIndex.BlockIndexReader.seekToDataBlock(Cell key,
HFileBlock currentBlock,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
DataBlockEncoding expectedDataBlockEncoding,
HFile.CachingBlockReader cachingBlockReader)
Return the data block which contains this key.
|
HFileContextBuilder |
HFileContextBuilder.withDataBlockEncoding(DataBlockEncoding encoding) |
Constructor and Description |
---|
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) |
HFileDataBlockEncoderImpl(DataBlockEncoding encoding)
Do data block encoding with specified options.
|
Modifier and Type | Method and Description |
---|---|
(package private) static Map<byte[],DataBlockEncoding> |
HFileOutputFormat2.createFamilyDataBlockEncodingMap(org.apache.hadoop.conf.Configuration conf)
Runs inside the task to deserialize column family to data block encoding type map from the
configuration.
|
Modifier and Type | Method and Description |
---|---|
static DataBlockEncoding |
ThriftUtilities.dataBlockEncodingFromThrift(org.apache.hadoop.hbase.thrift2.generated.TDataBlockEncoding in) |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.thrift2.generated.TDataBlockEncoding |
ThriftUtilities.dataBlockEncodingFromHBase(DataBlockEncoding in) |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.