Beispiel #1
0
 public QueryExpr(Scan s) {
   super();
   scan = s;
   aggregation.addAll(scan.getAggregation());
   Schema tmpSchema = scan.getSchema();
   type = tmpSchema.getColumn(0).type;
 }
Beispiel #2
0
 @Override
 public DataRecord valueExpr(Env env) {
   scan.eval(env);
   if (scan.hasNext()) {
     Record r = scan.next();
     return r.getField(0);
   } else return Null.getInstance();
 }
Beispiel #3
0
 @Override
 public String toString() {
   return "@QueryExpr(" + scan.toString() + ")";
 }