本文整理了Java中org.apache.flink.configuration.Configuration.getValueOrDefaultFromOption()
方法的一些代码示例,展示了Configuration.getValueOrDefaultFromOption()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.getValueOrDefaultFromOption()
方法的具体详情如下:
包路径:org.apache.flink.configuration.Configuration
类名称:Configuration
方法名:getValueOrDefaultFromOption
暂无
代码示例来源:origin: apache/flink
/**
* Returns the value associated with the given config option as a string.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public String getString(ConfigOption<String> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return o == null ? null : o.toString();
}
代码示例来源:origin: apache/flink
/**
* Returns the value associated with the given config option as a string.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public String getValue(ConfigOption<?> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return o == null ? null : o.toString();
}
代码示例来源:origin: apache/flink
/**
* Returns the value associated with the given config option as a boolean.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public boolean getBoolean(ConfigOption<Boolean> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToBoolean(o);
}
代码示例来源:origin: apache/flink
/**
* Returns the value associated with the given config option as an integer.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public int getInteger(ConfigOption<Integer> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToInt(o, configOption.defaultValue());
}
代码示例来源:origin: apache/flink
/**
* Returns the value associated with the given config option as a {@code double}.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public double getDouble(ConfigOption<Double> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToDouble(o, configOption.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 float.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public float getFloat(ConfigOption<Float> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToFloat(o, configOption.defaultValue());
}
代码示例来源:origin: com.alibaba.blink/flink-core
/**
* Returns the value associated with the given config option as a string.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public String getValue(ConfigOption<?> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return o == null ? null : o.toString();
}
代码示例来源:origin: org.apache.flink/flink-core
/**
* Returns the value associated with the given config option as a string.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public String getString(ConfigOption<String> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return o == null ? null : o.toString();
}
代码示例来源:origin: org.apache.flink/flink-core
/**
* Returns the value associated with the given config option as a string.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public String getValue(ConfigOption<?> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return o == null ? null : o.toString();
}
代码示例来源:origin: com.alibaba.blink/flink-core
/**
* Returns the value associated with the given config option as a string.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public String getString(ConfigOption<String> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return o == null ? null : o.toString();
}
代码示例来源:origin: org.apache.flink/flink-core
/**
* Returns the value associated with the given config option as a boolean.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public boolean getBoolean(ConfigOption<Boolean> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToBoolean(o);
}
代码示例来源:origin: com.alibaba.blink/flink-core
/**
* Returns the value associated with the given config option as a boolean.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public boolean getBoolean(ConfigOption<Boolean> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToBoolean(o);
}
代码示例来源:origin: org.apache.flink/flink-core
/**
* Returns the value associated with the given config option as an integer.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public int getInteger(ConfigOption<Integer> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToInt(o, configOption.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: org.apache.flink/flink-core
/**
* Returns the value associated with the given config option as a float.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public float getFloat(ConfigOption<Float> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToFloat(o, configOption.defaultValue());
}
代码示例来源:origin: com.alibaba.blink/flink-core
/**
* Returns the value associated with the given config option as a float.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public float getFloat(ConfigOption<Float> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToFloat(o, configOption.defaultValue());
}
代码示例来源:origin: com.alibaba.blink/flink-core
/**
* Returns the value associated with the given config option as an integer.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public int getInteger(ConfigOption<Integer> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToInt(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 {@code double}.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public double getDouble(ConfigOption<Double> configOption) {
Object o = getValueOrDefaultFromOption(configOption);
return convertToDouble(o, configOption.defaultValue());
}
内容来源于网络,如有侵权,请联系作者删除!