本文整理了Java中org.apache.calcite.util.Util.getBooleanProperty()
方法的一些代码示例,展示了Util.getBooleanProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.getBooleanProperty()
方法的具体详情如下:
包路径:org.apache.calcite.util.Util
类名称:Util
方法名:getBooleanProperty
[英]Returns the value of a system property as a boolean.
For example, the property "foo" is considered true if you supply -Dfoo or -Dfoo=true or -Dfoo=TRUE, false if you omit the flag or supply -Dfoo=false.
[中]以布尔值形式返回系统属性的值。
例如,如果提供-Dfoo或-Dfoo=true或-Dfoo=true,则属性“foo”被视为true;如果省略标志或提供-Dfoo=false,则属性“foo”被视为false。
代码示例来源:origin: Qihoo360/Quicksql
/** Returns the value of a system property as a boolean.
*
* <p>For example, the property "foo" is considered true if you supply
* {@code -Dfoo} or {@code -Dfoo=true} or {@code -Dfoo=TRUE},
* false if you omit the flag or supply {@code -Dfoo=false}.
*
* @param property Property name
* @return Whether property is true
*/
public static boolean getBooleanProperty(String property) {
return getBooleanProperty(property, false);
}
代码示例来源:origin: org.apache.calcite/calcite-core
/** Returns the value of a system property as a boolean.
*
* <p>For example, the property "foo" is considered true if you supply
* {@code -Dfoo} or {@code -Dfoo=true} or {@code -Dfoo=TRUE},
* false if you omit the flag or supply {@code -Dfoo=false}.
*
* @param property Property name
* @return Whether property is true
*/
public static boolean getBooleanProperty(String property) {
return getBooleanProperty(property, false);
}
代码示例来源:origin: org.apache.calcite/calcite-core
Util.getBooleanProperty("calcite.test.slow");
内容来源于网络,如有侵权,请联系作者删除!