public void visitChild(RelNode parent, RelNode child) {
   if (parent instanceof OLAPRel) {
     OLAPRel olapRel = (OLAPRel) parent;
     this.parentContext = olapRel.getContext();
   }
   OLAPRel olapChild = (OLAPRel) child;
   olapChild.implementRewrite(this);
 }
 @Override
 public EnumerableRel.Result visitChild(
     EnumerableRel parent, int ordinal, EnumerableRel child, EnumerableRel.Prefer prefer) {
   if (parent instanceof OLAPRel) {
     OLAPRel olapRel = (OLAPRel) parent;
     this.parentContext = olapRel.getContext();
   }
   return super.visitChild(parent, ordinal, child, prefer);
 }
 public void visitChild(RelNode input, RelNode parentNode) {
   this.parentNode = parentNode;
   ((OLAPRel) input).implementOLAP(this);
 }
Ejemplo n.º 4
0
 @Override
 public boolean hasSubQuery() {
   OLAPRel olapChild = (OLAPRel) getChild();
   return olapChild.hasSubQuery();
 }
Ejemplo n.º 5
0
 private ColumnRowType buildColumnRowType() {
   OLAPRel olapChild = (OLAPRel) getChild();
   ColumnRowType inputColumnRowType = olapChild.getColumnRowType();
   return inputColumnRowType;
 }