本文整理了Java中org.apache.calcite.plan.RelOptUtil.isDistinctFrom
方法的一些代码示例,展示了RelOptUtil.isDistinctFrom
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RelOptUtil.isDistinctFrom
方法的具体详情如下:
包路径:org.apache.calcite.plan.RelOptUtil
类名称:RelOptUtil
方法名:isDistinctFrom
[英]Returns a translation of the IS DISTINCT FROM
(or IS NOT DISTINCT FROM
) sql operator.
[中]返回IS DISTINCT FROM
(或IS NOT DISTINCT FROM
)sql运算符的翻译。
代码示例来源:origin: Qihoo360/Quicksql
public RexNode visitCall(RexCall call) {
RexNode newCall = super.visitCall(call);
if (call.getOperator()
== SqlStdOperatorTable.IS_NOT_DISTINCT_FROM) {
RexCall tmpCall = (RexCall) newCall;
newCall =
RelOptUtil.isDistinctFrom(
rexBuilder,
tmpCall.operands.get(0),
tmpCall.operands.get(1),
true);
}
return newCall;
}
}
代码示例来源:origin: org.apache.calcite/calcite-core
public RexNode visitCall(RexCall call) {
RexNode newCall = super.visitCall(call);
if (call.getOperator()
== SqlStdOperatorTable.IS_NOT_DISTINCT_FROM) {
RexCall tmpCall = (RexCall) newCall;
newCall =
RelOptUtil.isDistinctFrom(
rexBuilder,
tmpCall.operands.get(0),
tmpCall.operands.get(1),
true);
}
return newCall;
}
}
代码示例来源:origin: org.apache.calcite/calcite-core
private RexNode convertIsDistinctFrom(
SqlRexContext cx,
SqlCall call,
boolean neg) {
RexNode op0 = cx.convertExpression(call.operand(0));
RexNode op1 = cx.convertExpression(call.operand(1));
return RelOptUtil.isDistinctFrom(
cx.getRexBuilder(), op0, op1, neg);
}
代码示例来源:origin: Qihoo360/Quicksql
private RexNode convertIsDistinctFrom(
SqlRexContext cx,
SqlCall call,
boolean neg) {
RexNode op0 = cx.convertExpression(call.operand(0));
RexNode op1 = cx.convertExpression(call.operand(1));
return RelOptUtil.isDistinctFrom(
cx.getRexBuilder(), op0, op1, neg);
}
代码示例来源:origin: Qihoo360/Quicksql
for (int i = 1; i < operands.size() - 1; i += 2) {
exprs.add(
RelOptUtil.isDistinctFrom(rexBuilder, operands.get(0),
operands.get(i), true));
exprs.add(operands.get(i + 1));
代码示例来源:origin: org.apache.calcite/calcite-core
for (int i = 1; i < operands.size() - 1; i += 2) {
exprs.add(
RelOptUtil.isDistinctFrom(rexBuilder, operands.get(0),
operands.get(i), true));
exprs.add(operands.get(i + 1));
内容来源于网络,如有侵权,请联系作者删除!