本文整理了Java中org.apache.flink.configuration.Configuration.convertToLong()
方法的一些代码示例,展示了Configuration.convertToLong()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.convertToLong()
方法的具体详情如下:
包路径:org.apache.flink.configuration.Configuration
类名称:Configuration
方法名:convertToLong
暂无
代码示例来源:origin: apache/flink
/**
* Returns the value associated with the given key as a long.
*
* @param key
* the key pointing to the associated value
* @param defaultValue
* the default value which is returned in case there is no value associated with the given key
* @return the (default) value associated with the given key
*/
public long getLong(String key, long defaultValue) {
Object o = getRawValue(key);
if (o == null) {
return defaultValue;
}
return convertToLong(o, defaultValue);
}
代码示例来源:origin: apache/flink
/**
* Returns the value associated with the given config option as a long integer.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public long getLong(ConfigOption<Long> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToLong(o, configOption.defaultValue());
}
代码示例来源:origin: apache/flink
/**
* Returns the value associated with the given config option as a long integer.
* If no value is mapped under any key of the option, it returns the specified
* default instead of the option's default value.
*
* @param configOption The configuration option
* @param overrideDefault The value to return if no value was mapper for any key of the option
* @return the configured value associated with the given config option, or the overrideDefault
*/
@PublicEvolving
public long getLong(ConfigOption<Long> configOption, long overrideDefault) {
Object o = getRawValueFromOption(configOption);
if (o == null) {
return overrideDefault;
}
return convertToLong(o, configOption.defaultValue());
}
代码示例来源:origin: com.alibaba.blink/flink-core
/**
* Returns the value associated with the given key as a long.
*
* @param key
* the key pointing to the associated value
* @param defaultValue
* the default value which is returned in case there is no value associated with the given key
* @return the (default) value associated with the given key
*/
public long getLong(String key, long defaultValue) {
Object o = getRawValue(key);
if (o == null) {
return defaultValue;
}
return convertToLong(o, defaultValue);
}
代码示例来源:origin: org.apache.flink/flink-core
/**
* Returns the value associated with the given key as a long.
*
* @param key
* the key pointing to the associated value
* @param defaultValue
* the default value which is returned in case there is no value associated with the given key
* @return the (default) value associated with the given key
*/
public long getLong(String key, long defaultValue) {
Object o = getRawValue(key);
if (o == null) {
return defaultValue;
}
return convertToLong(o, defaultValue);
}
代码示例来源:origin: org.apache.flink/flink-core
/**
* Returns the value associated with the given config option as a long integer.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public long getLong(ConfigOption<Long> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToLong(o, configOption.defaultValue());
}
代码示例来源:origin: com.alibaba.blink/flink-core
/**
* Returns the value associated with the given config option as a long integer.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public long getLong(ConfigOption<Long> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToLong(o, configOption.defaultValue());
}
代码示例来源:origin: org.apache.flink/flink-core
/**
* Returns the value associated with the given config option as a long integer.
* If no value is mapped under any key of the option, it returns the specified
* default instead of the option's default value.
*
* @param configOption The configuration option
* @param overrideDefault The value to return if no value was mapper for any key of the option
* @return the configured value associated with the given config option, or the overrideDefault
*/
@PublicEvolving
public long getLong(ConfigOption<Long> configOption, long overrideDefault) {
Object o = getRawValueFromOption(configOption);
if (o == null) {
return overrideDefault;
}
return convertToLong(o, configOption.defaultValue());
}
代码示例来源:origin: com.alibaba.blink/flink-core
/**
* Returns the value associated with the given config option as a long integer.
* If no value is mapped under any key of the option, it returns the specified
* default instead of the option's default value.
*
* @param configOption The configuration option
* @param overrideDefault The value to return if no value was mapper for any key of the option
* @return the configured value associated with the given config option, or the overrideDefault
*/
@PublicEvolving
public long getLong(ConfigOption<Long> configOption, long overrideDefault) {
Object o = getRawValueFromOption(configOption);
if (o == null) {
return overrideDefault;
}
return convertToLong(o, configOption.defaultValue());
}
内容来源于网络,如有侵权,请联系作者删除!