本文整理了Java中org.h2.value.Value.divide()
方法的一些代码示例,展示了Value.divide()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Value.divide()
方法的具体详情如下:
包路径:org.h2.value.Value
类名称:Value
方法名:divide
[英]Divide by a value and return the result.
[中]除以一个值并返回结果。
代码示例来源:origin: com.h2database/h2
@Override
public Value divide(final Value v) {
final Value iv = v.convertTo(Value.INT);
return convertTo(Value.INT).divide(iv);
}
代码示例来源:origin: com.h2database/h2
private static Value divide(Value a, long by) {
if (by == 0) {
return ValueNull.INSTANCE;
}
int type = Value.getHigherOrder(a.getType(), Value.LONG);
Value b = ValueLong.get(by).convertTo(type);
a = a.convertTo(type).divide(b);
return a;
}
代码示例来源:origin: com.h2database/h2
return ValueNull.INSTANCE;
return l.divide(r);
case MODULUS:
if (l == ValueNull.INSTANCE || r == ValueNull.INSTANCE) {
代码示例来源:origin: com.h2database/com.springsource.org.h2
private Value divide(Value a, long count) throws SQLException {
if (count == 0) {
return ValueNull.INSTANCE;
}
int type = Value.getHigherOrder(a.getType(), Value.LONG);
Value b = ValueLong.get(count).convertTo(type);
a = a.convertTo(type).divide(b);
return a;
}
代码示例来源:origin: org.wowtools/h2
private static Value divide(Value a, long by) {
if (by == 0) {
return ValueNull.INSTANCE;
}
int type = Value.getHigherOrder(a.getType(), Value.LONG);
Value b = ValueLong.get(by).convertTo(type);
a = a.convertTo(type).divide(b);
return a;
}
代码示例来源:origin: com.eventsourcing/h2
private static Value divide(Value a, long by) {
if (by == 0) {
return ValueNull.INSTANCE;
}
int type = Value.getHigherOrder(a.getType(), Value.LONG);
Value b = ValueLong.get(by).convertTo(type);
a = a.convertTo(type).divide(b);
return a;
}
代码示例来源:origin: com.h2database/com.springsource.org.h2
return ValueNull.INSTANCE;
return l.divide(r);
default:
throw Message.getInternalError("type=" + opType);
代码示例来源:origin: com.eventsourcing/h2
return ValueNull.INSTANCE;
return l.divide(r);
case MODULUS:
if (l == ValueNull.INSTANCE || r == ValueNull.INSTANCE) {
代码示例来源:origin: org.wowtools/h2
return ValueNull.INSTANCE;
return l.divide(r);
case MODULUS:
if (l == ValueNull.INSTANCE || r == ValueNull.INSTANCE) {
内容来源于网络,如有侵权,请联系作者删除!