/** * Delegates to the underlying configuration. */ @Override public float getFloat(String key, float defaultValue) { return config.getFloat(key, defaultValue); }
/** * Delegates to the underlying configuration. */ @Override public Float getFloat(String key, Float defaultValue) { return config.getFloat(key, defaultValue); }
/** * Delegates to the underlying configuration. */ @Override public float getFloat(String key) { return config.getFloat(key); }
@Override public Float readValue(String name, Float defValue) { return config().getFloat(name, defValue); } }
/** * Delegates to the underlying configuration. */ @Override public float getFloat(String key, float defaultValue) { return config.getFloat(key, defaultValue); }
/** * Delegates to the underlying configuration. */ @Override public Float getFloat(String key, Float defaultValue) { return config.getFloat(key, defaultValue); }
@Override public float getFloat(final String key) { return delegate.getFloat(key); }
@Override public float getFloat(final String key, final float defaultValue) { return delegate.getFloat(key, defaultValue); }
@Override public Float getFloat(final String key, final Float defaultValue) { return delegate.getFloat(key, defaultValue); }
/** * Delegates to the underlying configuration. */ @Override public float getFloat(String key) { return config.getFloat(key); }
public float getFloat(String key, float defaultValue) { try { return configuration.getFloat(key, defaultValue); } catch (Exception e) { log.info("Return default value '{}' for '{}' because of '{}'", defaultValue, key , e.toString()); return defaultValue; } }
public SoftClipConfiguration(Configuration config) { config = config.subset(CONFIGURATION_PREFIX); minAverageQual = config.getFloat("minAverageQual"); minLength = config.getInt("minLength"); minAnchorIdentity = config.getFloat("minAnchorIdentity"); realignSplitReads = config.getBoolean("realignSplitReads"); } /**
public float getFloat(String key) { try { return configuration.getFloat(key); } catch (NoSuchElementException e) { log.info("Return '0F' for '{}' because of '{}'", key , e.toString()); return 0F; } }
@Override public float getMandatoryFloat(String key) throws ConfigNotFoundException { assertKey(key); return config.getFloat(key); }
public ErrorCorrectionConfiguration(Configuration config) { config = config.subset(CONFIGURATION_PREFIX); maxBaseMismatchForCollapse = config.getInt("maxBaseMismatchForCollapse"); collapseBubblesOnly = config.getBoolean("collapseBubblesOnly"); maxPathCollapseLengthMultiple = config.getFloat("maxPathCollapseLengthMultiple"); } /**
@Override public float getFloat(final String key, final float defaultValue) { return configuration.getFloat(childNodeKey(key), defaultValue); }
public static float getFloat(Configuration config, String property) throws InvalidConfigurationException { ensureConfigurationKeyExists(config, property); try { return config.getFloat(property); } catch (ConversionException ignore) { throw new InvalidConfigurationException("Invalid value for property \"" + resolve(config, property) + "\": \"" + config.getString(property) + "\", expected a floating point value."); } }
/** * Returns the configured default result size in bytes. * * @return long */ public static long getDefaultResultSize() { float value = ConfigurationUtil.getConfiguration().getFloat( "hbase.scan.default.result.size"); return convertToBytes(value, getResultSizeUnit()); }
/** * Returns the configured max row size in bytes. * * @return long */ public static long getMaxRowSize() { float maxRowSize = ConfigurationUtil.getConfiguration().getFloat( "hbase.table.max.row.size"); return convertToBytes(maxRowSize, getRowSizeUnit()); }
/** * Returns the configured max result size in bytes. * * @return long */ public static long getMaxResultSize() { float value = ConfigurationUtil.getConfiguration().getFloat( "hbase.scan.max.result.size"); return convertToBytes(value, getResultSizeUnit()); }