热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.apache.calcite.rel.RelWriter.item()方法的使用及代码示例

本文整理了Java中org.apache.calcite.rel.RelWriter.item方法的一些代码示例,展示了RelWriter.item

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

RelWriter.item介绍

[英]Adds an attribute to the explanation of the current node.
[中]将属性添加到当前节点的说明中。

代码示例

代码示例来源:origin: apache/kylin

@Override
public RelWriter explainTerms(RelWriter pw) {
return super.explainTerms(pw)
.item("ctx", cOntext== null ? "" : String.valueOf(context.id) + "@" + context.realization)
.itemIf("offset", localOffset, localOffset != null).itemIf("fetch", localFetch, localFetch != null);
}

代码示例来源:origin: apache/hive

@Override
public RelWriter explainTerms(RelWriter pw) {
return super.explainTerms(pw)
.item("algorithm", joinAlgorithm == null ?
"none" : joinAlgorithm)
.item("cost", joinCost == null ?
"not available" : joinCost);
}

代码示例来源:origin: apache/drill

@Override
public RelWriter explainTerms(RelWriter pw) {
return super.explainTerms(pw)
.item("algorithm", joinAlgorithm == null ?
"none" : joinAlgorithm)
.item("cost", joinCost == null ?
"not available" : joinCost);
}

代码示例来源:origin: apache/kylin

@Override
public RelWriter explainTerms(RelWriter pw) {
return super.explainTerms(pw)
.item("ctx", cOntext== null ? "" : String.valueOf(context.id) + "@" + context.realization)//
.itemIf("constants", constants, !constants.isEmpty()) //
.itemIf("groups", groups, !groups.isEmpty());
}

代码示例来源:origin: apache/hive

@Override public RelWriter explainTerms(RelWriter pw) {
if (this.useQBIdInDigest) {
// TODO: Only the qualified name should be left here
return super.explainTerms(pw)
.item("qbid:alias", concatQbIDAlias);
} else {
return super.explainTerms(pw).item("table:alias", tblAlias);
}
}

代码示例来源:origin: apache/kylin

@Override
public RelWriter explainTerms(RelWriter pw) {
boolean cOntextNotNull= context != null;
return super.explainTerms(pw)
.item("ctx", cOntext== null ? "" : String.valueOf(context.id) + "@" + context.realization)
.itemIf("all", all, true);
}
@Override

代码示例来源:origin: apache/kylin

@Override
public RelWriter explainTerms(RelWriter pw) {
return super.explainTerms(pw).item("ctx",
cOntext== null ? "" : String.valueOf(context.id) + "@" + context.realization);
}
}

代码示例来源:origin: apache/kylin

@Override
public RelWriter explainTerms(RelWriter pw) {
return super.explainTerms(pw).item("ctx",
cOntext== null ? "" : String.valueOf(context.id) + "@" + context.realization);
}
}

代码示例来源:origin: apache/kylin

@Override
public RelWriter explainTerms(RelWriter pw) {
return super.explainTerms(pw)
.item("ctx", cOntext== null ? "" : String.valueOf(context.id) + "@" + context.realization)
.item("fields", Primitive.asList(fields));
}

代码示例来源:origin: apache/kylin

@Override
public RelWriter explainTerms(RelWriter pw) {
return super.explainTerms(pw).item("ctx",
cOntext== null ? "" : String.valueOf(context.id) + "@" + context.realization);
}
}

代码示例来源:origin: apache/kylin

@Override
public RelWriter explainTerms(RelWriter pw) {
return super.explainTerms(pw).item("ctx",
cOntext== null ? "" : String.valueOf(context.id) + "@" + context.realization);
}
}

代码示例来源:origin: apache/kylin

@Override
public RelWriter explainTerms(RelWriter pw) {
return super.explainTerms(pw).item("ctx",
cOntext== null ? "" : String.valueOf(context.id) + "@" + context.realization);
}

代码示例来源:origin: apache/drill

@Override public RelWriter explainTerms(RelWriter pw) {
if (this.useQBIdInDigest) {
// TODO: Only the qualified name should be left here
return super.explainTerms(pw)
.item("qbid:alias", concatQbIDAlias);
} else {
return super.explainTerms(pw).item("table:alias", tblAlias);
}
}

代码示例来源:origin: apache/incubator-druid

@Override
public RelWriter explainTerms(RelWriter pw)
{
super.explainTerms(pw);
for (int i = 0; i pw.input(StringUtils.format("input#%d", i), rels.get(i));
}
return pw.item("limit", limit);
}

代码示例来源:origin: apache/incubator-druid

@Override
public RelWriter explainTerms(RelWriter pw)
{
final String queryString;
try {
queryString = getQueryMaker().getJsonMapper().writeValueAsString(toDruidQueryForExplaining().getQuery());
}
catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
return super.explainTerms(pw)
.input("right", right)
.item("query", queryString)
.item("leftExpressions", leftExpressions)
.item("rightKeys", rightKeys);
}

代码示例来源:origin: apache/hive

@Override
public RelWriter explainTerms(RelWriter pw) {
List joinsString = new ArrayList();
for (int i = 0; i final StringBuilder sb = new StringBuilder();
sb.append(joinInputs.get(i).left).append(" - ").append(joinInputs.get(i).right)
.append(" : ").append(joinTypes.get(i).name());
joinsString.add(sb.toString());
}
super.explainTerms(pw);
for (Ord ord : Ord.zip(inputs)) {
pw.input("input#" + ord.i, ord.e);
}
return pw.item("condition", condition)
.item("joinsDescription", joinsString);
}

代码示例来源:origin: apache/incubator-druid

@Override
public RelWriter explainTerms(final RelWriter pw)
{
final String queryString;
final DruidQuery druidQuery = toDruidQueryForExplaining();
try {
queryString = getQueryMaker().getJsonMapper().writeValueAsString(druidQuery.getQuery());
}
catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
return pw.item("query", queryString)
.item("signature", druidQuery.getOutputRowSignature());
}

代码示例来源:origin: apache/nifi

@Override
public RelWriter explainTerms(final RelWriter pw) {
return super.explainTerms(pw).item("fields", Primitive.asList(fields));
}

代码示例来源:origin: apache/incubator-druid

@Override
public RelWriter explainTerms(RelWriter pw)
{
final String queryString;
final DruidQuery druidQuery = toDruidQueryForExplaining();
try {
queryString = getQueryMaker().getJsonMapper().writeValueAsString(druidQuery.getQuery());
}
catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
return super.explainTerms(pw)
.input("innerQuery", sourceRel)
.item("query", queryString)
.item("signature", druidQuery.getOutputRowSignature());
}

代码示例来源:origin: apache/drill

@Override
public RelWriter explainTerms(RelWriter pw) {
return super.explainTerms(pw).item("sql", stripToOneLineSql(sql));
}

推荐阅读
author-avatar
手机用户2602916275
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有