Package org.apache.hadoop.hbase
Class HColumnDescriptor
java.lang.Object
org.apache.hadoop.hbase.HColumnDescriptor
- All Implemented Interfaces:
Comparable<HColumnDescriptor>
,ColumnFamilyDescriptor
- Direct Known Subclasses:
ImmutableHColumnDescriptor
@Public
@Deprecated
public class HColumnDescriptor
extends Object
implements ColumnFamilyDescriptor, Comparable<HColumnDescriptor>
Deprecated.
An HColumnDescriptor contains information about a column family such as the number of versions,
compression settings, etc. It is used as input when creating a table or adding a column.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final boolean
Deprecated.static final int
Deprecated.static final String
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final String
Deprecated.static final String
Deprecated.static final short
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final KeepDeletedCells
Deprecated.static final int
Deprecated.static final MobCompactPartitionPolicy
Deprecated.static final long
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.protected final ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final byte[]
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final byte[]
Deprecated.static final String
Deprecated.static final byte[]
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final byte[]
Deprecated.static final String
Deprecated.static final String
Deprecated.Fields inherited from interface org.apache.hadoop.hbase.client.ColumnFamilyDescriptor
COMPARATOR, COMPARATOR_IGNORE_REPLICATION
-
Constructor Summary
ModifierConstructorDescriptionHColumnDescriptor
(byte[] familyName) Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-18433).HColumnDescriptor
(String familyName) Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-18433).protected
Deprecated.Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-18433).protected
HColumnDescriptor
(HColumnDescriptor desc, boolean deepClone) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(HColumnDescriptor other) Deprecated.boolean
Deprecated.int
Deprecated.Returns The storefile/hfile blocksize for this column family.Deprecated.Returns bloom filter type used for new StoreFiles in ColumnFamilyDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-13655).Deprecated.Returns Compression type setting.Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-13655).Deprecated.Returns Compression type setting.Deprecated.Returns an unmodifiable map.Deprecated.Returns accessing the configuration value by key.Deprecated.Returns the data block encoding algorithm used in block cache and optionally on diskDeprecated.Deprecated.short
Deprecated.Returns replication factor set for this CFbyte[]
Deprecated.Returns Return the raw crypto key attribute for the family, or null if not setDeprecated.Returns Return the encryption algorithm in use by this familyDeprecated.Return the index block encoding algorithm used in block cache and optionally on diskDeprecated.Returns in-memory compaction policy if set for the cf.Deprecated.Returns return the KeepDeletedCellsDeprecated.Returns Compression type setting for major compactions.int
Deprecated.Returns maximum number of versionsDeprecated.Returns Compression type setting for minor compactions.int
Deprecated.Returns The minimum number of versions to keep.Deprecated.Get the mob compact partition policy for this familylong
Deprecated.Gets the mob threshold of the family.byte[]
getName()
Deprecated.Returns Name of this column familyDeprecated.Returns The name string of this column familyint
getScope()
Deprecated.Returns the scope tagDeprecated.Not usingenum
here because HDFS is not usingenum
for storage policy, see org.apache.hadoop.hdfs.server.blockmanagement.BlockStoragePolicySuite for more details.int
Deprecated.Returns Time-to-live of cell contents, in seconds.static PrettyPrinter.Unit
Deprecated.byte[]
getValue
(byte[] key) Deprecated.Get a configuration value.Deprecated.Get a configuration value.Deprecated.Get a configuration value.Deprecated.Get all configuration values.int
hashCode()
Deprecated.boolean
Deprecated.Returns True if hfile DATA type blocks should be cached (You cannot disable caching of INDEX and BLOOM type blocks).boolean
Deprecated.Returns true if we should cache bloomfilter blocks on writeboolean
Deprecated.Returns true if we should cache data blocks on writeboolean
Deprecated.Returns true if we should cache index blocks on writeboolean
Deprecated.Returns Whether KV tags should be compressed along with DataBlockEncoding.boolean
Deprecated.Returns true if we should evict cached blocks from the blockcache on closeboolean
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.boolean
Deprecated.Gets whether the mob is enabled for the family.boolean
Deprecated.By default, HBase only consider timestamp in versions.boolean
Deprecated.Returns true if we should prefetch blocks into the blockcache on openstatic HColumnDescriptor
parseFrom
(byte[] bytes) Deprecated.Parse a serialized representation of aHColumnDescriptor
void
remove
(byte[] key) Deprecated.void
Deprecated.Remove a configuration setting represented by the key.setBlockCacheEnabled
(boolean value) Deprecated.Set or clear the block cache enabled flag.setBlocksize
(int value) Deprecated.Set block size to use when writingsetBlocksize
(String value) Deprecated.setBloomFilterType
(BloomType value) Deprecated.Set the bloom filter type.setCacheBloomsOnWrite
(boolean value) Deprecated.Set or clear the cache bloom filters on write flag.setCacheDataInL1
(boolean value) Deprecated.Since 2.0 and will be removed in 3.0 with out any replacement.setCacheDataOnWrite
(boolean value) Deprecated.Set or clear the cache data on write flag.setCacheIndexesOnWrite
(boolean value) Deprecated.Set or clear the cache indexes on write flag.Deprecated.Compression types supported in hbase.Deprecated.Compression types supported in hbase.setCompressTags
(boolean value) Deprecated.Set whether the tags should be compressed along with DataBlockEncoding.setConfiguration
(String key, String value) Deprecated.Setter for storing a configuration setting.Deprecated.Set data block encoding algorithm used in block cache.setDFSReplication
(short value) Deprecated.Set the replication factor to hfile(s) belonging to this familysetEncryptionKey
(byte[] value) Deprecated.Set the raw crypto key attribute for the familysetEncryptionType
(String value) Deprecated.Set the encryption algorithm for use with this familysetEvictBlocksOnClose
(boolean value) Deprecated.Set or clear the evict bloom filters on close flag.setInMemory
(boolean value) Deprecated.Set or clear the in memory flag.Deprecated.Set the in memory compaction policy.Deprecated.Set the keep deleted cells policy.Deprecated.setMaxVersions
(int value) Deprecated.Set maximum versions to keepDeprecated.setMinVersions
(int value) Deprecated.Set the minimum number of versions to keep.Deprecated.Set the mob compact partition policy for the family.setMobEnabled
(boolean value) Deprecated.Enables the mob for the family.setMobThreshold
(long value) Deprecated.Sets the mob threshold of the family.setNewVersionBehavior
(boolean newVersionBehavior) Deprecated.setPrefetchBlocksOnOpen
(boolean value) Deprecated.Set or clear the prefetch on open flag.setScope
(int value) Deprecated.setStoragePolicy
(String value) Deprecated.Set the storage policy for use with this familysetTimeToLive
(int value) Deprecated.Set the time to live of cell contentssetTimeToLive
(String value) Deprecated.Set the time to live of cell contentssetValue
(byte[] key, byte[] value) Deprecated.Deprecated.setVersions
(int minVersions, int maxVersions) Deprecated.Set minimum and maximum versions to keepbyte[]
Deprecated.Returns This instance serialized with pb with pb magic prefixtoString()
Deprecated.Deprecated.Returns Column family descriptor with only the customized attributes.
-
Field Details
-
IN_MEMORY_COMPACTION
Deprecated.- See Also:
-
COMPRESSION
Deprecated.- See Also:
-
COMPRESSION_COMPACT
Deprecated.- See Also:
-
COMPRESSION_COMPACT_MAJOR
Deprecated.- See Also:
-
COMPRESSION_COMPACT_MINOR
Deprecated.- See Also:
-
ENCODE_ON_DISK
Deprecated.- See Also:
-
DATA_BLOCK_ENCODING
Deprecated.- See Also:
-
BLOCKCACHE
Deprecated.- See Also:
-
CACHE_DATA_ON_WRITE
Deprecated.- See Also:
-
CACHE_INDEX_ON_WRITE
Deprecated.- See Also:
-
CACHE_BLOOMS_ON_WRITE
Deprecated.- See Also:
-
EVICT_BLOCKS_ON_CLOSE
Deprecated.- See Also:
-
CACHE_DATA_IN_L1
Deprecated.- See Also:
-
PREFETCH_BLOCKS_ON_OPEN
Deprecated.- See Also:
-
BLOCKSIZE
Deprecated.- See Also:
-
LENGTH
Deprecated.- See Also:
-
TTL
Deprecated.- See Also:
-
BLOOMFILTER
Deprecated.- See Also:
-
FOREVER
Deprecated.- See Also:
-
REPLICATION_SCOPE
Deprecated.- See Also:
-
REPLICATION_SCOPE_BYTES
Deprecated. -
MIN_VERSIONS
Deprecated.- See Also:
-
KEEP_DELETED_CELLS
Deprecated.- See Also:
-
COMPRESS_TAGS
Deprecated.- See Also:
-
ENCRYPTION
Deprecated.- See Also:
-
ENCRYPTION_KEY
Deprecated.- See Also:
-
IS_MOB
Deprecated.- See Also:
-
IS_MOB_BYTES
Deprecated. -
MOB_THRESHOLD
Deprecated.- See Also:
-
MOB_THRESHOLD_BYTES
Deprecated. -
DEFAULT_MOB_THRESHOLD
Deprecated.- See Also:
-
MOB_COMPACT_PARTITION_POLICY
Deprecated.- See Also:
-
MOB_COMPACT_PARTITION_POLICY_BYTES
Deprecated. -
DEFAULT_MOB_COMPACT_PARTITION_POLICY
Deprecated. -
DFS_REPLICATION
Deprecated.- See Also:
-
DEFAULT_DFS_REPLICATION
Deprecated.- See Also:
-
STORAGE_POLICY
Deprecated.- See Also:
-
DEFAULT_COMPRESSION
Deprecated. -
DEFAULT_ENCODE_ON_DISK
Deprecated.- See Also:
-
DEFAULT_DATA_BLOCK_ENCODING
Deprecated. -
DEFAULT_VERSIONS
Deprecated.- See Also:
-
DEFAULT_MIN_VERSIONS
Deprecated.- See Also:
-
DEFAULT_IN_MEMORY
Deprecated.- See Also:
-
DEFAULT_KEEP_DELETED
Deprecated. -
DEFAULT_BLOCKCACHE
Deprecated.- See Also:
-
DEFAULT_CACHE_DATA_ON_WRITE
Deprecated.- See Also:
-
DEFAULT_CACHE_DATA_IN_L1
Deprecated.- See Also:
-
DEFAULT_CACHE_INDEX_ON_WRITE
Deprecated.- See Also:
-
DEFAULT_BLOCKSIZE
Deprecated.- See Also:
-
DEFAULT_BLOOMFILTER
Deprecated. -
DEFAULT_CACHE_BLOOMS_ON_WRITE
Deprecated.- See Also:
-
DEFAULT_TTL
Deprecated.- See Also:
-
DEFAULT_REPLICATION_SCOPE
Deprecated.- See Also:
-
DEFAULT_EVICT_BLOCKS_ON_CLOSE
Deprecated.- See Also:
-
DEFAULT_COMPRESS_TAGS
Deprecated.- See Also:
-
DEFAULT_PREFETCH_BLOCKS_ON_OPEN
Deprecated.- See Also:
-
NEW_VERSION_BEHAVIOR
Deprecated.- See Also:
-
DEFAULT_NEW_VERSION_BEHAVIOR
Deprecated.- See Also:
-
delegatee
Deprecated.
-
-
Constructor Details
-
HColumnDescriptor
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-18433). UseColumnFamilyDescriptorBuilder.of(String)
.Construct a column descriptor specifying only the family name The other attributes are defaulted.- Parameters:
familyName
- Column family name. Must be 'printable' -- digit or letter -- and may not contain a:
-
HColumnDescriptor
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-18433). UseColumnFamilyDescriptorBuilder.of(byte[])
.Construct a column descriptor specifying only the family name The other attributes are defaulted.- Parameters:
familyName
- Column family name. Must be 'printable' -- digit or letter -- and may not contain a:
-
HColumnDescriptor
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-18433). UseColumnFamilyDescriptorBuilder.copy(ColumnFamilyDescriptor)
.Constructor. Makes a deep copy of the supplied descriptor. Can make a modifiable descriptor from an UnmodifyableHColumnDescriptor.- Parameters:
desc
- The descriptor.
-
HColumnDescriptor
Deprecated. -
HColumnDescriptor
protected HColumnDescriptor(ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor delegate) Deprecated.
-
-
Method Details
-
isLegalFamilyName
Deprecated.since 2.0.0 and will be removed in 3.0.0. UseColumnFamilyDescriptorBuilder.isLegalColumnFamilyName(byte[])
instead.Check if a given family name is allowed.- Parameters:
b
- Family name.- Returns:
b
- Throws:
IllegalArgumentException
- If not null and not a legitimate family name: i.e. 'printable' and ends in a ':' (Null passes are allowed becauseb
can be null when deserializing). Cannot start with a '.' either. Also Family can not be an empty value or equal "recovered.edits".- See Also:
-
getName
Deprecated.Returns Name of this column family- Specified by:
getName
in interfaceColumnFamilyDescriptor
-
getNameAsString
Deprecated.Returns The name string of this column family- Specified by:
getNameAsString
in interfaceColumnFamilyDescriptor
-
getValue
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Get a configuration value.- Specified by:
getValue
in interfaceColumnFamilyDescriptor
- Parameters:
key
- The key.- Returns:
- A clone value. Null if no mapping for the key
-
getValue
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Get a configuration value.- Specified by:
getValue
in interfaceColumnFamilyDescriptor
- Parameters:
key
- The key.- Returns:
- A clone value. Null if no mapping for the key
-
getValues
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Get all configuration values. It clone all bytes of all elements.- Specified by:
getValues
in interfaceColumnFamilyDescriptor
- Returns:
- All values
-
setValue
Deprecated. -
remove
Deprecated. -
setValue
Deprecated. -
getCompression
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-13655). UsegetCompressionType()
.Returns compression type being used for the column family -
getCompactionCompression
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-13655). UsegetCompactionCompressionType()
.Returns compression type being used for the column family for major compaction -
getMaxVersions
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns maximum number of versions- Specified by:
getMaxVersions
in interfaceColumnFamilyDescriptor
-
setMaxVersions
Deprecated.Set maximum versions to keep- Parameters:
value
- maximum number of versions- Returns:
- this (for chained invocation)
-
setVersions
Deprecated.Set minimum and maximum versions to keep- Parameters:
minVersions
- minimal number of versionsmaxVersions
- maximum number of versions- Returns:
- this (for chained invocation)
-
getBlocksize
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns The storefile/hfile blocksize for this column family.- Specified by:
getBlocksize
in interfaceColumnFamilyDescriptor
-
setBlocksize
Deprecated.Set block size to use when writing- Parameters:
value
- Blocksize to use when writing out storefiles/hfiles on this column family.- Returns:
- this (for chained invocation)
-
setBlocksize
Deprecated.- Throws:
HBaseException
-
getCompressionType
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns Compression type setting.- Specified by:
getCompressionType
in interfaceColumnFamilyDescriptor
-
setCompressionType
Deprecated.Compression types supported in hbase. LZO is not bundled as part of the hbase distribution. See LZO Compression for how to enable it.- Parameters:
value
- Compression type setting.- Returns:
- this (for chained invocation)
-
getDataBlockEncoding
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns the data block encoding algorithm used in block cache and optionally on disk- Specified by:
getDataBlockEncoding
in interfaceColumnFamilyDescriptor
-
getIndexBlockEncoding
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Return the index block encoding algorithm used in block cache and optionally on disk- Specified by:
getIndexBlockEncoding
in interfaceColumnFamilyDescriptor
-
setDataBlockEncoding
Deprecated.Set data block encoding algorithm used in block cache.- Parameters:
value
- What kind of data block encoding will be used.- Returns:
- this (for chained invocation)
-
setCompressTags
Deprecated.Set whether the tags should be compressed along with DataBlockEncoding. When no DataBlockEncoding is been used, this is having no effect.- Returns:
- this (for chained invocation)
-
isCompressTags
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns Whether KV tags should be compressed along with DataBlockEncoding. When no DataBlockEncoding is been used, this is having no effect.- Specified by:
isCompressTags
in interfaceColumnFamilyDescriptor
-
getCompactionCompressionType
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns Compression type setting.- Specified by:
getCompactionCompressionType
in interfaceColumnFamilyDescriptor
-
getMajorCompactionCompressionType
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns Compression type setting for major compactions.- Specified by:
getMajorCompactionCompressionType
in interfaceColumnFamilyDescriptor
-
getMinorCompactionCompressionType
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns Compression type setting for minor compactions.- Specified by:
getMinorCompactionCompressionType
in interfaceColumnFamilyDescriptor
-
setCompactionCompressionType
Deprecated.Compression types supported in hbase. LZO is not bundled as part of the hbase distribution. See LZO Compression for how to enable it.- Parameters:
value
- Compression type setting.- Returns:
- this (for chained invocation)
-
setMajorCompactionCompressionType
Deprecated. -
setMinorCompactionCompressionType
Deprecated. -
isInMemory
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns True if we are to favor keeping all values for this column family in the HRegionServer cache.- Specified by:
isInMemory
in interfaceColumnFamilyDescriptor
-
setInMemory
Deprecated.Set or clear the in memory flag.- Parameters:
value
- True if we are to favor keeping all values for this column family in the HRegionServer cache- Returns:
- this (for chained invocation)
-
getInMemoryCompaction
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns in-memory compaction policy if set for the cf. Returns null if no policy is set for for this column family- Specified by:
getInMemoryCompaction
in interfaceColumnFamilyDescriptor
-
setInMemoryCompaction
Deprecated.Set the in memory compaction policy.- Parameters:
value
- the prefered in-memory compaction policy for this column family- Returns:
- this (for chained invocation)
-
getKeepDeletedCells
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns return the KeepDeletedCells- Specified by:
getKeepDeletedCells
in interfaceColumnFamilyDescriptor
-
setKeepDeletedCells
Deprecated.Set the keep deleted cells policy.- Parameters:
value
- True if deleted rows should not be collected immediately.- Returns:
- this (for chained invocation)
-
isNewVersionBehavior
Deprecated.By default, HBase only consider timestamp in versions. So a previous Delete with higher ts will mask a later Put with lower ts. Set this to true to enable new semantics of versions. We will also consider mvcc in versions. See HBASE-15968 for details.- Specified by:
isNewVersionBehavior
in interfaceColumnFamilyDescriptor
-
setNewVersionBehavior
Deprecated. -
getTimeToLive
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns Time-to-live of cell contents, in seconds.- Specified by:
getTimeToLive
in interfaceColumnFamilyDescriptor
-
setTimeToLive
Deprecated.Set the time to live of cell contents- Parameters:
value
- Time-to-live of cell contents, in seconds.- Returns:
- this (for chained invocation)
-
setTimeToLive
Deprecated.Set the time to live of cell contents- Parameters:
value
- Time to live of cell contents, in human readable format- Returns:
- this (for chained invocation)
- Throws:
HBaseException
- See Also:
-
getMinVersions
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns The minimum number of versions to keep.- Specified by:
getMinVersions
in interfaceColumnFamilyDescriptor
-
setMinVersions
Deprecated.Set the minimum number of versions to keep.- Parameters:
value
- The minimum number of versions to keep. (used when timeToLive is set)- Returns:
- this (for chained invocation)
-
isBlockCacheEnabled
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns True if hfile DATA type blocks should be cached (You cannot disable caching of INDEX and BLOOM type blocks).- Specified by:
isBlockCacheEnabled
in interfaceColumnFamilyDescriptor
-
setBlockCacheEnabled
Deprecated.Set or clear the block cache enabled flag.- Parameters:
value
- True if hfile DATA type blocks should be cached (We always cache INDEX and BLOOM blocks; you cannot turn this off).- Returns:
- this (for chained invocation)
-
getBloomFilterType
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns bloom filter type used for new StoreFiles in ColumnFamily- Specified by:
getBloomFilterType
in interfaceColumnFamilyDescriptor
-
setBloomFilterType
Deprecated.Set the bloom filter type.- Parameters:
value
- bloom filter type- Returns:
- this (for chained invocation)
-
getScope
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns the scope tag- Specified by:
getScope
in interfaceColumnFamilyDescriptor
-
setScope
Deprecated. -
isCacheDataOnWrite
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns true if we should cache data blocks on write- Specified by:
isCacheDataOnWrite
in interfaceColumnFamilyDescriptor
-
setCacheDataOnWrite
Deprecated.Set or clear the cache data on write flag.- Parameters:
value
- true if we should cache data blocks on write- Returns:
- this (for chained invocation)
-
setCacheDataInL1
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.Set or clear the cache in L1 flag. This is a noop call from HBase 2.0 onwards- Returns:
- this (for chained invocation)
-
isCacheIndexesOnWrite
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns true if we should cache index blocks on write- Specified by:
isCacheIndexesOnWrite
in interfaceColumnFamilyDescriptor
-
setCacheIndexesOnWrite
Deprecated.Set or clear the cache indexes on write flag.- Parameters:
value
- true if we should cache index blocks on write- Returns:
- this (for chained invocation)
-
isCacheBloomsOnWrite
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns true if we should cache bloomfilter blocks on write- Specified by:
isCacheBloomsOnWrite
in interfaceColumnFamilyDescriptor
-
setCacheBloomsOnWrite
Deprecated.Set or clear the cache bloom filters on write flag.- Parameters:
value
- true if we should cache bloomfilter blocks on write- Returns:
- this (for chained invocation)
-
isEvictBlocksOnClose
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns true if we should evict cached blocks from the blockcache on close- Specified by:
isEvictBlocksOnClose
in interfaceColumnFamilyDescriptor
-
setEvictBlocksOnClose
Deprecated.Set or clear the evict bloom filters on close flag.- Parameters:
value
- true if we should evict cached blocks from the blockcache on close- Returns:
- this (for chained invocation)
-
isPrefetchBlocksOnOpen
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns true if we should prefetch blocks into the blockcache on open- Specified by:
isPrefetchBlocksOnOpen
in interfaceColumnFamilyDescriptor
-
setPrefetchBlocksOnOpen
Deprecated.Set or clear the prefetch on open flag.- Parameters:
value
- true if we should prefetch blocks into the blockcache on open- Returns:
- this (for chained invocation)
-
toString
Deprecated. -
toStringCustomizedValues
Deprecated.Returns Column family descriptor with only the customized attributes.- Specified by:
toStringCustomizedValues
in interfaceColumnFamilyDescriptor
-
getUnit
Deprecated. -
getDefaultValues
Deprecated. -
equals
Deprecated. -
hashCode
Deprecated. -
compareTo
Deprecated.- Specified by:
compareTo
in interfaceComparable<HColumnDescriptor>
-
toByteArray
Deprecated.Returns This instance serialized with pb with pb magic prefix- See Also:
-
parseFrom
Deprecated.Parse a serialized representation of aHColumnDescriptor
- Parameters:
bytes
- A pb serializedHColumnDescriptor
instance with pb magic prefix- Returns:
- An instance of
HColumnDescriptor
made frombytes
- Throws:
DeserializationException
- See Also:
-
getConfigurationValue
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns accessing the configuration value by key.- Specified by:
getConfigurationValue
in interfaceColumnFamilyDescriptor
-
getConfiguration
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns an unmodifiable map.- Specified by:
getConfiguration
in interfaceColumnFamilyDescriptor
-
setConfiguration
Deprecated.Setter for storing a configuration setting.- Parameters:
key
- Config key. Same as XML config key e.g. hbase.something.or.other.value
- String value. If null, removes the configuration.
-
removeConfiguration
Deprecated.Remove a configuration setting represented by the key. -
getEncryptionType
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns Return the encryption algorithm in use by this family- Specified by:
getEncryptionType
in interfaceColumnFamilyDescriptor
-
setEncryptionType
Deprecated.Set the encryption algorithm for use with this family -
getEncryptionKey
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns Return the raw crypto key attribute for the family, or null if not set- Specified by:
getEncryptionKey
in interfaceColumnFamilyDescriptor
-
setEncryptionKey
Deprecated.Set the raw crypto key attribute for the family -
getMobThreshold
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Gets the mob threshold of the family. If the size of a cell value is larger than this threshold, it's regarded as a mob. The default threshold is 1024*100(100K)B.- Specified by:
getMobThreshold
in interfaceColumnFamilyDescriptor
- Returns:
- The mob threshold.
-
setMobThreshold
Deprecated.Sets the mob threshold of the family.- Parameters:
value
- The mob threshold.- Returns:
- this (for chained invocation)
-
isMobEnabled
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Gets whether the mob is enabled for the family.- Specified by:
isMobEnabled
in interfaceColumnFamilyDescriptor
- Returns:
- True if the mob is enabled for the family.
-
setMobEnabled
Deprecated.Enables the mob for the family.- Parameters:
value
- Whether to enable the mob for the family.- Returns:
- this (for chained invocation)
-
getMobCompactPartitionPolicy
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Get the mob compact partition policy for this family- Specified by:
getMobCompactPartitionPolicy
in interfaceColumnFamilyDescriptor
-
setMobCompactPartitionPolicy
Deprecated.Set the mob compact partition policy for the family.- Parameters:
value
- policy type- Returns:
- this (for chained invocation)
-
getDFSReplication
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Returns replication factor set for this CF- Specified by:
getDFSReplication
in interfaceColumnFamilyDescriptor
-
setDFSReplication
Deprecated.Set the replication factor to hfile(s) belonging to this family- Parameters:
value
- number of replicas the blocks(s) belonging to this CF should have, orDEFAULT_DFS_REPLICATION
for the default replication factor set in the filesystem- Returns:
- this (for chained invocation)
-
getStoragePolicy
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Not usingenum
here because HDFS is not usingenum
for storage policy, see org.apache.hadoop.hdfs.server.blockmanagement.BlockStoragePolicySuite for more details.- Specified by:
getStoragePolicy
in interfaceColumnFamilyDescriptor
- Returns:
- Return the storage policy in use by this family
-
setStoragePolicy
Deprecated.Set the storage policy for use with this family- Parameters:
value
- the policy to set, valid setting includes: "LAZY_PERSIST", "ALL_SSD", "ONE_SSD", "HOT", "WARM", "COLD"
-
getValue
Deprecated.Description copied from interface:ColumnFamilyDescriptor
Get a configuration value.- Specified by:
getValue
in interfaceColumnFamilyDescriptor
- Parameters:
key
- The key.- Returns:
- A clone value. Null if no mapping for the key
-
getDelegateeForModification
protected ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor getDelegateeForModification()Deprecated.
-