use of catdata.aql.ED in project fql by CategoricalData.
the class EdsExpRaw method eval.
@Override
public Constraints<Ty, En, Sym, Fk, Att> eval(AqlEnv env) {
Schema<Ty, En, Sym, Fk, Att> sch = schema.eval(env);
Collection<ED<Ty, En, Sym, Fk, Att>> l = new LinkedList<>();
for (String k : imports) {
@SuppressWarnings("unchecked") Constraints<Ty, En, Sym, Fk, Att> v = env.defs.eds.get(k);
l.addAll(v.eds);
}
for (EdExpRaw e : eds) {
l.add(e.eval(sch, new AqlOptions(options, null, env.defaults)));
}
return new Constraints<>(sch, l, new AqlOptions(options, null, env.defaults));
}
Aggregations