static TypeClass of(Type ty, Class<?> clazz) { return new TypeClass(ty, clazz); } }
public T visitProject(Project project, List<T> inputStreams) throws Exception { return defaultValue(project, inputStreams); }
private void chainOperators(PrintWriter pw, RelNode root, Set<TableScan> tables) { doChainOperators(pw, root, tables, "r"); }
private String generateJavaSource(RelNode root) throws Exception { StringWriter sw = new StringWriter(); try (PrintWriter pw = new PrintWriter(sw)) { RelNodeCompiler compiler = new RelNodeCompiler(pw, typeFactory); printPrologue(pw); compiler.traverse(root); printMain(pw, root); printEpilogue(pw); } return sw.toString(); }
@Override public Void visitJoin(Join join, List<Void> inputStreams) { beginJoinStage(join); pw.println(" if (source == left) {"); pw.println(" leftRows.add(_data);"); pw.println(" } else if (source == right) {"); pw.println(" rightRows.add(_data);"); pw.println(" }"); endStage(); return null; }
public BlockStatement compileToBlock(List<RexNode> nodes, RelDataType inputRowType) { final RexProgramBuilder programBuilder = new RexProgramBuilder(inputRowType, rexBuilder); for (RexNode node : nodes) { programBuilder.addProject(node, null); } return compileToBlock(programBuilder.getProgram()); }
public T visitCalc(Calc calc, List<T> inputStreams) throws Exception { return defaultValue(calc, inputStreams); }
public T visitCorrelate(Correlate correlate, List<T> inputStreams) throws Exception { return defaultValue(correlate, inputStreams); }
public T visitFilter(Filter filter, List<T> inputStreams) throws Exception { return defaultValue(filter, inputStreams); }
public T visitSort(Sort sort, List<T> inputStreams) throws Exception { return defaultValue(sort, inputStreams); }
public T visitTableModify(TableModify modify, List<T> inputStreams) throws Exception { return defaultValue(modify, inputStreams); }
public T visitTableScan(TableScan scan, List<T> inputStreams) throws Exception { return defaultValue(scan, inputStreams); }
public T visitJoin(Join join, List<T> inputStreams) throws Exception { return defaultValue(join, inputStreams); }
public T visitAggregate(Aggregate aggregate, List<T> inputStreams) throws Exception { return defaultValue(aggregate, inputStreams); }
public T visitDelta(Delta delta, List<T> inputStreams) throws Exception { return defaultValue(delta, inputStreams); }
public T visitExchange(Exchange exchange, List<T> inputStreams) throws Exception { return defaultValue(exchange, inputStreams); }
public T visitSample(Sample sample, List<T> inputStreams) throws Exception { return defaultValue(sample, inputStreams); }
public T visitUncollect(Uncollect uncollect, List<T> inputStreams) throws Exception { return defaultValue(uncollect, inputStreams); }
public T visitCollect(Collect collect, List<T> inputStreams) throws Exception { return defaultValue(collect, inputStreams); }
public T visitWindow(Window window, List<T> inputStreams) throws Exception { return defaultValue(window, inputStreams); }