use of org.apache.asterix.lang.sqlpp.struct.SetOperationRight in project asterixdb by apache.
the class SqlppInlineUdfsVisitor method visit.
@Override
public Boolean visit(SelectSetOperation selectSetOperation, List<FunctionDecl> funcs) throws CompilationException {
boolean changed = false;
changed |= selectSetOperation.getLeftInput().accept(this, funcs);
for (SetOperationRight right : selectSetOperation.getRightInputs()) {
changed |= right.getSetOperationRightInput().accept(this, funcs);
}
return changed;
}
use of org.apache.asterix.lang.sqlpp.struct.SetOperationRight in project asterixdb by apache.
the class SqlppAstPrintVisitor method visit.
@Override
public Void visit(SelectSetOperation selectSetOperation, Integer step) throws CompilationException {
selectSetOperation.getLeftInput().accept(this, step);
if (selectSetOperation.hasRightInputs()) {
for (SetOperationRight right : selectSetOperation.getRightInputs()) {
String all = right.isSetSemantics() ? " ALL " : "";
out.println(skip(step) + right.getSetOpType() + all);
right.getSetOperationRightInput().accept(this, step + 1);
}
}
return null;
}
use of org.apache.asterix.lang.sqlpp.struct.SetOperationRight in project asterixdb by apache.
the class SqlppFormatPrintVisitor method visit.
@Override
public Void visit(SelectSetOperation selectSetOperation, Integer step) throws CompilationException {
selectSetOperation.getLeftInput().accept(this, step);
if (selectSetOperation.hasRightInputs()) {
for (SetOperationRight right : selectSetOperation.getRightInputs()) {
String all = right.isSetSemantics() ? " " : " all ";
out.print(right.getSetOpType() + all);
right.getSetOperationRightInput().accept(this, step);
}
}
return null;
}
Aggregations