org.apache.calcite.plan.RelOptUtil.isDistinctFrom()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(73)

本文整理了Java中org.apache.calcite.plan.RelOptUtil.isDistinctFrom方法的一些代码示例,展示了RelOptUtil.isDistinctFrom的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RelOptUtil.isDistinctFrom方法的具体详情如下:
包路径:org.apache.calcite.plan.RelOptUtil
类名称:RelOptUtil
方法名:isDistinctFrom

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));

相关文章

微信公众号

最新文章

更多

RelOptUtil类方法