/** * Returns the parent operator in the walk path to the current operator. * * @param stack The stack encoding the path. * * @return Operator The parent operator in the current path. */ @SuppressWarnings("unchecked") protected static Operator<? extends OperatorDesc> getParent(Stack<Node> stack) { return (Operator<? extends OperatorDesc>)Utils.getNthAncestor(stack, 1); }
UnionOperator union = Utils.findNode(stack, UnionOperator.class); assert union != null;
UnionOperator union = Utils.findNode(stack, UnionOperator.class); assert union != null;
/** * Returns the parent operator in the walk path to the current operator. * * @param stack The stack encoding the path. * * @return Operator The parent operator in the current path. */ @SuppressWarnings("unchecked") protected static Operator<? extends OperatorDesc> getParent(Stack<Node> stack) { return (Operator<? extends OperatorDesc>)Utils.getNthAncestor(stack, 1); }
UnionOperator union = Utils.findNode(stack, UnionOperator.class); assert union != null;
/** * Returns the parent operator in the walk path to the current operator. * * @param stack The stack encoding the path. * * @return Operator The parent operator in the current path. */ @SuppressWarnings("unchecked") protected static Operator<? extends OperatorDesc> getParent(Stack<Node> stack) { return (Operator<? extends OperatorDesc>)Utils.getNthAncestor(stack, 1); }
/** * Returns the parent operator in the walk path to the current operator. * * @param stack The stack encoding the path. * * @return Operator The parent operator in the current path. */ @SuppressWarnings("unchecked") protected static Operator<? extends OperatorDesc> getParent(Stack<Node> stack) { return (Operator<? extends OperatorDesc>)Utils.getNthAncestor(stack, 1); }
&& (Utils.getNthAncestor(stack, 2) instanceof GroupByOperator);
&& (Utils.getNthAncestor(stack, 2) instanceof GroupByOperator);
/** * Returns the parent operator in the walk path to the current operator. * * @param stack The stack encoding the path. * * @return Operator The parent operator in the current path. */ protected static Operator<? extends OperatorDesc> getParent(Stack<Node> stack) { return (Operator<? extends OperatorDesc>)Utils.getNthAncestor(stack, 1); }
/** * Returns the parent operator in the walk path to the current operator. * * @param stack The stack encoding the path. * * @return Operator The parent operator in the current path. */ @SuppressWarnings("unchecked") protected static Operator<? extends OperatorDesc> getParent(Stack<Node> stack) { return (Operator<? extends OperatorDesc>)Utils.getNthAncestor(stack, 1); }
/** * Returns the parent operator in the walk path to the current operator. * * @param stack The stack encoding the path. * * @return Operator The parent operator in the current path. */ protected static Operator<? extends Serializable> getParent(Stack<Node> stack) { return (Operator<? extends Serializable>)Utils.getNthAncestor(stack, 1); }