Interface ColumnFamilyDescriptor

All Known Implementing Classes:
ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor

@Public public interface ColumnFamilyDescriptor
An ColumnFamilyDescriptor 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. To construct a new instance, use the ColumnFamilyDescriptorBuilder methods
Since:
2.0.0
  • Field Details

  • Method Details

    • getBlocksize

      Returns The storefile/hfile blocksize for this column family.
    • getBloomFilterType

      Returns bloom filter type used for new StoreFiles in ColumnFamily
    • getCompactionCompressionType

      Returns Compression type setting.
    • getMajorCompactionCompressionType

      Returns Compression type setting for major compactions.
    • getMinorCompactionCompressionType

      Returns Compression type setting for minor compactions.
    • getCompressionType

      Returns Compression type setting.
    • getConfiguration

      Returns an unmodifiable map.
    • getConfigurationValue

      Returns the value for the given key, looking in the values map (where the shell writes settings since HBASE-20819) and the legacy configuration map.
    • getDFSReplication

      Returns replication factor set for this CF
    • getDataBlockEncoding

      Returns the data block encoding algorithm used in block cache and optionally on disk
    • getIndexBlockEncoding

      Return the index block encoding algorithm used in block cache and optionally on disk
    • getEncryptionKey

      Returns Return the raw crypto key attribute for the family, or null if not set
    • getEncryptionKeyNamespace

      Returns the encryption key namespace for this family
    • getEncryptionType

      Returns Return the encryption algorithm in use by this family
    • getInMemoryCompaction

      Returns in-memory compaction policy if set for the cf. Returns null if no policy is set for for this column family
    • getKeepDeletedCells

      Returns return the KeepDeletedCells
    • getMaxVersions

      Returns maximum number of versions
    • getMinVersions

      Returns The minimum number of versions to keep.
    • getMobCompactPartitionPolicy

      Get the mob compact partition policy for this family
    • getMobThreshold

      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.
      Returns:
      The mob threshold.
    • getName

      byte[] getName()
      Returns a copy of Name of this column family
    • getNameAsString

      Returns Name of this column family
    • getScope

      int getScope()
      Returns the scope tag
    • getStoragePolicy

      Not using enum here because HDFS is not using enum for storage policy, see org.apache.hadoop.hdfs.server.blockmanagement.BlockStoragePolicySuite for more details.
      Returns:
      Return the storage policy in use by this family
    • getTimeToLive

      Returns Time-to-live of cell contents, in seconds.
    • getValue

      Get a configuration value.
      Parameters:
      key - The key.
      Returns:
      A clone value. Null if no mapping for the key
    • getValue

      Get a configuration value.
      Parameters:
      key - The key.
      Returns:
      A clone value. Null if no mapping for the key
    • getValue

      byte[] getValue(byte[] key)
      Get a configuration value.
      Parameters:
      key - The key.
      Returns:
      A clone value. Null if no mapping for the key
    • getValues

      Get all configuration values. It clone all bytes of all elements.
      Returns:
      All values
    • isBlockCacheEnabled

      Returns True if hfile DATA type blocks should be cached (You cannot disable caching of INDEX and BLOOM type blocks).
    • isCacheBloomsOnWrite

      Returns true if we should cache bloomfilter blocks on write
    • isCacheDataOnWrite

      Returns true if we should cache data blocks on write
    • isCacheIndexesOnWrite

      Returns true if we should cache index blocks on write
    • isCompressTags

      boolean isCompressTags()
      Returns Whether KV tags should be compressed along with DataBlockEncoding. When no DataBlockEncoding is been used, this is having no effect.
    • isEvictBlocksOnClose

      Returns true if we should evict cached blocks from the blockcache on close
    • isInMemory

      boolean isInMemory()
      Returns True if we are to favor keeping all values for this column family in the HRegionServer cache.
    • isMobEnabled

      boolean isMobEnabled()
      Gets whether the mob is enabled for the family.
      Returns:
      True if the mob is enabled for the family.
    • isPrefetchBlocksOnOpen

      Returns true if we should prefetch blocks into the blockcache on open
    • toStringCustomizedValues

      Returns Column family descriptor with only the customized attributes.
    • isNewVersionBehavior

      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.