/** * @param key The key. * @return The value as a string. */ public String getValue(String key) { byte[] value = getValue(Bytes.toBytes(key)); return value == null ? null : Bytes.toString(value); }
/** * @param key The key. * @return The value as a string. */ public String getValue(String key) { byte[] value = getValue(Bytes.toBytes(key)); return value == null ? null : Bytes.toString(value); }
assertNull(hTable.getTableDescriptor().getFamily(FAMILY).getValue( "hbase.hstore.compaction.min"));
value = c.getValue(attrName); assertFalse("missing HCD attribute value", value == null); assertFalse("HCD attribute value is incorrect",
hcd = modifiedHtd.getFamily(xtracol.getName()); assertTrue(hcd != null); assertTrue(hcd.getValue(xtracolName).equals(xtracolName));
/** * @return True if we are to keep all in use HRegionServer cache. */ public boolean isInMemory() { String value = getValue(HConstants.IN_MEMORY); if (value != null) return Boolean.valueOf(value).booleanValue(); return DEFAULT_IN_MEMORY; }
/** * @return true if we should cache data blocks on write */ public boolean shouldCacheDataOnWrite() { String value = getValue(CACHE_DATA_ON_WRITE); if (value != null) { return Boolean.valueOf(value).booleanValue(); } return DEFAULT_CACHE_DATA_ON_WRITE; }
/** * @return Time-to-live of cell contents, in seconds. */ public int getTimeToLive() { String value = getValue(TTL); return (value != null)? Integer.valueOf(value).intValue(): DEFAULT_TTL; }
/** * @return true if we should evict cached blocks from the blockcache on * close */ public boolean shouldEvictBlocksOnClose() { String value = getValue(EVICT_BLOCKS_ON_CLOSE); if (value != null) { return Boolean.valueOf(value).booleanValue(); } return DEFAULT_EVICT_BLOCKS_ON_CLOSE; }
/** * @param key The key. * @return The value as a string. */ public String getValue(String key) { byte[] value = getValue(Bytes.toBytes(key)); if (value == null) return null; return Bytes.toString(value); }
/** * @return True if MapFile blocks should be cached. */ public boolean isBlockCacheEnabled() { String value = getValue(BLOCKCACHE); if (value != null) return Boolean.valueOf(value).booleanValue(); return DEFAULT_BLOCKCACHE; }
/** * @return the scope tag */ public int getScope() { String value = getValue(REPLICATION_SCOPE); if (value != null) { return Integer.valueOf(value).intValue(); } return DEFAULT_REPLICATION_SCOPE; }
/** * @return true if we should cache bloomfilter blocks on write */ public boolean shouldCacheBloomsOnWrite() { String value = getValue(CACHE_BLOOMS_ON_WRITE); if (value != null) { return Boolean.valueOf(value).booleanValue(); } return DEFAULT_CACHE_BLOOMS_ON_WRITE; }
if (defaultDescriptor.getValue(prop.getFirst()) == null) { tableProps.put(prop.getFirst(), prop.getSecond()); } else {
/** * @return the data block encoding algorithm used in block cache and * optionally on disk */ public DataBlockEncoding getDataBlockEncoding() { String type = getValue(DATA_BLOCK_ENCODING); if (type == null) { type = DEFAULT_DATA_BLOCK_ENCODING; } return DataBlockEncoding.valueOf(type); }
/** * @return bloom filter type used for new StoreFiles in ColumnFamily */ public StoreFile.BloomType getBloomFilterType() { String n = getValue(BLOOMFILTER); if (n == null) { n = DEFAULT_BLOOMFILTER; } return StoreFile.BloomType.valueOf(n.toUpperCase()); }
/** @return compression type being used for the column family */ public Compression.Algorithm getCompression() { String n = getValue(COMPRESSION); if (n == null) { return Compression.Algorithm.NONE; } return Compression.Algorithm.valueOf(n.toUpperCase()); }
public static boolean OmidCompactionEnabled(ObserverContext<RegionCoprocessorEnvironment> env, Store store, String cfFlagValue) { HTableDescriptor desc = env.getEnvironment().getRegion().getTableDesc(); HColumnDescriptor famDesc = desc.getFamily(Bytes.toBytes(store.getColumnFamilyName())); return Boolean.valueOf(famDesc.getValue(cfFlagValue)); }