@InterfaceAudience.Public public interface ColumnFamilyDescriptor
ColumnFamilyDescriptorBuilder
methodsModifier and Type | Field and Description |
---|---|
static Bytes |
REPLICATION_SCOPE_BYTES |
Modifier and Type | Method and Description |
---|---|
int |
getBlocksize()
Returns The storefile/hfile blocksize for this column family.
|
BloomType |
getBloomFilterType()
Returns bloom filter type used for new StoreFiles in ColumnFamily
|
Compression.Algorithm |
getCompactionCompressionType()
Returns Compression type setting.
|
Compression.Algorithm |
getCompressionType()
Returns Compression type setting.
|
Map<String,String> |
getConfiguration()
Returns an unmodifiable map.
|
String |
getConfigurationValue(String key)
Returns accessing the configuration value by key.
|
DataBlockEncoding |
getDataBlockEncoding()
Returns the data block encoding algorithm used in block cache and optionally on disk
|
short |
getDFSReplication()
Returns replication factor set for this CF
|
byte[] |
getEncryptionKey()
Returns Return the raw crypto key attribute for the family, or null if not set
|
String |
getEncryptionType()
Returns Return the encryption algorithm in use by this family
|
MemoryCompactionPolicy |
getInMemoryCompaction()
Returns in-memory compaction policy if set for the cf.
|
KeepDeletedCells |
getKeepDeletedCells()
Returns return the KeepDeletedCells
|
Compression.Algorithm |
getMajorCompactionCompressionType()
Returns Compression type setting for major compactions.
|
int |
getMaxVersions()
Returns maximum number of versions
|
Compression.Algorithm |
getMinorCompactionCompressionType()
Returns Compression type setting for minor compactions.
|
int |
getMinVersions()
Returns The minimum number of versions to keep.
|
MobCompactPartitionPolicy |
getMobCompactPartitionPolicy()
Get the mob compact partition policy for this family n
|
long |
getMobThreshold()
Gets the mob threshold of the family.
|
byte[] |
getName()
Returns a copy of Name of this column family
|
String |
getNameAsString()
Returns Name of this column family
|
int |
getScope()
Returns the scope tag
|
String |
getStoragePolicy()
Not using
enum here because HDFS is not using enum for storage policy, see
org.apache.hadoop.hdfs.server.blockmanagement.BlockStoragePolicySuite for more details. |
int |
getTimeToLive()
Returns Time-to-live of cell contents, in seconds.
|
byte[] |
getValue(byte[] key)
Get a configuration value.
|
Bytes |
getValue(Bytes key)
Get a configuration value.
|
String |
getValue(String key)
Get a configuration value.
|
Map<Bytes,Bytes> |
getValues()
Get all configuration values.
|
boolean |
isBlockCacheEnabled()
Returns True if hfile DATA type blocks should be cached (You cannot disable caching of INDEX
and BLOOM type blocks).
|
boolean |
isCacheBloomsOnWrite()
Returns true if we should cache bloomfilter blocks on write
|
boolean |
isCacheDataOnWrite()
Returns true if we should cache data blocks on write
|
boolean |
isCacheIndexesOnWrite()
Returns true if we should cache index blocks on write
|
boolean |
isCompressTags()
Returns Whether KV tags should be compressed along with DataBlockEncoding.
|
boolean |
isEvictBlocksOnClose()
Returns true if we should evict cached blocks from the blockcache on close
|
boolean |
isInMemory()
Returns True if we are to favor keeping all values for this column family in the HRegionServer
cache.
|
boolean |
isMobEnabled()
Gets whether the mob is enabled for the family.
|
boolean |
isNewVersionBehavior()
By default, HBase only consider timestamp in versions.
|
boolean |
isPrefetchBlocksOnOpen()
Returns true if we should prefetch blocks into the blockcache on open
|
String |
toStringCustomizedValues()
Returns Column family descriptor with only the customized attributes.
|
static final Bytes REPLICATION_SCOPE_BYTES
int getBlocksize()
BloomType getBloomFilterType()
Compression.Algorithm getCompactionCompressionType()
Compression.Algorithm getMajorCompactionCompressionType()
Compression.Algorithm getMinorCompactionCompressionType()
Compression.Algorithm getCompressionType()
Map<String,String> getConfiguration()
String getConfigurationValue(String key)
short getDFSReplication()
DataBlockEncoding getDataBlockEncoding()
byte[] getEncryptionKey()
String getEncryptionType()
MemoryCompactionPolicy getInMemoryCompaction()
KeepDeletedCells getKeepDeletedCells()
int getMaxVersions()
int getMinVersions()
MobCompactPartitionPolicy getMobCompactPartitionPolicy()
long getMobThreshold()
byte[] getName()
String getNameAsString()
int getScope()
String getStoragePolicy()
enum
here because HDFS is not using enum
for storage policy, see
org.apache.hadoop.hdfs.server.blockmanagement.BlockStoragePolicySuite for more details.int getTimeToLive()
Bytes getValue(Bytes key)
key
- The key.String getValue(String key)
key
- The key.byte[] getValue(byte[] key)
key
- The key.Map<Bytes,Bytes> getValues()
boolean isBlockCacheEnabled()
boolean isCacheBloomsOnWrite()
boolean isCacheDataOnWrite()
boolean isCacheIndexesOnWrite()
boolean isCompressTags()
boolean isEvictBlocksOnClose()
boolean isInMemory()
boolean isMobEnabled()
boolean isPrefetchBlocksOnOpen()
String toStringCustomizedValues()
boolean isNewVersionBehavior()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.