@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 |
COMPRESSION_COMPACT_MAJOR
Deprecated.
|
static String |
COMPRESSION_COMPACT_MINOR
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.
Returns The storefile/hfile blocksize for this column family.
|
BloomType |
getBloomFilterType()
Deprecated.
Returns bloom filter type used for new StoreFiles in ColumnFamily
|
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.
Returns Compression type setting.
|
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.
Returns Compression type setting.
|
Map<String,String> |
getConfiguration()
Deprecated.
Returns an unmodifiable map.
|
String |
getConfigurationValue(String key)
Deprecated.
Returns accessing the configuration value by key.
|
DataBlockEncoding |
getDataBlockEncoding()
Deprecated.
Returns the data block encoding algorithm used in block cache and optionally on disk
|
static Map<String,String> |
getDefaultValues()
Deprecated.
|
protected ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor |
getDelegateeForModification()
Deprecated.
|
short |
getDFSReplication()
Deprecated.
Returns replication factor set for this CF
|
byte[] |
getEncryptionKey()
Deprecated.
Returns Return the raw crypto key attribute for the family, or null if not set
|
String |
getEncryptionType()
Deprecated.
Returns Return the encryption algorithm in use by this family
|
MemoryCompactionPolicy |
getInMemoryCompaction()
Deprecated.
Returns in-memory compaction policy if set for the cf.
|
KeepDeletedCells |
getKeepDeletedCells()
Deprecated.
Returns return the KeepDeletedCells
|
Compression.Algorithm |
getMajorCompactionCompressionType()
Deprecated.
Returns Compression type setting for major compactions.
|
int |
getMaxVersions()
Deprecated.
Returns maximum number of versions
|
Compression.Algorithm |
getMinorCompactionCompressionType()
Deprecated.
Returns Compression type setting for minor compactions.
|
int |
getMinVersions()
Deprecated.
Returns The minimum number of versions to keep.
|
MobCompactPartitionPolicy |
getMobCompactPartitionPolicy()
Deprecated.
Get the mob compact partition policy for this family n
|
long |
getMobThreshold()
Deprecated.
Gets the mob threshold of the family.
|
byte[] |
getName()
Deprecated.
Returns Name of this column family
|
String |
getNameAsString()
Deprecated.
Returns The name string of this column family
|
int |
getScope()
Deprecated.
Returns the scope tag
|
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.
Returns Time-to-live of cell contents, in seconds.
|
static PrettyPrinter.Unit |
getUnit(String key)
Deprecated.
|
byte[] |
getValue(byte[] key)
Deprecated.
Get a configuration value.
|
Bytes |
getValue(Bytes key)
Deprecated.
Get a configuration value.
|
String |
getValue(String key)
Deprecated.
Get a configuration value.
|
Map<Bytes,Bytes> |
getValues()
Deprecated.
Get all configuration values.
|
int |
hashCode()
Deprecated.
|
boolean |
isBlockCacheEnabled()
Deprecated.
Returns True if hfile DATA type blocks should be cached (You cannot disable caching of INDEX
and BLOOM type blocks).
|
boolean |
isCacheBloomsOnWrite()
Deprecated.
Returns true if we should cache bloomfilter blocks on write
|
boolean |
isCacheDataOnWrite()
Deprecated.
Returns true if we should cache data blocks on write
|
boolean |
isCacheIndexesOnWrite()
Deprecated.
Returns true if we should cache index blocks on write
|
boolean |
isCompressTags()
Deprecated.
Returns Whether KV tags should be compressed along with DataBlockEncoding.
|
boolean |
isEvictBlocksOnClose()
Deprecated.
Returns true if we should evict cached blocks from the blockcache on close
|
boolean |
isInMemory()
Deprecated.
Returns True if we are to favor keeping all values for this column family in the HRegionServer
cache.
|
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.
Returns true if we should prefetch blocks into the blockcache on open
|
static HColumnDescriptor |
parseFrom(byte[] bytes)
Deprecated.
Parse a serialized representation of a
HColumnDescriptor |
void |
remove(byte[] key)
Deprecated.
|
void |
removeConfiguration(String key)
Deprecated.
Remove a configuration setting represented by the key.
|
HColumnDescriptor |
setBlockCacheEnabled(boolean value)
Deprecated.
Set or clear the block cache enabled flag.
|
HColumnDescriptor |
setBlocksize(int value)
Deprecated.
Set block size to use when writing
|
HColumnDescriptor |
setBlocksize(String value)
Deprecated.
|
HColumnDescriptor |
setBloomFilterType(BloomType value)
Deprecated.
Set the bloom filter type.
|
HColumnDescriptor |
setCacheBloomsOnWrite(boolean value)
Deprecated.
Set or clear the cache bloom filters on write flag.
|
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.
Set or clear the cache data on write flag.
|
HColumnDescriptor |
setCacheIndexesOnWrite(boolean value)
Deprecated.
Set or clear the cache indexes on write flag.
|
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 n
|
HColumnDescriptor |
setEvictBlocksOnClose(boolean value)
Deprecated.
Set or clear the evict bloom filters on close flag.
|
HColumnDescriptor |
setInMemory(boolean value)
Deprecated.
Set or clear the in memory flag.
|
HColumnDescriptor |
setInMemoryCompaction(MemoryCompactionPolicy value)
Deprecated.
Set the in memory compaction policy.
|
HColumnDescriptor |
setKeepDeletedCells(KeepDeletedCells value)
Deprecated.
Set the keep deleted cells policy.
|
HColumnDescriptor |
setMajorCompactionCompressionType(Compression.Algorithm value)
Deprecated.
|
HColumnDescriptor |
setMaxVersions(int value)
Deprecated.
Set maximum versions to keep
|
HColumnDescriptor |
setMinorCompactionCompressionType(Compression.Algorithm value)
Deprecated.
|
HColumnDescriptor |
setMinVersions(int value)
Deprecated.
Set the minimum number of versions to keep.
|
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.
Set or clear the prefetch on open flag.
|
HColumnDescriptor |
setScope(int value)
Deprecated.
|
HColumnDescriptor |
setStoragePolicy(String value)
Deprecated.
Set the storage policy for use with this family
|
HColumnDescriptor |
setTimeToLive(int value)
Deprecated.
Set the time to live of cell contents
|
HColumnDescriptor |
setTimeToLive(String value)
Deprecated.
Set the time to live of cell contents
|
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.
Returns This instance serialized with pb with pb magic prefix
|
String |
toString()
Deprecated.
|
String |
toStringCustomizedValues()
Deprecated.
Returns Column family descriptor with only the customized attributes.
|
public static final String IN_MEMORY_COMPACTION
public static final String COMPRESSION
public static final String COMPRESSION_COMPACT
public static final String COMPRESSION_COMPACT_MAJOR
public static final String COMPRESSION_COMPACT_MINOR
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)
ColumnFamilyDescriptor
getValue
in interface ColumnFamilyDescriptor
key
- The key.public String getValue(String key)
ColumnFamilyDescriptor
getValue
in interface ColumnFamilyDescriptor
key
- The key.public Map<Bytes,Bytes> getValues()
ColumnFamilyDescriptor
getValues
in interface ColumnFamilyDescriptor
public HColumnDescriptor setValue(byte[] key, byte[] value)
public void remove(byte[] key)
public HColumnDescriptor setValue(String key, String value)
@Deprecated public Compression.Algorithm getCompression()
getCompressionType()
.@Deprecated public Compression.Algorithm getCompactionCompression()
getCompactionCompressionType()
.public int getMaxVersions()
ColumnFamilyDescriptor
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()
ColumnFamilyDescriptor
getBlocksize
in interface ColumnFamilyDescriptor
public HColumnDescriptor setBlocksize(int value)
value
- Blocksize to use when writing out storefiles/hfiles on this column family.public HColumnDescriptor setBlocksize(String value) throws HBaseException
HBaseException
public Compression.Algorithm getCompressionType()
ColumnFamilyDescriptor
getCompressionType
in interface ColumnFamilyDescriptor
public HColumnDescriptor setCompressionType(Compression.Algorithm value)
value
- Compression type setting.public DataBlockEncoding getDataBlockEncoding()
ColumnFamilyDescriptor
getDataBlockEncoding
in interface ColumnFamilyDescriptor
public HColumnDescriptor setDataBlockEncoding(DataBlockEncoding value)
value
- What kind of data block encoding will be used.public HColumnDescriptor setCompressTags(boolean value)
public boolean isCompressTags()
ColumnFamilyDescriptor
isCompressTags
in interface ColumnFamilyDescriptor
public Compression.Algorithm getCompactionCompressionType()
ColumnFamilyDescriptor
getCompactionCompressionType
in interface ColumnFamilyDescriptor
public Compression.Algorithm getMajorCompactionCompressionType()
ColumnFamilyDescriptor
getMajorCompactionCompressionType
in interface ColumnFamilyDescriptor
public Compression.Algorithm getMinorCompactionCompressionType()
ColumnFamilyDescriptor
getMinorCompactionCompressionType
in interface ColumnFamilyDescriptor
public HColumnDescriptor setCompactionCompressionType(Compression.Algorithm value)
value
- Compression type setting.public HColumnDescriptor setMajorCompactionCompressionType(Compression.Algorithm value)
public HColumnDescriptor setMinorCompactionCompressionType(Compression.Algorithm value)
public boolean isInMemory()
ColumnFamilyDescriptor
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()
ColumnFamilyDescriptor
getInMemoryCompaction
in interface ColumnFamilyDescriptor
public HColumnDescriptor setInMemoryCompaction(MemoryCompactionPolicy value)
value
- the prefered in-memory compaction policy for this column familypublic KeepDeletedCells getKeepDeletedCells()
ColumnFamilyDescriptor
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()
ColumnFamilyDescriptor
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()
ColumnFamilyDescriptor
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()
ColumnFamilyDescriptor
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()
ColumnFamilyDescriptor
getBloomFilterType
in interface ColumnFamilyDescriptor
public HColumnDescriptor setBloomFilterType(BloomType value)
value
- bloom filter typepublic int getScope()
ColumnFamilyDescriptor
getScope
in interface ColumnFamilyDescriptor
public HColumnDescriptor setScope(int value)
public boolean isCacheDataOnWrite()
ColumnFamilyDescriptor
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()
ColumnFamilyDescriptor
isCacheIndexesOnWrite
in interface ColumnFamilyDescriptor
public HColumnDescriptor setCacheIndexesOnWrite(boolean value)
value
- true if we should cache index blocks on writepublic boolean isCacheBloomsOnWrite()
ColumnFamilyDescriptor
isCacheBloomsOnWrite
in interface ColumnFamilyDescriptor
public HColumnDescriptor setCacheBloomsOnWrite(boolean value)
value
- true if we should cache bloomfilter blocks on writepublic boolean isEvictBlocksOnClose()
ColumnFamilyDescriptor
isEvictBlocksOnClose
in interface ColumnFamilyDescriptor
public HColumnDescriptor setEvictBlocksOnClose(boolean value)
value
- true if we should evict cached blocks from the blockcache on closepublic boolean isPrefetchBlocksOnOpen()
ColumnFamilyDescriptor
isPrefetchBlocksOnOpen
in interface ColumnFamilyDescriptor
public HColumnDescriptor setPrefetchBlocksOnOpen(boolean value)
value
- true if we should prefetch blocks into the blockcache on openpublic String toStringCustomizedValues()
toStringCustomizedValues
in interface ColumnFamilyDescriptor
public static PrettyPrinter.Unit getUnit(String key)
public static Map<String,String> getDefaultValues()
public int compareTo(HColumnDescriptor other)
compareTo
in interface Comparable<HColumnDescriptor>
public byte[] toByteArray()
parseFrom(byte[])
public static HColumnDescriptor parseFrom(byte[] bytes) throws DeserializationException
HColumnDescriptor
bytes
- A pb serialized HColumnDescriptor
instance with pb magic prefixHColumnDescriptor
made from bytes
n * @see
#toByteArray()DeserializationException
public String getConfigurationValue(String key)
ColumnFamilyDescriptor
getConfigurationValue
in interface ColumnFamilyDescriptor
public Map<String,String> getConfiguration()
ColumnFamilyDescriptor
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()
ColumnFamilyDescriptor
getEncryptionType
in interface ColumnFamilyDescriptor
public HColumnDescriptor setEncryptionType(String value)
public byte[] getEncryptionKey()
ColumnFamilyDescriptor
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()
ColumnFamilyDescriptor
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)
ColumnFamilyDescriptor
getValue
in interface ColumnFamilyDescriptor
key
- The key.protected ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor getDelegateeForModification()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.