@InterfaceAudience.Public @Deprecated public class HColumnDescriptor extends Object implements ColumnFamilyDescriptor, Comparable<HColumnDescriptor>
Modifier and Type | Field and Description |
---|---|
static String |
BLOCKCACHE
Deprecated.
|
static String |
BLOCKSIZE
Deprecated.
|
static String |
BLOOMFILTER
Deprecated.
|
static String |
CACHE_BLOOMS_ON_WRITE
Deprecated.
|
static String |
CACHE_DATA_IN_L1
Deprecated.
|
static String |
CACHE_DATA_ON_WRITE
Deprecated.
|
static String |
CACHE_INDEX_ON_WRITE
Deprecated.
|
static String |
COMPRESS_TAGS
Deprecated.
|
static String |
COMPRESSION
Deprecated.
|
static String |
COMPRESSION_COMPACT
Deprecated.
|
static String |
DATA_BLOCK_ENCODING
Deprecated.
|
static boolean |
DEFAULT_BLOCKCACHE
Deprecated.
|
static int |
DEFAULT_BLOCKSIZE
Deprecated.
|
static String |
DEFAULT_BLOOMFILTER
Deprecated.
|
static boolean |
DEFAULT_CACHE_BLOOMS_ON_WRITE
Deprecated.
|
static boolean |
DEFAULT_CACHE_DATA_IN_L1
Deprecated.
|
static boolean |
DEFAULT_CACHE_DATA_ON_WRITE
Deprecated.
|
static boolean |
DEFAULT_CACHE_INDEX_ON_WRITE
Deprecated.
|
static boolean |
DEFAULT_COMPRESS_TAGS
Deprecated.
|
static String |
DEFAULT_COMPRESSION
Deprecated.
|
static String |
DEFAULT_DATA_BLOCK_ENCODING
Deprecated.
|
static short |
DEFAULT_DFS_REPLICATION
Deprecated.
|
static boolean |
DEFAULT_ENCODE_ON_DISK
Deprecated.
|
static boolean |
DEFAULT_EVICT_BLOCKS_ON_CLOSE
Deprecated.
|
static boolean |
DEFAULT_IN_MEMORY
Deprecated.
|
static KeepDeletedCells |
DEFAULT_KEEP_DELETED
Deprecated.
|
static int |
DEFAULT_MIN_VERSIONS
Deprecated.
|
static MobCompactPartitionPolicy |
DEFAULT_MOB_COMPACT_PARTITION_POLICY
Deprecated.
|
static long |
DEFAULT_MOB_THRESHOLD
Deprecated.
|
static boolean |
DEFAULT_NEW_VERSION_BEHAVIOR
Deprecated.
|
static boolean |
DEFAULT_PREFETCH_BLOCKS_ON_OPEN
Deprecated.
|
static int |
DEFAULT_REPLICATION_SCOPE
Deprecated.
|
static int |
DEFAULT_TTL
Deprecated.
|
static int |
DEFAULT_VERSIONS
Deprecated.
|
protected ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor |
delegatee
Deprecated.
|
static String |
DFS_REPLICATION
Deprecated.
|
static String |
ENCODE_ON_DISK
Deprecated.
|
static String |
ENCRYPTION
Deprecated.
|
static String |
ENCRYPTION_KEY
Deprecated.
|
static String |
EVICT_BLOCKS_ON_CLOSE
Deprecated.
|
static String |
FOREVER
Deprecated.
|
static String |
IN_MEMORY_COMPACTION
Deprecated.
|
static String |
IS_MOB
Deprecated.
|
static byte[] |
IS_MOB_BYTES
Deprecated.
|
static String |
KEEP_DELETED_CELLS
Deprecated.
|
static String |
LENGTH
Deprecated.
|
static String |
MIN_VERSIONS
Deprecated.
|
static String |
MOB_COMPACT_PARTITION_POLICY
Deprecated.
|
static byte[] |
MOB_COMPACT_PARTITION_POLICY_BYTES
Deprecated.
|
static String |
MOB_THRESHOLD
Deprecated.
|
static byte[] |
MOB_THRESHOLD_BYTES
Deprecated.
|
static String |
NEW_VERSION_BEHAVIOR
Deprecated.
|
static String |
PREFETCH_BLOCKS_ON_OPEN
Deprecated.
|
static String |
REPLICATION_SCOPE
Deprecated.
|
static byte[] |
REPLICATION_SCOPE_BYTES
Deprecated.
|
static String |
STORAGE_POLICY
Deprecated.
|
static String |
TTL
Deprecated.
|
COMPARATOR, COMPARATOR_IGNORE_REPLICATION
Modifier | Constructor and Description |
---|---|
|
HColumnDescriptor(byte[] familyName)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-18433).
Use
ColumnFamilyDescriptorBuilder.of(byte[]) . |
protected |
HColumnDescriptor(ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor delegate)
Deprecated.
|
|
HColumnDescriptor(HColumnDescriptor desc)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-18433).
Use
ColumnFamilyDescriptorBuilder.copy(ColumnFamilyDescriptor) . |
protected |
HColumnDescriptor(HColumnDescriptor desc,
boolean deepClone)
Deprecated.
|
|
HColumnDescriptor(String familyName)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-18433).
Use
ColumnFamilyDescriptorBuilder.of(String) . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HColumnDescriptor other)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
int |
getBlocksize()
Deprecated.
|
BloomType |
getBloomFilterType()
Deprecated.
|
Compression.Algorithm |
getCompactionCompression()
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13655).
Use
getCompactionCompressionType() . |
Compression.Algorithm |
getCompactionCompressionType()
Deprecated.
|
Compression.Algorithm |
getCompression()
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13655).
Use
getCompressionType() . |
Compression.Algorithm |
getCompressionType()
Deprecated.
|
Map<String,String> |
getConfiguration()
Deprecated.
|
String |
getConfigurationValue(String key)
Deprecated.
|
DataBlockEncoding |
getDataBlockEncoding()
Deprecated.
|
static Map<String,String> |
getDefaultValues()
Deprecated.
|
protected ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor |
getDelegateeForModification()
Deprecated.
|
short |
getDFSReplication()
Deprecated.
|
byte[] |
getEncryptionKey()
Deprecated.
|
String |
getEncryptionType()
Deprecated.
|
MemoryCompactionPolicy |
getInMemoryCompaction()
Deprecated.
|
KeepDeletedCells |
getKeepDeletedCells()
Deprecated.
|
int |
getMaxVersions()
Deprecated.
|
int |
getMinVersions()
Deprecated.
|
MobCompactPartitionPolicy |
getMobCompactPartitionPolicy()
Deprecated.
Get the mob compact partition policy for this family
|
long |
getMobThreshold()
Deprecated.
Gets the mob threshold of the family.
|
byte[] |
getName()
Deprecated.
|
String |
getNameAsString()
Deprecated.
|
int |
getScope()
Deprecated.
|
String |
getStoragePolicy()
Deprecated.
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()
Deprecated.
|
static PrettyPrinter.Unit |
getUnit(String key)
Deprecated.
|
byte[] |
getValue(byte[] key)
Deprecated.
|
Bytes |
getValue(Bytes key)
Deprecated.
|
String |
getValue(String key)
Deprecated.
|
Map<Bytes,Bytes> |
getValues()
Deprecated.
It clone all bytes of all elements.
|
int |
hashCode()
Deprecated.
|
boolean |
isBlockCacheEnabled()
Deprecated.
|
boolean |
isCacheBloomsOnWrite()
Deprecated.
|
boolean |
isCacheDataOnWrite()
Deprecated.
|
boolean |
isCacheIndexesOnWrite()
Deprecated.
|
boolean |
isCompressTags()
Deprecated.
|
boolean |
isEvictBlocksOnClose()
Deprecated.
|
boolean |
isInMemory()
Deprecated.
|
static byte[] |
isLegalFamilyName(byte[] b)
Deprecated.
since 2.0.0 and will be removed in 3.0.0. Use
ColumnFamilyDescriptorBuilder.isLegalColumnFamilyName(byte[]) instead. |
boolean |
isMobEnabled()
Deprecated.
Gets whether the mob is enabled for the family.
|
boolean |
isNewVersionBehavior()
Deprecated.
By default, HBase only consider timestamp in versions.
|
boolean |
isPrefetchBlocksOnOpen()
Deprecated.
|
static HColumnDescriptor |
parseFrom(byte[] bytes)
Deprecated.
|
void |
remove(byte[] key)
Deprecated.
|
void |
removeConfiguration(String key)
Deprecated.
Remove a configuration setting represented by the key.
|
HColumnDescriptor |
setBlockCacheEnabled(boolean value)
Deprecated.
|
HColumnDescriptor |
setBlocksize(int value)
Deprecated.
|
HColumnDescriptor |
setBloomFilterType(BloomType value)
Deprecated.
|
HColumnDescriptor |
setCacheBloomsOnWrite(boolean value)
Deprecated.
|
HColumnDescriptor |
setCacheDataInL1(boolean value)
Deprecated.
Since 2.0 and will be removed in 3.0 with out any replacement. Caching data in on
heap Cache, when there are both on heap LRU Cache and Bucket Cache will no longer
be supported from 2.0.
|
HColumnDescriptor |
setCacheDataOnWrite(boolean value)
Deprecated.
|
HColumnDescriptor |
setCacheIndexesOnWrite(boolean value)
Deprecated.
|
HColumnDescriptor |
setCompactionCompressionType(Compression.Algorithm value)
Deprecated.
Compression types supported in hbase.
|
HColumnDescriptor |
setCompressionType(Compression.Algorithm value)
Deprecated.
Compression types supported in hbase.
|
HColumnDescriptor |
setCompressTags(boolean value)
Deprecated.
Set whether the tags should be compressed along with DataBlockEncoding.
|
HColumnDescriptor |
setConfiguration(String key,
String value)
Deprecated.
Setter for storing a configuration setting.
|
HColumnDescriptor |
setDataBlockEncoding(DataBlockEncoding value)
Deprecated.
Set data block encoding algorithm used in block cache.
|
HColumnDescriptor |
setDFSReplication(short value)
Deprecated.
Set the replication factor to hfile(s) belonging to this family
|
HColumnDescriptor |
setEncryptionKey(byte[] value)
Deprecated.
Set the raw crypto key attribute for the family
|
HColumnDescriptor |
setEncryptionType(String value)
Deprecated.
Set the encryption algorithm for use with this family
|
HColumnDescriptor |
setEvictBlocksOnClose(boolean value)
Deprecated.
|
HColumnDescriptor |
setInMemory(boolean value)
Deprecated.
|
HColumnDescriptor |
setInMemoryCompaction(MemoryCompactionPolicy value)
Deprecated.
|
HColumnDescriptor |
setKeepDeletedCells(KeepDeletedCells value)
Deprecated.
|
HColumnDescriptor |
setMaxVersions(int value)
Deprecated.
|
HColumnDescriptor |
setMinVersions(int value)
Deprecated.
|
HColumnDescriptor |
setMobCompactPartitionPolicy(MobCompactPartitionPolicy value)
Deprecated.
Set the mob compact partition policy for the family.
|
HColumnDescriptor |
setMobEnabled(boolean value)
Deprecated.
Enables the mob for the family.
|
HColumnDescriptor |
setMobThreshold(long value)
Deprecated.
Sets the mob threshold of the family.
|
HColumnDescriptor |
setNewVersionBehavior(boolean newVersionBehavior)
Deprecated.
|
HColumnDescriptor |
setPrefetchBlocksOnOpen(boolean value)
Deprecated.
|
HColumnDescriptor |
setScope(int value)
Deprecated.
|
HColumnDescriptor |
setStoragePolicy(String value)
Deprecated.
Set the storage policy for use with this family
|
HColumnDescriptor |
setTimeToLive(int value)
Deprecated.
|
HColumnDescriptor |
setTimeToLive(String value)
Deprecated.
|
HColumnDescriptor |
setValue(byte[] key,
byte[] value)
Deprecated.
|
HColumnDescriptor |
setValue(String key,
String value)
Deprecated.
|
HColumnDescriptor |
setVersions(int minVersions,
int maxVersions)
Deprecated.
Set minimum and maximum versions to keep
|
byte[] |
toByteArray()
Deprecated.
|
String |
toString()
Deprecated.
|
String |
toStringCustomizedValues()
Deprecated.
|
public static final String IN_MEMORY_COMPACTION
public static final String COMPRESSION
public static final String COMPRESSION_COMPACT
public static final String ENCODE_ON_DISK
public static final String DATA_BLOCK_ENCODING
public static final String BLOCKCACHE
public static final String CACHE_DATA_ON_WRITE
public static final String CACHE_INDEX_ON_WRITE
public static final String CACHE_BLOOMS_ON_WRITE
public static final String EVICT_BLOCKS_ON_CLOSE
public static final String CACHE_DATA_IN_L1
public static final String PREFETCH_BLOCKS_ON_OPEN
public static final String BLOCKSIZE
public static final String LENGTH
public static final String TTL
public static final String BLOOMFILTER
public static final String FOREVER
public static final String REPLICATION_SCOPE
public static final byte[] REPLICATION_SCOPE_BYTES
public static final String MIN_VERSIONS
public static final String KEEP_DELETED_CELLS
public static final String COMPRESS_TAGS
public static final String ENCRYPTION
public static final String ENCRYPTION_KEY
public static final String IS_MOB
public static final byte[] IS_MOB_BYTES
public static final String MOB_THRESHOLD
public static final byte[] MOB_THRESHOLD_BYTES
public static final long DEFAULT_MOB_THRESHOLD
public static final String MOB_COMPACT_PARTITION_POLICY
public static final byte[] MOB_COMPACT_PARTITION_POLICY_BYTES
public static final MobCompactPartitionPolicy DEFAULT_MOB_COMPACT_PARTITION_POLICY
public static final String DFS_REPLICATION
public static final short DEFAULT_DFS_REPLICATION
public static final String STORAGE_POLICY
public static final String DEFAULT_COMPRESSION
public static final boolean DEFAULT_ENCODE_ON_DISK
public static final String DEFAULT_DATA_BLOCK_ENCODING
public static final int DEFAULT_VERSIONS
public static final int DEFAULT_MIN_VERSIONS
public static final boolean DEFAULT_IN_MEMORY
public static final KeepDeletedCells DEFAULT_KEEP_DELETED
public static final boolean DEFAULT_BLOCKCACHE
public static final boolean DEFAULT_CACHE_DATA_ON_WRITE
public static final boolean DEFAULT_CACHE_DATA_IN_L1
public static final boolean DEFAULT_CACHE_INDEX_ON_WRITE
public static final int DEFAULT_BLOCKSIZE
public static final String DEFAULT_BLOOMFILTER
public static final boolean DEFAULT_CACHE_BLOOMS_ON_WRITE
public static final int DEFAULT_TTL
public static final int DEFAULT_REPLICATION_SCOPE
public static final boolean DEFAULT_EVICT_BLOCKS_ON_CLOSE
public static final boolean DEFAULT_COMPRESS_TAGS
public static final boolean DEFAULT_PREFETCH_BLOCKS_ON_OPEN
public static final String NEW_VERSION_BEHAVIOR
public static final boolean DEFAULT_NEW_VERSION_BEHAVIOR
protected final ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor delegatee
@Deprecated public HColumnDescriptor(String familyName)
ColumnFamilyDescriptorBuilder.of(String)
.familyName
- Column family name. Must be 'printable' -- digit or
letter -- and may not contain a :
@Deprecated public HColumnDescriptor(byte[] familyName)
ColumnFamilyDescriptorBuilder.of(byte[])
.familyName
- Column family name. Must be 'printable' -- digit or
letter -- and may not contain a :
@Deprecated public HColumnDescriptor(HColumnDescriptor desc)
ColumnFamilyDescriptorBuilder.copy(ColumnFamilyDescriptor)
.desc
- The descriptor.protected HColumnDescriptor(HColumnDescriptor desc, boolean deepClone)
protected HColumnDescriptor(ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor delegate)
@Deprecated public static byte[] isLegalFamilyName(byte[] b)
ColumnFamilyDescriptorBuilder.isLegalColumnFamilyName(byte[])
instead.b
- Family name.b
IllegalArgumentException
- If not null and not a legitimate family
name: i.e. 'printable' and ends in a ':' (Null passes are allowed because
b
can be null when deserializing). Cannot start with a '.'
either. Also Family can not be an empty value or equal "recovered.edits".ColumnFamilyDescriptorBuilder.isLegalColumnFamilyName(byte[])
,
HBASE-18008public byte[] getName()
getName
in interface ColumnFamilyDescriptor
public String getNameAsString()
getNameAsString
in interface ColumnFamilyDescriptor
public byte[] getValue(byte[] key)
getValue
in interface ColumnFamilyDescriptor
key
- The key.public String getValue(String key)
key
- The key.public Map<Bytes,Bytes> getValues()
ColumnFamilyDescriptor
getValues
in interface ColumnFamilyDescriptor
public HColumnDescriptor setValue(byte[] key, byte[] value)
key
- The key.value
- The value.public void remove(byte[] key)
key
- Key whose key and value we're to remove from HCD parameters.public HColumnDescriptor setValue(String key, String value)
key
- The key.value
- The value.@Deprecated public Compression.Algorithm getCompression()
getCompressionType()
.@Deprecated public Compression.Algorithm getCompactionCompression()
getCompactionCompressionType()
.public int getMaxVersions()
getMaxVersions
in interface ColumnFamilyDescriptor
public HColumnDescriptor setMaxVersions(int value)
value
- maximum number of versionspublic HColumnDescriptor setVersions(int minVersions, int maxVersions)
minVersions
- minimal number of versionsmaxVersions
- maximum number of versionspublic int getBlocksize()
getBlocksize
in interface ColumnFamilyDescriptor
public HColumnDescriptor setBlocksize(int value)
value
- Blocksize to use when writing out storefiles/hfiles on this
column family.public Compression.Algorithm getCompressionType()
getCompressionType
in interface ColumnFamilyDescriptor
public HColumnDescriptor setCompressionType(Compression.Algorithm value)
value
- Compression type setting.public DataBlockEncoding getDataBlockEncoding()
getDataBlockEncoding
in interface ColumnFamilyDescriptor
public HColumnDescriptor setDataBlockEncoding(DataBlockEncoding value)
value
- What kind of data block encoding will be used.public HColumnDescriptor setCompressTags(boolean value)
value
- public boolean isCompressTags()
isCompressTags
in interface ColumnFamilyDescriptor
public Compression.Algorithm getCompactionCompressionType()
getCompactionCompressionType
in interface ColumnFamilyDescriptor
public HColumnDescriptor setCompactionCompressionType(Compression.Algorithm value)
value
- Compression type setting.public boolean isInMemory()
isInMemory
in interface ColumnFamilyDescriptor
public HColumnDescriptor setInMemory(boolean value)
value
- True if we are to favor keeping all values for this column family in the
HRegionServer cachepublic MemoryCompactionPolicy getInMemoryCompaction()
getInMemoryCompaction
in interface ColumnFamilyDescriptor
public HColumnDescriptor setInMemoryCompaction(MemoryCompactionPolicy value)
value
- the prefered in-memory compaction policy
for this column familypublic KeepDeletedCells getKeepDeletedCells()
getKeepDeletedCells
in interface ColumnFamilyDescriptor
public HColumnDescriptor setKeepDeletedCells(KeepDeletedCells value)
value
- True if deleted rows should not be collected
immediately.public boolean isNewVersionBehavior()
isNewVersionBehavior
in interface ColumnFamilyDescriptor
public HColumnDescriptor setNewVersionBehavior(boolean newVersionBehavior)
public int getTimeToLive()
getTimeToLive
in interface ColumnFamilyDescriptor
public HColumnDescriptor setTimeToLive(int value)
value
- Time-to-live of cell contents, in seconds.public HColumnDescriptor setTimeToLive(String value) throws HBaseException
value
- Time to live of cell contents, in human readable formatHBaseException
PrettyPrinter.format(String, Unit)
public int getMinVersions()
getMinVersions
in interface ColumnFamilyDescriptor
public HColumnDescriptor setMinVersions(int value)
value
- The minimum number of versions to keep.
(used when timeToLive is set)public boolean isBlockCacheEnabled()
isBlockCacheEnabled
in interface ColumnFamilyDescriptor
public HColumnDescriptor setBlockCacheEnabled(boolean value)
value
- True if hfile DATA type blocks should be cached (We always cache
INDEX and BLOOM blocks; you cannot turn this off).public BloomType getBloomFilterType()
getBloomFilterType
in interface ColumnFamilyDescriptor
public HColumnDescriptor setBloomFilterType(BloomType value)
value
- bloom filter typepublic int getScope()
getScope
in interface ColumnFamilyDescriptor
public HColumnDescriptor setScope(int value)
value
- the scope tagpublic boolean isCacheDataOnWrite()
isCacheDataOnWrite
in interface ColumnFamilyDescriptor
public HColumnDescriptor setCacheDataOnWrite(boolean value)
value
- true if we should cache data blocks on write@Deprecated public HColumnDescriptor setCacheDataInL1(boolean value)
public boolean isCacheIndexesOnWrite()
isCacheIndexesOnWrite
in interface ColumnFamilyDescriptor
public HColumnDescriptor setCacheIndexesOnWrite(boolean value)
value
- true if we should cache index blocks on writepublic boolean isCacheBloomsOnWrite()
isCacheBloomsOnWrite
in interface ColumnFamilyDescriptor
public HColumnDescriptor setCacheBloomsOnWrite(boolean value)
value
- true if we should cache bloomfilter blocks on writepublic boolean isEvictBlocksOnClose()
isEvictBlocksOnClose
in interface ColumnFamilyDescriptor
public HColumnDescriptor setEvictBlocksOnClose(boolean value)
value
- true if we should evict cached blocks from the blockcache on
closepublic boolean isPrefetchBlocksOnOpen()
isPrefetchBlocksOnOpen
in interface ColumnFamilyDescriptor
public HColumnDescriptor setPrefetchBlocksOnOpen(boolean value)
value
- true if we should prefetch blocks into the blockcache on openpublic String toString()
toString
in class Object
Object.toString()
public String toStringCustomizedValues()
toStringCustomizedValues
in interface ColumnFamilyDescriptor
public static PrettyPrinter.Unit getUnit(String key)
public static Map<String,String> getDefaultValues()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public int compareTo(HColumnDescriptor other)
compareTo
in interface Comparable<HColumnDescriptor>
public byte[] toByteArray()
parseFrom(byte[])
public static HColumnDescriptor parseFrom(byte[] bytes) throws DeserializationException
bytes
- A pb serialized HColumnDescriptor
instance with pb magic prefixHColumnDescriptor
made from bytes
DeserializationException
toByteArray()
public String getConfigurationValue(String key)
getConfigurationValue
in interface ColumnFamilyDescriptor
key
- the key whose associated value is to be returnedpublic Map<String,String> getConfiguration()
getConfiguration
in interface ColumnFamilyDescriptor
public HColumnDescriptor setConfiguration(String key, String value)
key
- Config key. Same as XML config key e.g. hbase.something.or.other.value
- String value. If null, removes the configuration.public void removeConfiguration(String key)
public String getEncryptionType()
getEncryptionType
in interface ColumnFamilyDescriptor
public HColumnDescriptor setEncryptionType(String value)
value
- public byte[] getEncryptionKey()
getEncryptionKey
in interface ColumnFamilyDescriptor
public HColumnDescriptor setEncryptionKey(byte[] value)
public long getMobThreshold()
ColumnFamilyDescriptor
getMobThreshold
in interface ColumnFamilyDescriptor
public HColumnDescriptor setMobThreshold(long value)
value
- The mob threshold.public boolean isMobEnabled()
ColumnFamilyDescriptor
isMobEnabled
in interface ColumnFamilyDescriptor
public HColumnDescriptor setMobEnabled(boolean value)
value
- Whether to enable the mob for the family.public MobCompactPartitionPolicy getMobCompactPartitionPolicy()
ColumnFamilyDescriptor
getMobCompactPartitionPolicy
in interface ColumnFamilyDescriptor
public HColumnDescriptor setMobCompactPartitionPolicy(MobCompactPartitionPolicy value)
value
- policy typepublic short getDFSReplication()
getDFSReplication
in interface ColumnFamilyDescriptor
public HColumnDescriptor setDFSReplication(short value)
value
- number of replicas the blocks(s) belonging to this CF should have, or
DEFAULT_DFS_REPLICATION
for the default replication factor set in the
filesystempublic String getStoragePolicy()
ColumnFamilyDescriptor
enum
here because HDFS is not using enum
for storage policy, see
org.apache.hadoop.hdfs.server.blockmanagement.BlockStoragePolicySuite for more details.getStoragePolicy
in interface ColumnFamilyDescriptor
public HColumnDescriptor setStoragePolicy(String value)
value
- the policy to set, valid setting includes: "LAZY_PERSIST",
"ALL_SSD", "ONE_SSD", "HOT", "WARM", "COLD"public Bytes getValue(Bytes key)
getValue
in interface ColumnFamilyDescriptor
key
- The key.protected ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor getDelegateeForModification()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.