Esempio n. 1
0
 private static ExprList createArgs(List<Node> variables) {
   ExprList retval = new ExprList();
   for (Node n : variables) {
     retval.add(new ExprVar(n));
   }
   return retval;
 }
    private static void argList(ExprList exprList, PropFuncArg pfArg) {
      if (pfArg.isNode()) {
        Node n = pfArg.getArg();
        Expr expr = ExprUtils.nodeToExpr(n);
        exprList.add(expr);
        return;
      }

      for (Node n : pfArg.getArgList()) {
        Expr expr = ExprUtils.nodeToExpr(n);
        exprList.add(expr);
      }
    }
Esempio n. 3
0
 @Override
 public Aggregator copy(ExprList exprs) {
   return new AggSampleDistinct(exprs.get(0));
 }