@InterfaceAudience.Public public class TableDescriptorBuilder extends Object
TableDescriptor
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_COMPACTION_ENABLED
Constant that denotes whether the table is compaction enabled by default
|
static long |
DEFAULT_MEMSTORE_FLUSH_SIZE
Constant that denotes the maximum default size of the memstore in bytes after which
the contents are flushed to the store files.
|
static boolean |
DEFAULT_MERGE_ENABLED
Constant that denotes whether the table is merge enabled by default
|
static boolean |
DEFAULT_NORMALIZATION_ENABLED
Constant that denotes whether the table is normalized by default.
|
static boolean |
DEFAULT_READONLY
Constant that denotes whether the table is READONLY by default and is false
|
static boolean |
DEFAULT_REGION_MEMSTORE_REPLICATION |
static int |
DEFAULT_REGION_REPLICATION |
static boolean |
DEFAULT_SPLIT_ENABLED
Constant that denotes whether the table is split enabled by default
|
static org.slf4j.Logger |
LOG |
static TableDescriptor |
NAMESPACE_TABLEDESC
Table descriptor for namespace table
|
public static final org.slf4j.Logger LOG
public static final boolean DEFAULT_READONLY
public static final boolean DEFAULT_COMPACTION_ENABLED
public static final boolean DEFAULT_SPLIT_ENABLED
public static final boolean DEFAULT_MERGE_ENABLED
public static final boolean DEFAULT_NORMALIZATION_ENABLED
public static final long DEFAULT_MEMSTORE_FLUSH_SIZE
public static final int DEFAULT_REGION_REPLICATION
public static final boolean DEFAULT_REGION_MEMSTORE_REPLICATION
public static final TableDescriptor NAMESPACE_TABLEDESC
public static byte[] toByteArray(TableDescriptor desc)
desc
- The table descriptor to serializepublic static TableDescriptor parseFrom(byte[] pbBytes) throws org.apache.hadoop.hbase.exceptions.DeserializationException
toByteArray(org.apache.hadoop.hbase.client.TableDescriptor)
.pbBytes
- A pb serialized TableDescriptor instance with pb magic prefixorg.apache.hadoop.hbase.exceptions.DeserializationException
public static TableDescriptorBuilder newBuilder(TableName name)
public static TableDescriptor copy(TableDescriptor desc)
public static TableDescriptor copy(TableName name, TableDescriptor desc)
public static TableDescriptorBuilder newBuilder(TableDescriptor desc)
desc
- The desciptor to copy@Deprecated public TableDescriptorBuilder addCoprocessor(String className) throws IOException
setCoprocessor(String)
insteadIOException
@Deprecated public TableDescriptorBuilder addCoprocessor(String className, org.apache.hadoop.fs.Path jarFilePath, int priority, Map<String,String> kvs) throws IOException
setCoprocessor(CoprocessorDescriptor)
insteadIOException
@Deprecated public TableDescriptorBuilder addCoprocessorWithSpec(String specStr) throws IOException
setCoprocessor(CoprocessorDescriptor)
insteadIOException
@Deprecated public TableDescriptorBuilder addColumnFamily(ColumnFamilyDescriptor family)
setColumnFamily(ColumnFamilyDescriptor)
insteadpublic TableDescriptorBuilder setCoprocessor(String className) throws IOException
IOException
public TableDescriptorBuilder setCoprocessor(CoprocessorDescriptor cpDesc) throws IOException
IOException
public TableDescriptorBuilder setCoprocessors(Collection<CoprocessorDescriptor> cpDescs) throws IOException
IOException
public TableDescriptorBuilder setColumnFamily(ColumnFamilyDescriptor family)
public TableDescriptorBuilder setColumnFamilies(Collection<ColumnFamilyDescriptor> families)
public TableDescriptorBuilder modifyColumnFamily(ColumnFamilyDescriptor family)
public TableDescriptorBuilder removeValue(Bytes key)
public TableDescriptorBuilder removeValue(byte[] key)
public TableDescriptorBuilder removeColumnFamily(byte[] name)
public TableDescriptorBuilder removeCoprocessor(String className)
public TableDescriptorBuilder setCompactionEnabled(boolean isEnable)
public TableDescriptorBuilder setSplitEnabled(boolean isEnable)
public TableDescriptorBuilder setMergeEnabled(boolean isEnable)
public TableDescriptorBuilder setDurability(Durability durability)
public TableDescriptorBuilder setFlushPolicyClassName(String clazz)
public TableDescriptorBuilder setMaxFileSize(long maxFileSize)
public TableDescriptorBuilder setMemStoreFlushSize(long memstoreFlushSize)
public TableDescriptorBuilder setNormalizerTargetRegionCount(int regionCount)
public TableDescriptorBuilder setNormalizerTargetRegionSize(long regionSize)
public TableDescriptorBuilder setNormalizationEnabled(boolean isEnable)
@Deprecated public TableDescriptorBuilder setOwner(User owner)
@Deprecated public TableDescriptorBuilder setOwnerString(String ownerString)
public TableDescriptorBuilder setPriority(int priority)
public TableDescriptorBuilder setReadOnly(boolean readOnly)
public TableDescriptorBuilder setRegionMemStoreReplication(boolean memstoreReplication)
public TableDescriptorBuilder setRegionReplication(int regionReplication)
public TableDescriptorBuilder setRegionSplitPolicyClassName(String clazz)
public TableDescriptorBuilder setValue(String key, String value)
public TableDescriptorBuilder setValue(Bytes key, Bytes value)
public TableDescriptorBuilder setValue(byte[] key, byte[] value)
public TableDescriptorBuilder setReplicationScope(int scope)
scope
- replication scopepublic TableDescriptor build()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.