@Override @Deprecated public String getOwnerString() { // Note that every table should have an owner (i.e. should have OWNER_KEY set). // hbase:meta should return system user as owner, not null (see // MasterFileSystem.java:bootstrap()). return getOrDefault(OWNER_KEY, Function.identity(), null); }
/** * This gets the class associated with the flush policy which determines the * stores need to be flushed when flushing a region. The class used by * default is defined in org.apache.hadoop.hbase.regionserver.FlushPolicy. * * @return the class name of the flush policy for this table. If this * returns null, the default flush policy is used. */ @Override public String getFlushPolicyClassName() { return getOrDefault(FLUSH_POLICY_KEY, Function.identity(), null); }
/** * This gets the class associated with the region split policy which * determines when a region split should occur. The class used by default is * defined in org.apache.hadoop.hbase.regionserver.RegionSplitPolicy * * @return the class name of the region split policy for this table. If this * returns null, the default split policy is used. */ @Override public String getRegionSplitPolicyClassName() { return getOrDefault(SPLIT_POLICY_KEY, Function.identity(), null); }
/** * Check if there is the target region count. If so, the normalize plan will be calculated based * on the target region count. * @return target region count after normalize done */ @Override public int getNormalizerTargetRegionCount() { return getOrDefault(NORMALIZER_TARGET_REGION_COUNT_KEY, Integer::valueOf, Integer.valueOf(-1)); }
@Override @Deprecated public String getOwnerString() { // Note that every table should have an owner (i.e. should have OWNER_KEY set). // hbase:meta should return system user as owner, not null (see // MasterFileSystem.java:bootstrap()). return getOrDefault(OWNER_KEY, Function.identity(), null); }
/** * @return true if the read-replicas memstore replication is enabled. */ @Override public boolean hasRegionMemStoreReplication() { return getOrDefault(REGION_MEMSTORE_REPLICATION_KEY, Boolean::valueOf, DEFAULT_REGION_MEMSTORE_REPLICATION); }
/** * This gets the class associated with the flush policy which determines the * stores need to be flushed when flushing a region. The class used by * default is defined in org.apache.hadoop.hbase.regionserver.FlushPolicy. * * @return the class name of the flush policy for this table. If this * returns null, the default flush policy is used. */ @Override public String getFlushPolicyClassName() { return getOrDefault(FLUSH_POLICY_KEY, Function.identity(), null); }
/** * Returns the size of the memstore after which a flush to filesystem is * triggered. * * @return memory cache flush size for each hregion, -1 if not set. * * @see #setMemStoreFlushSize(long) */ @Override public long getMemStoreFlushSize() { return getOrDefault(MEMSTORE_FLUSHSIZE_KEY, Long::valueOf, (long) -1); }
@Override public int getPriority() { return getOrDefault(PRIORITY_KEY, Integer::valueOf, DEFAULT_PRIORITY); }
/** * Returns the maximum size upto which a region can grow to after which a * region split is triggered. The region size is represented by the size of * the biggest store file in that region. * * @return max hregion size for table, -1 if not set. * * @see #setMaxFileSize(long) */ @Override public long getMaxFileSize() { return getOrDefault(MAX_FILESIZE_KEY, Long::valueOf, (long) -1); }
/** * Returns the configured replicas per region */ @Override public int getRegionReplication() { return getOrDefault(REGION_REPLICATION_KEY, Integer::valueOf, DEFAULT_REGION_REPLICATION); }
/** * Check if there is the target region count. If so, the normalize plan will be calculated based * on the target region count. * @return target region count after normalize done */ @Override public int getNormalizerTargetRegionCount() { return getOrDefault(NORMALIZER_TARGET_REGION_COUNT_KEY, Integer::valueOf, Integer.valueOf(-1)); }
/** * Check if the compaction enable flag of the table is true. If flag is * false then no minor/major compactions will be done in real. * * @return true if table compaction enabled */ @Override public boolean isCompactionEnabled() { return getOrDefault(COMPACTION_ENABLED_KEY, Boolean::valueOf, DEFAULT_COMPACTION_ENABLED); }
/** * @return true if the read-replicas memstore replication is enabled. */ @Override public boolean hasRegionMemStoreReplication() { return getOrDefault(REGION_MEMSTORE_REPLICATION_KEY, Boolean::valueOf, DEFAULT_REGION_MEMSTORE_REPLICATION); }
/** * Check if there is the target region size. If so, the normalize plan will be calculated based * on the target region size. * @return target region size after normalize done */ @Override public long getNormalizerTargetRegionSize() { return getOrDefault(NORMALIZER_TARGET_REGION_SIZE_KEY, Long::valueOf, Long.valueOf(-1)); }
/** * Check if the readOnly flag of the table is set. If the readOnly flag is * set then the contents of the table can only be read from but not * modified. * * @return true if all columns in the table should be read only */ @Override public boolean isReadOnly() { return getOrDefault(READONLY_KEY, Boolean::valueOf, DEFAULT_READONLY); }
/** * Checks if this table is <code> hbase:meta </code> region. * * @return true if this table is <code> hbase:meta </code> region */ @Override public boolean isMetaRegion() { return getOrDefault(IS_META_KEY, Boolean::valueOf, false); }
/** * Returns the durability setting for the table. * * @return durability setting for the table. */ @Override public Durability getDurability() { return getOrDefault(DURABILITY_KEY, Durability::valueOf, DEFAULT_DURABLITY); }
/** * Returns the size of the memstore after which a flush to filesystem is * triggered. * * @return memory cache flush size for each hregion, -1 if not set. * * @see #setMemStoreFlushSize(long) */ @Override public long getMemStoreFlushSize() { return getOrDefault(MEMSTORE_FLUSHSIZE_KEY, Long::valueOf, (long) -1); }
/** * Check if normalization enable flag of the table is true. If flag is false * then no region normalizer won't attempt to normalize this table. * * @return true if region normalization is enabled for this table */ @Override public boolean isNormalizationEnabled() { return getOrDefault(NORMALIZATION_ENABLED_KEY, Boolean::valueOf, DEFAULT_NORMALIZATION_ENABLED); }