Package org.apache.hadoop.hbase.client
Class ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor
java.lang.Object
org.apache.hadoop.hbase.client.ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor
- All Implemented Interfaces:
- Comparable<ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor>,- ColumnFamilyDescriptor
- Enclosing class:
- ColumnFamilyDescriptorBuilder
@Private
public static class ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor
extends Object
implements ColumnFamilyDescriptor, Comparable<ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor>
An ModifyableFamilyDescriptor 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. TODO: make this package-private after removing the HColumnDescriptor
- 
Field SummaryFieldsModifier and TypeFieldDescriptionA map which holds the configuration specific to the column family.private final byte[]Fields inherited from interface org.apache.hadoop.hbase.client.ColumnFamilyDescriptorCOMPARATOR, COMPARATOR_IGNORE_REPLICATION, REPLICATION_SCOPE_BYTES
- 
Constructor SummaryConstructorsModifierConstructorDescriptionModifyableColumnFamilyDescriptor(byte[] name) Construct a column descriptor specifying only the family name The other attributes are defaulted.privateConstructor.
- 
Method SummaryModifier and TypeMethodDescriptionintbooleanintReturns The storefile/hfile blocksize for this column family.Returns bloom filter type used for new StoreFiles in ColumnFamilyReturns Compression type setting.Returns Compression type setting.Returns an unmodifiable map.Returns accessing the configuration value by key.Returns the data block encoding algorithm used in block cache and optionally on diskshortReturns replication factor set for this CFbyte[]Returns Return the raw crypto key attribute for the family, or null if not setReturns Return the encryption algorithm in use by this familyReturn the index block encoding algorithm used in block cache and optionally on diskReturns in-memory compaction policy if set for the cf.Returns return the KeepDeletedCellsReturns Compression type setting for major compactions.intReturns maximum number of versionsReturns Compression type setting for minor compactions.intReturns The minimum number of versions to keep.Get the mob compact partition policy for this familylongGets the mob threshold of the family.byte[]getName()Returns a copy of Name of this column familyReturns Name of this column familyprivate <T> TgetOrDefault(Bytes key, Function<byte[], T> function, T defaultValue) intgetScope()Returns the scope tagNot usingenumhere because HDFS is not usingenumfor storage policy, see org.apache.hadoop.hdfs.server.blockmanagement.BlockStoragePolicySuite for more details.private <T> TgetStringOrDefault(Bytes key, Function<String, T> function, T defaultValue) intReturns Time-to-live of cell contents, in seconds.byte[]getValue(byte[] key) Get a configuration value.Get a configuration value.Get a configuration value.Get all configuration values.private StringBuildergetValues(boolean printDefaults) inthashCode()booleanReturns True if hfile DATA type blocks should be cached (You cannot disable caching of INDEX and BLOOM type blocks).booleanReturns true if we should cache bloomfilter blocks on writebooleanReturns true if we should cache data blocks on writebooleanReturns true if we should cache index blocks on writebooleanReturns Whether KV tags should be compressed along with DataBlockEncoding.booleanReturns true if we should evict cached blocks from the blockcache on closebooleanReturns True if we are to favor keeping all values for this column family in the HRegionServer cache.booleanGets whether the mob is enabled for the family.booleanBy default, HBase only consider timestamp in versions.booleanReturns true if we should prefetch blocks into the blockcache on openprivate static ColumnFamilyDescriptorparseFrom(byte[] bytes) Parse the serialized representation of aColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptorRemove a configuration setting represented by the key from theconfigurationmap.removeValue(Bytes key) setBlockCacheEnabled(boolean blockCacheEnabled) Set the blockCacheEnabled flagsetBlocksize(int s) setBlocksize(String blocksize) setCacheBloomsOnWrite(boolean value) Set the setCacheBloomsOnWrite flag.setCacheDataOnWrite(boolean value) Set the setCacheDataOnWrite flagsetCacheIndexesOnWrite(boolean value) Set the setCacheIndexesOnWrite flagCompression types supported in hbase.Compression types supported in hbase.setCompressTags(boolean compressTags) Set whether the tags should be compressed along with DataBlockEncoding.setConfiguration(String key, String value) Setter for storing a configuration setting inconfigurationmap.Set data block encoding algorithm used in block cache.setDFSReplication(short replication) Set the replication factor to hfile(s) belonging to this familysetEncryptionKey(byte[] keyBytes) Set the raw crypto key attribute for the familysetEncryptionType(String algorithm) Set the encryption algorithm for use with this familysetEvictBlocksOnClose(boolean value) Set the setEvictBlocksOnClose flag.Set index block encoding algorithm used in block cache.setInMemory(boolean inMemory) Set the inMemory flagsetInMemoryCompaction(MemoryCompactionPolicy inMemoryCompaction) setKeepDeletedCells(KeepDeletedCells keepDeletedCells) setMaxVersions(int maxVersions) Set the maximum number of versions to retain.setMinVersions(int minVersions) Set minimum versions to retain.Set the mob compact partition policy for the family.setMobEnabled(boolean isMobEnabled) Enables the mob for the family.setMobThreshold(long threshold) Sets the mob threshold of the family.setNewVersionBehavior(boolean newVersionBehavior) setPrefetchBlocksOnOpen(boolean value) Set the setPrefetchBlocksOnOpen flagsetScope(int scope) setStoragePolicy(String policy) Set the storage policy for use with this familysetTimeToLive(int timeToLive) Set the time to livesetTimeToLive(String timeToLive) Set the time to livesetValue(byte[] key, byte[] value) setVersions(int minVersions, int maxVersions) Set minimum and maximum versions to keep.setVersionsWithTimeToLive(int retentionInterval, int versionAfterInterval) Retain all versions for a given TTL(retentionInterval), and then only a specific number of versions(versionAfterInterval) after that interval elapses.private byte[]Returns This instance serialized with pb with pb magic prefixprivate static <T> BytestoBytesOrNull(T t, Function<T, byte[]> f) toString()Returns Column family descriptor with only the customized attributes.
- 
Field Details- 
name
- 
values
- 
configurationA map which holds the configuration specific to the column family. The keys of the map have the same names as config keys and override the defaults with cf-specific settings. Example usage may be for compactions, etc.
 
- 
- 
Constructor Details- 
ModifyableColumnFamilyDescriptorConstruct a column descriptor specifying only the family name The other attributes are defaulted.- Parameters:
- name- Column family name. Must be 'printable' -- digit or letter -- and may not contain a- :TODO: make this private after the HCD is removed.
 
- 
ModifyableColumnFamilyDescriptorConstructor. Makes a deep copy of the supplied descriptor. TODO: make this private after the HCD is removed.- Parameters:
- desc- The descriptor.
 
- 
ModifyableColumnFamilyDescriptor
 
- 
- 
Method Details- 
getNameDescription copied from interface:ColumnFamilyDescriptorReturns a copy of Name of this column family- Specified by:
- getNamein interface- ColumnFamilyDescriptor
 
- 
getNameAsStringDescription copied from interface:ColumnFamilyDescriptorReturns Name of this column family- Specified by:
- getNameAsStringin interface- ColumnFamilyDescriptor
 
- 
getValueDescription copied from interface:ColumnFamilyDescriptorGet a configuration value.- Specified by:
- getValuein interface- ColumnFamilyDescriptor
- Parameters:
- key- The key.
- Returns:
- A clone value. Null if no mapping for the key
 
- 
getValueDescription copied from interface:ColumnFamilyDescriptorGet a configuration value.- Specified by:
- getValuein interface- ColumnFamilyDescriptor
- Parameters:
- key- The key.
- Returns:
- A clone value. Null if no mapping for the key
 
- 
getValueDescription copied from interface:ColumnFamilyDescriptorGet a configuration value.- Specified by:
- getValuein interface- ColumnFamilyDescriptor
- Parameters:
- key- The key.
- Returns:
- A clone value. Null if no mapping for the key
 
- 
getValuesDescription copied from interface:ColumnFamilyDescriptorGet all configuration values. It clone all bytes of all elements.- Specified by:
- getValuesin interface- ColumnFamilyDescriptor
- Returns:
- All values
 
- 
setValuepublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setValue(byte[] key, byte[] value) 
- 
setValuepublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setValue(String key, String value) 
- 
setValueprivate ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setValue(Bytes key, String value) 
- 
setValueprivate ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setValue(Bytes key, Bytes value) 
- 
removeValue
- 
toBytesOrNull
- 
getStringOrDefault
- 
getOrDefault
- 
getMaxVersionsDescription copied from interface:ColumnFamilyDescriptorReturns maximum number of versions- Specified by:
- getMaxVersionsin interface- ColumnFamilyDescriptor
 
- 
setMaxVersionspublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setMaxVersions(int maxVersions) Set the maximum number of versions to retain.- Parameters:
- maxVersions- maximum number of versions
- Returns:
- this (for chained invocation)
 
- 
setVersionspublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setVersions(int minVersions, int maxVersions) Set minimum and maximum versions to keep.- Parameters:
- minVersions- minimal number of versions
- maxVersions- maximum number of versions
- Returns:
- this (for chained invocation)
 
- 
getBlocksizeDescription copied from interface:ColumnFamilyDescriptorReturns The storefile/hfile blocksize for this column family.- Specified by:
- getBlocksizein interface- ColumnFamilyDescriptor
 
- 
setBlocksize
- 
setBlocksizepublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setBlocksize(String blocksize) throws HBaseException - Throws:
- HBaseException
 
- 
getCompressionTypeDescription copied from interface:ColumnFamilyDescriptorReturns Compression type setting.- Specified by:
- getCompressionTypein interface- ColumnFamilyDescriptor
 
- 
setCompressionTypepublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setCompressionType(Compression.Algorithm type) Compression types supported in hbase. LZO is not bundled as part of the hbase distribution. See LZO Compression for how to enable it.- Parameters:
- type- Compression type setting.
- Returns:
- this (for chained invocation)
 
- 
getDataBlockEncodingDescription copied from interface:ColumnFamilyDescriptorReturns the data block encoding algorithm used in block cache and optionally on disk- Specified by:
- getDataBlockEncodingin interface- ColumnFamilyDescriptor
 
- 
setDataBlockEncodingpublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setDataBlockEncoding(DataBlockEncoding type) Set data block encoding algorithm used in block cache.- Parameters:
- type- What kind of data block encoding will be used.
- Returns:
- this (for chained invocation)
 
- 
getIndexBlockEncodingDescription copied from interface:ColumnFamilyDescriptorReturn the index block encoding algorithm used in block cache and optionally on disk- Specified by:
- getIndexBlockEncodingin interface- ColumnFamilyDescriptor
 
- 
setIndexBlockEncodingpublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setIndexBlockEncoding(IndexBlockEncoding type) Set index block encoding algorithm used in block cache.- Parameters:
- type- What kind of index block encoding will be used.
- Returns:
- this (for chained invocation)
 
- 
setCompressTagspublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setCompressTags(boolean compressTags) 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)
 
- 
isCompressTagsDescription copied from interface:ColumnFamilyDescriptorReturns Whether KV tags should be compressed along with DataBlockEncoding. When no DataBlockEncoding is been used, this is having no effect.- Specified by:
- isCompressTagsin interface- ColumnFamilyDescriptor
 
- 
getCompactionCompressionTypeDescription copied from interface:ColumnFamilyDescriptorReturns Compression type setting.- Specified by:
- getCompactionCompressionTypein interface- ColumnFamilyDescriptor
 
- 
getMajorCompactionCompressionTypeDescription copied from interface:ColumnFamilyDescriptorReturns Compression type setting for major compactions.- Specified by:
- getMajorCompactionCompressionTypein interface- ColumnFamilyDescriptor
 
- 
getMinorCompactionCompressionTypeDescription copied from interface:ColumnFamilyDescriptorReturns Compression type setting for minor compactions.- Specified by:
- getMinorCompactionCompressionTypein interface- ColumnFamilyDescriptor
 
- 
setCompactionCompressionTypepublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setCompactionCompressionType(Compression.Algorithm type) Compression types supported in hbase. LZO is not bundled as part of the hbase distribution. See LZO Compression for how to enable it.- Parameters:
- type- Compression type setting.
- Returns:
- this (for chained invocation)
 
- 
setMajorCompactionCompressionType
- 
setMinorCompactionCompressionType
- 
isInMemoryDescription copied from interface:ColumnFamilyDescriptorReturns True if we are to favor keeping all values for this column family in the HRegionServer cache.- Specified by:
- isInMemoryin interface- ColumnFamilyDescriptor
 
- 
setInMemorySet the inMemory flag- Parameters:
- inMemory- True if we are to favor keeping all values for this column family in the HRegionServer cache
- Returns:
- this (for chained invocation)
 
- 
getInMemoryCompactionDescription copied from interface:ColumnFamilyDescriptorReturns in-memory compaction policy if set for the cf. Returns null if no policy is set for for this column family- Specified by:
- getInMemoryCompactionin interface- ColumnFamilyDescriptor
 
- 
setInMemoryCompactionpublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setInMemoryCompaction(MemoryCompactionPolicy inMemoryCompaction) 
- 
getKeepDeletedCellsDescription copied from interface:ColumnFamilyDescriptorReturns return the KeepDeletedCells- Specified by:
- getKeepDeletedCellsin interface- ColumnFamilyDescriptor
 
- 
setKeepDeletedCellspublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setKeepDeletedCells(KeepDeletedCells keepDeletedCells) 
- 
isNewVersionBehaviorBy 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:
- isNewVersionBehaviorin interface- ColumnFamilyDescriptor
 
- 
setNewVersionBehaviorpublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setNewVersionBehavior(boolean newVersionBehavior) 
- 
getTimeToLiveDescription copied from interface:ColumnFamilyDescriptorReturns Time-to-live of cell contents, in seconds.- Specified by:
- getTimeToLivein interface- ColumnFamilyDescriptor
 
- 
setTimeToLiveSet the time to live- Parameters:
- timeToLive- Time-to-live of cell contents, in seconds.
- Returns:
- this (for chained invocation)
 
- 
setTimeToLivepublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setTimeToLive(String timeToLive) throws HBaseException Set the time to live- Parameters:
- timeToLive- Time-to-live of cell contents, in seconds.
- Returns:
- this (for chained invocation)
- Throws:
- HBaseException- exception
 
- 
getMinVersionsDescription copied from interface:ColumnFamilyDescriptorReturns The minimum number of versions to keep.- Specified by:
- getMinVersionsin interface- ColumnFamilyDescriptor
 
- 
setMinVersionspublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setMinVersions(int minVersions) Set minimum versions to retain.- Parameters:
- minVersions- The minimum number of versions to keep. (used when timeToLive is set)
- Returns:
- this (for chained invocation)
 
- 
setVersionsWithTimeToLivepublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setVersionsWithTimeToLive(int retentionInterval, int versionAfterInterval) Retain all versions for a given TTL(retentionInterval), and then only a specific number of versions(versionAfterInterval) after that interval elapses.- Parameters:
- retentionInterval- Retain all versions for this interval
- versionAfterInterval- Retain no of versions to retain after retentionInterval
- Returns:
- this (for chained invocation)
 
- 
isBlockCacheEnabledDescription copied from interface:ColumnFamilyDescriptorReturns True if hfile DATA type blocks should be cached (You cannot disable caching of INDEX and BLOOM type blocks).- Specified by:
- isBlockCacheEnabledin interface- ColumnFamilyDescriptor
 
- 
setBlockCacheEnabledpublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setBlockCacheEnabled(boolean blockCacheEnabled) Set the blockCacheEnabled flag- Parameters:
- blockCacheEnabled- 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)
 
- 
getBloomFilterTypeDescription copied from interface:ColumnFamilyDescriptorReturns bloom filter type used for new StoreFiles in ColumnFamily- Specified by:
- getBloomFilterTypein interface- ColumnFamilyDescriptor
 
- 
setBloomFilterType
- 
getScopeDescription copied from interface:ColumnFamilyDescriptorReturns the scope tag- Specified by:
- getScopein interface- ColumnFamilyDescriptor
 
- 
setScope
- 
isCacheDataOnWriteDescription copied from interface:ColumnFamilyDescriptorReturns true if we should cache data blocks on write- Specified by:
- isCacheDataOnWritein interface- ColumnFamilyDescriptor
 
- 
setCacheDataOnWritepublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setCacheDataOnWrite(boolean value) Set the setCacheDataOnWrite flag- Parameters:
- value- true if we should cache data blocks on write
- Returns:
- this (for chained invocation)
 
- 
isCacheIndexesOnWriteDescription copied from interface:ColumnFamilyDescriptorReturns true if we should cache index blocks on write- Specified by:
- isCacheIndexesOnWritein interface- ColumnFamilyDescriptor
 
- 
setCacheIndexesOnWritepublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setCacheIndexesOnWrite(boolean value) Set the setCacheIndexesOnWrite flag- Parameters:
- value- true if we should cache index blocks on write
- Returns:
- this (for chained invocation)
 
- 
isCacheBloomsOnWriteDescription copied from interface:ColumnFamilyDescriptorReturns true if we should cache bloomfilter blocks on write- Specified by:
- isCacheBloomsOnWritein interface- ColumnFamilyDescriptor
 
- 
setCacheBloomsOnWritepublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setCacheBloomsOnWrite(boolean value) Set the setCacheBloomsOnWrite flag.- Parameters:
- value- true if we should cache bloomfilter blocks on write
- Returns:
- this (for chained invocation)
 
- 
isEvictBlocksOnCloseDescription copied from interface:ColumnFamilyDescriptorReturns true if we should evict cached blocks from the blockcache on close- Specified by:
- isEvictBlocksOnClosein interface- ColumnFamilyDescriptor
 
- 
setEvictBlocksOnClosepublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setEvictBlocksOnClose(boolean value) Set the setEvictBlocksOnClose flag.- Parameters:
- value- true if we should evict cached blocks from the blockcache on close
- Returns:
- this (for chained invocation)
 
- 
isPrefetchBlocksOnOpenDescription copied from interface:ColumnFamilyDescriptorReturns true if we should prefetch blocks into the blockcache on open- Specified by:
- isPrefetchBlocksOnOpenin interface- ColumnFamilyDescriptor
 
- 
setPrefetchBlocksOnOpenpublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setPrefetchBlocksOnOpen(boolean value) Set the setPrefetchBlocksOnOpen flag- Parameters:
- value- true if we should prefetch blocks into the blockcache on open
- Returns:
- this (for chained invocation)
 
- 
toString
- 
toStringCustomizedValuesDescription copied from interface:ColumnFamilyDescriptorReturns Column family descriptor with only the customized attributes.- Specified by:
- toStringCustomizedValuesin interface- ColumnFamilyDescriptor
 
- 
getValues
- 
equals
- 
hashCode
- 
compareTo- Specified by:
- compareToin interface- Comparable<ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor>
 
- 
toByteArrayReturns This instance serialized with pb with pb magic prefix
- 
parseFromParse the serialized representation of aColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor- Parameters:
- bytes- A pb serialized- ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptorinstance with pb magic prefix
- Returns:
- An instance of ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptormade frombytes
- Throws:
- DeserializationException
- See Also:
 
- 
getConfigurationValueDescription copied from interface:ColumnFamilyDescriptorReturns accessing the configuration value by key.- Specified by:
- getConfigurationValuein interface- ColumnFamilyDescriptor
 
- 
getConfigurationDescription copied from interface:ColumnFamilyDescriptorReturns an unmodifiable map.- Specified by:
- getConfigurationin interface- ColumnFamilyDescriptor
 
- 
setConfigurationpublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setConfiguration(String key, String value) Setter for storing a configuration setting inconfigurationmap.- Parameters:
- key- Config key. Same as XML config key e.g. hbase.something.or.other.
- value- String value. If null, removes the configuration.
- Returns:
- this (for chained invocation)
 
- 
removeConfigurationpublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor removeConfiguration(String key) Remove a configuration setting represented by the key from theconfigurationmap.- Returns:
- this (for chained invocation)
 
- 
getEncryptionTypeDescription copied from interface:ColumnFamilyDescriptorReturns Return the encryption algorithm in use by this family- Specified by:
- getEncryptionTypein interface- ColumnFamilyDescriptor
 
- 
setEncryptionTypepublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setEncryptionType(String algorithm) Set the encryption algorithm for use with this family- Returns:
- this (for chained invocation)
 
- 
getEncryptionKeyDescription copied from interface:ColumnFamilyDescriptorReturns Return the raw crypto key attribute for the family, or null if not set- Specified by:
- getEncryptionKeyin interface- ColumnFamilyDescriptor
 
- 
setEncryptionKeypublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setEncryptionKey(byte[] keyBytes) Set the raw crypto key attribute for the family- Returns:
- this (for chained invocation)
 
- 
getMobThresholdDescription copied from interface:ColumnFamilyDescriptorGets 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:
- getMobThresholdin interface- ColumnFamilyDescriptor
- Returns:
- The mob threshold.
 
- 
setMobThresholdpublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setMobThreshold(long threshold) Sets the mob threshold of the family.- Parameters:
- threshold- The mob threshold.
- Returns:
- this (for chained invocation)
 
- 
isMobEnabledDescription copied from interface:ColumnFamilyDescriptorGets whether the mob is enabled for the family.- Specified by:
- isMobEnabledin interface- ColumnFamilyDescriptor
- Returns:
- True if the mob is enabled for the family.
 
- 
setMobEnabledpublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setMobEnabled(boolean isMobEnabled) Enables the mob for the family.- Parameters:
- isMobEnabled- Whether to enable the mob for the family.
- Returns:
- this (for chained invocation)
 
- 
getMobCompactPartitionPolicyDescription copied from interface:ColumnFamilyDescriptorGet the mob compact partition policy for this family- Specified by:
- getMobCompactPartitionPolicyin interface- ColumnFamilyDescriptor
 
- 
setMobCompactPartitionPolicypublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setMobCompactPartitionPolicy(MobCompactPartitionPolicy policy) Set the mob compact partition policy for the family.- Parameters:
- policy- policy type
- Returns:
- this (for chained invocation)
 
- 
getDFSReplicationDescription copied from interface:ColumnFamilyDescriptorReturns replication factor set for this CF- Specified by:
- getDFSReplicationin interface- ColumnFamilyDescriptor
 
- 
setDFSReplicationpublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setDFSReplication(short replication) Set the replication factor to hfile(s) belonging to this family- Parameters:
- replication- number of replicas the blocks(s) belonging to this CF should have, or- ColumnFamilyDescriptorBuilder.DEFAULT_DFS_REPLICATIONfor the default replication factor set in the filesystem
- Returns:
- this (for chained invocation)
 
- 
getStoragePolicyDescription copied from interface:ColumnFamilyDescriptorNot usingenumhere because HDFS is not usingenumfor storage policy, see org.apache.hadoop.hdfs.server.blockmanagement.BlockStoragePolicySuite for more details.- Specified by:
- getStoragePolicyin interface- ColumnFamilyDescriptor
- Returns:
- Return the storage policy in use by this family
 
- 
setStoragePolicypublic ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor setStoragePolicy(String policy) Set the storage policy for use with this family- Parameters:
- policy- the policy to set, valid setting includes: "LAZY_PERSIST", "ALL_SSD", "ONE_SSD", "HOT", "WARM", "COLD"
- Returns:
- this (for chained invocation)
 
 
-