本文整理了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));
}