本文整理汇总了Java中org.apache.calcite.rel.stream.Delta类的典型用法代码示例。如果您正苦于以下问题:Java Delta类的具体用法?Java Delta怎么用?Java Delta使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Delta类属于org.apache.calcite.rel.stream包,在下文中一共展示了Delta类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: requiredCollation
import org.apache.calcite.rel.stream.Delta; //导入依赖的package包/类
private RelCollation requiredCollation(RelNode r) {
if (r instanceof Sort) {
return ((Sort) r).collation;
}
if (r instanceof Project) {
return requiredCollation(((Project) r).getInput());
}
if (r instanceof Delta) {
return requiredCollation(((Delta) r).getInput());
}
throw new AssertionError();
}
开发者ID:axbaretto,项目名称:flink,代码行数:13,代码来源:SqlToRelConverter.java
示例2: visit
import org.apache.calcite.rel.stream.Delta; //导入依赖的package包/类
@Override
public RelInfo visit(RelContext context, RelNode node, List<RelInfo> inputStreams)
{
Delta delta = (Delta)node;
ConsoleOutputOperator console = context.dag
.addOperator(OperatorUtils.getUniqueOperatorName(delta.getRelTypeName()), ConsoleOutputOperator.class);
console.setStringFormat("Delta Record: %s");
return new RelInfo("Delta", Lists.<Operator.InputPort>newArrayList(console.input), console, null,
delta.getRowType());
}
开发者ID:apache,项目名称:apex-malhar,代码行数:13,代码来源:ApexRelNode.java
示例3: traverse
import org.apache.calcite.rel.stream.Delta; //导入依赖的package包/类
public final T traverse(RelNode n) throws Exception {
List<T> inputStreams = new ArrayList<>();
for (RelNode input : n.getInputs()) {
inputStreams.add(traverse(input));
}
if (n instanceof Aggregate) {
return visitAggregate((Aggregate) n, inputStreams);
} else if (n instanceof Calc) {
return visitCalc((Calc) n, inputStreams);
} else if (n instanceof Collect) {
return visitCollect((Collect) n, inputStreams);
} else if (n instanceof Correlate) {
return visitCorrelate((Correlate) n, inputStreams);
} else if (n instanceof Delta) {
return visitDelta((Delta) n, inputStreams);
} else if (n instanceof Exchange) {
return visitExchange((Exchange) n, inputStreams);
} else if (n instanceof Project) {
return visitProject((Project) n, inputStreams);
} else if (n instanceof Filter) {
return visitFilter((Filter) n, inputStreams);
} else if (n instanceof Sample) {
return visitSample((Sample) n, inputStreams);
} else if (n instanceof Sort) {
return visitSort((Sort) n, inputStreams);
} else if (n instanceof TableModify) {
return visitTableModify((TableModify) n, inputStreams);
} else if (n instanceof TableScan) {
return visitTableScan((TableScan) n, inputStreams);
} else if (n instanceof Uncollect) {
return visitUncollect((Uncollect) n, inputStreams);
} else if (n instanceof Window) {
return visitWindow((Window) n, inputStreams);
} else if (n instanceof Join) {
return visitJoin((Join) n, inputStreams);
} else {
return defaultValue(n, inputStreams);
}
}
开发者ID:hortonworks,项目名称:streamline,代码行数:41,代码来源:PostOrderRelNodeVisitor.java
示例4: requiredCollation
import org.apache.calcite.rel.stream.Delta; //导入依赖的package包/类
private RelCollation requiredCollation(RelNode r) {
if (r instanceof Sort) {
return ((Sort) r).collation;
}
if (r instanceof Project) {
return requiredCollation(((Project) r).getInput());
}
if (r instanceof Delta) {
return requiredCollation(((Delta) r).getInput());
}
throw new AssertionError();
}
开发者ID:apache,项目名称:kylin,代码行数:13,代码来源:SqlToRelConverter.java
示例5: visitDelta
import org.apache.calcite.rel.stream.Delta; //导入依赖的package包/类
public T visitDelta(Delta delta, List<T> inputStreams) throws Exception {
return defaultValue(delta, inputStreams);
}
开发者ID:hortonworks,项目名称:streamline,代码行数:4,代码来源:PostOrderRelNodeVisitor.java
示例6: visitDelta
import org.apache.calcite.rel.stream.Delta; //导入依赖的package包/类
@Override
public Void visitDelta(Delta delta, List<Void> inputStreams) throws Exception {
pw.print(String.format(STAGE_PASSTHROUGH, getStageName(delta)));
return null;
}
开发者ID:hortonworks,项目名称:streamline,代码行数:6,代码来源:RelNodeCompiler.java
注:本文中的org.apache.calcite.rel.stream.Delta类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论