/** * Applies a mapping to an iterable over expressions. */ public static Iterable<RexNode> apply(Mappings.TargetMapping mapping, Iterable<? extends RexNode> nodes) { final RexPermuteInputsShuttle shuttle = RexPermuteInputsShuttle.of(mapping); return Iterables.transform(nodes, e -> e.accept(shuttle)); }
/** * Applies a mapping to an expression. */ public static RexNode apply(Mappings.TargetMapping mapping, RexNode node) { return node.accept(RexPermuteInputsShuttle.of(mapping)); }
/** * Applies a mapping to an expression. */ public static RexNode apply(Mappings.TargetMapping mapping, RexNode node) { return node.accept(RexPermuteInputsShuttle.of(mapping)); }
/** * Applies a mapping to an iterable over expressions. */ public static Iterable<RexNode> apply(Mappings.TargetMapping mapping, Iterable<? extends RexNode> nodes) { final RexPermuteInputsShuttle shuttle = RexPermuteInputsShuttle.of(mapping); return Iterables.transform(nodes, e -> e.accept(shuttle)); }