@InterfaceAudience.Public @Deprecated public class HColumnDescriptor extends Object implements ColumnFamilyDescriptor, Comparable<HColumnDescriptor>
COMPARATOR, COMPARATOR_IGNORE_REPLICATION
限定符 | 构造器和说明 |
---|---|
|
HColumnDescriptor(byte[] familyName)
已过时。
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)
已过时。
|
|
HColumnDescriptor(HColumnDescriptor desc)
已过时。
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)
已过时。
|
|
HColumnDescriptor(String familyName)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-18433).
Use
ColumnFamilyDescriptorBuilder.of(String) . |
限定符和类型 | 方法和说明 |
---|---|
int |
compareTo(HColumnDescriptor other)
已过时。
|
boolean |
equals(Object obj)
已过时。
|
int |
getBlocksize()
已过时。
|
BloomType |
getBloomFilterType()
已过时。
|
Compression.Algorithm |
getCompactionCompression()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13655).
Use
getCompactionCompressionType() . |
Compression.Algorithm |
getCompactionCompressionType()
已过时。
|
Compression.Algorithm |
getCompression()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13655).
Use
getCompressionType() . |
Compression.Algorithm |
getCompressionType()
已过时。
|
Map<String,String> |
getConfiguration()
已过时。
|
String |
getConfigurationValue(String key)
已过时。
|
DataBlockEncoding |
getDataBlockEncoding()
已过时。
|
static Map<String,String> |
getDefaultValues()
已过时。
|
protected ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor |
getDelegateeForModification()
已过时。
|
short |
getDFSReplication()
已过时。
|
byte[] |
getEncryptionKey()
已过时。
|
String |
getEncryptionType()
已过时。
|
MemoryCompactionPolicy |
getInMemoryCompaction()
已过时。
|
KeepDeletedCells |
getKeepDeletedCells()
已过时。
|
int |
getMaxVersions()
已过时。
|
int |
getMinVersions()
已过时。
|
MobCompactPartitionPolicy |
getMobCompactPartitionPolicy()
已过时。
Get the mob compact partition policy for this family
|
long |
getMobThreshold()
已过时。
Gets the mob threshold of the family.
|
byte[] |
getName()
已过时。
|
String |
getNameAsString()
已过时。
|
int |
getScope()
已过时。
|
String |
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. |
int |
getTimeToLive()
已过时。
|
static PrettyPrinter.Unit |
getUnit(String key)
已过时。
|
byte[] |
getValue(byte[] key)
已过时。
|
Bytes |
getValue(Bytes key)
已过时。
|
String |
getValue(String key)
已过时。
|
Map<Bytes,Bytes> |
getValues()
已过时。
It clone all bytes of all elements.
|
int |
hashCode()
已过时。
|
boolean |
isBlockCacheEnabled()
已过时。
|
boolean |
isCacheBloomsOnWrite()
已过时。
|
boolean |
isCacheDataOnWrite()
已过时。
|
boolean |
isCacheIndexesOnWrite()
已过时。
|
boolean |
isCompressTags()
已过时。
|
boolean |
isEvictBlocksOnClose()
已过时。
|
boolean |
isInMemory()
已过时。
|
static byte[] |
isLegalFamilyName(byte[] b)
已过时。
since 2.0.0 and will be removed in 3.0.0. Use
ColumnFamilyDescriptorBuilder.isLegalColumnFamilyName(byte[]) instead. |
boolean |
isMobEnabled()
已过时。
Gets whether the mob is enabled for the family.
|
boolean |
isNewVersionBehavior()
已过时。
By default, HBase only consider timestamp in versions.
|
boolean |
isPrefetchBlocksOnOpen()
已过时。
|
static HColumnDescriptor |
parseFrom(byte[] bytes)
已过时。
|
void |
remove(byte[] key)
已过时。
|
void |
removeConfiguration(String key)
已过时。
Remove a configuration setting represented by the key.
|
HColumnDescriptor |
setBlockCacheEnabled(boolean value)
已过时。
|
HColumnDescriptor |
setBlocksize(int value)
已过时。
|
HColumnDescriptor |
setBloomFilterType(BloomType value)
已过时。
|
HColumnDescriptor |
setCacheBloomsOnWrite(boolean value)
已过时。
|
HColumnDescriptor |
setCacheDataInL1(boolean value)
已过时。
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)
已过时。
|
HColumnDescriptor |
setCacheIndexesOnWrite(boolean value)
已过时。
|
HColumnDescriptor |
setCompactionCompressionType(Compression.Algorithm value)
已过时。
Compression types supported in hbase.
|
HColumnDescriptor |
setCompressionType(Compression.Algorithm value)
已过时。
Compression types supported in hbase.
|
HColumnDescriptor |
setCompressTags(boolean value)
已过时。
Set whether the tags should be compressed along with DataBlockEncoding.
|
HColumnDescriptor |
setConfiguration(String key,
String value)
已过时。
Setter for storing a configuration setting.
|
HColumnDescriptor |
setDataBlockEncoding(DataBlockEncoding value)
已过时。
Set data block encoding algorithm used in block cache.
|
HColumnDescriptor |
setDFSReplication(short value)
已过时。
Set the replication factor to hfile(s) belonging to this family
|
HColumnDescriptor |
setEncryptionKey(byte[] value)
已过时。
Set the raw crypto key attribute for the family
|
HColumnDescriptor |
setEncryptionType(String value)
已过时。
Set the encryption algorithm for use with this family
|
HColumnDescriptor |
setEvictBlocksOnClose(boolean value)
已过时。
|
HColumnDescriptor |
setInMemory(boolean value)
已过时。
|
HColumnDescriptor |
setInMemoryCompaction(MemoryCompactionPolicy value)
已过时。
|
HColumnDescriptor |
setKeepDeletedCells(KeepDeletedCells value)
已过时。
|
HColumnDescriptor |
setMaxVersions(int value)
已过时。
|
HColumnDescriptor |
setMinVersions(int value)
已过时。
|
HColumnDescriptor |
setMobCompactPartitionPolicy(MobCompactPartitionPolicy value)
已过时。
Set the mob compact partition policy for the family.
|
HColumnDescriptor |
setMobEnabled(boolean value)
已过时。
Enables the mob for the family.
|
HColumnDescriptor |
setMobThreshold(long value)
已过时。
Sets the mob threshold of the family.
|
HColumnDescriptor |
setNewVersionBehavior(boolean newVersionBehavior)
已过时。
|
HColumnDescriptor |
setPrefetchBlocksOnOpen(boolean value)
已过时。
|
HColumnDescriptor |
setScope(int value)
已过时。
|
HColumnDescriptor |
setStoragePolicy(String value)
已过时。
Set the storage policy for use with this family
|
HColumnDescriptor |
setTimeToLive(int value)
已过时。
|
HColumnDescriptor |
setTimeToLive(String value)
已过时。
|
HColumnDescriptor |
setValue(byte[] key,
byte[] value)
已过时。
|
HColumnDescriptor |
setValue(String key,
String value)
已过时。
|
HColumnDescriptor |
setVersions(int minVersions,
int maxVersions)
已过时。
Set minimum and maximum versions to keep
|
byte[] |
toByteArray()
已过时。
|
String |
toString()
已过时。
|
String |
toStringCustomizedValues()
已过时。
|
public static final byte[] REPLICATION_SCOPE_BYTES
public static final byte[] IS_MOB_BYTES
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 short DEFAULT_DFS_REPLICATION
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 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
在接口中 ColumnFamilyDescriptor
public String getNameAsString()
getNameAsString
在接口中 ColumnFamilyDescriptor
public byte[] getValue(byte[] key)
getValue
在接口中 ColumnFamilyDescriptor
key
- The key.public Map<Bytes,Bytes> getValues()
ColumnFamilyDescriptor
getValues
在接口中 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
在接口中 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
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setBlocksize(int value)
value
- Blocksize to use when writing out storefiles/hfiles on this
column family.public Compression.Algorithm getCompressionType()
getCompressionType
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setCompressionType(Compression.Algorithm value)
value
- Compression type setting.public DataBlockEncoding getDataBlockEncoding()
getDataBlockEncoding
在接口中 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
在接口中 ColumnFamilyDescriptor
public Compression.Algorithm getCompactionCompressionType()
getCompactionCompressionType
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setCompactionCompressionType(Compression.Algorithm value)
value
- Compression type setting.public boolean isInMemory()
isInMemory
在接口中 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
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setInMemoryCompaction(MemoryCompactionPolicy value)
value
- the prefered in-memory compaction policy
for this column familypublic KeepDeletedCells getKeepDeletedCells()
getKeepDeletedCells
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setKeepDeletedCells(KeepDeletedCells value)
value
- True if deleted rows should not be collected
immediately.public boolean isNewVersionBehavior()
isNewVersionBehavior
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setNewVersionBehavior(boolean newVersionBehavior)
public int getTimeToLive()
getTimeToLive
在接口中 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
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setMinVersions(int value)
value
- The minimum number of versions to keep.
(used when timeToLive is set)public boolean isBlockCacheEnabled()
isBlockCacheEnabled
在接口中 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
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setBloomFilterType(BloomType value)
value
- bloom filter typepublic int getScope()
getScope
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setScope(int value)
value
- the scope tagpublic boolean isCacheDataOnWrite()
isCacheDataOnWrite
在接口中 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
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setCacheIndexesOnWrite(boolean value)
value
- true if we should cache index blocks on writepublic boolean isCacheBloomsOnWrite()
isCacheBloomsOnWrite
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setCacheBloomsOnWrite(boolean value)
value
- true if we should cache bloomfilter blocks on writepublic boolean isEvictBlocksOnClose()
isEvictBlocksOnClose
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setEvictBlocksOnClose(boolean value)
value
- true if we should evict cached blocks from the blockcache on
closepublic boolean isPrefetchBlocksOnOpen()
isPrefetchBlocksOnOpen
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setPrefetchBlocksOnOpen(boolean value)
value
- true if we should prefetch blocks into the blockcache on openpublic String toString()
toString
在类中 Object
Object.toString()
public String toStringCustomizedValues()
toStringCustomizedValues
在接口中 ColumnFamilyDescriptor
public static PrettyPrinter.Unit getUnit(String key)
public boolean equals(Object obj)
equals
在类中 Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
在类中 Object
Object.hashCode()
public int compareTo(HColumnDescriptor other)
compareTo
在接口中 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
在接口中 ColumnFamilyDescriptor
key
- the key whose associated value is to be returnedpublic Map<String,String> getConfiguration()
getConfiguration
在接口中 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
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setEncryptionType(String value)
value
- public byte[] getEncryptionKey()
getEncryptionKey
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setEncryptionKey(byte[] value)
public long getMobThreshold()
ColumnFamilyDescriptor
getMobThreshold
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setMobThreshold(long value)
value
- The mob threshold.public boolean isMobEnabled()
ColumnFamilyDescriptor
isMobEnabled
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setMobEnabled(boolean value)
value
- Whether to enable the mob for the family.public MobCompactPartitionPolicy getMobCompactPartitionPolicy()
ColumnFamilyDescriptor
getMobCompactPartitionPolicy
在接口中 ColumnFamilyDescriptor
public HColumnDescriptor setMobCompactPartitionPolicy(MobCompactPartitionPolicy value)
value
- policy typepublic short getDFSReplication()
getDFSReplication
在接口中 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
在接口中 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
在接口中 ColumnFamilyDescriptor
key
- The key.protected ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor getDelegateeForModification()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.