use of org.finos.legend.pure.generated.Root_meta_relational_metamodel_Filter_Impl in project legend-engine by finos.
the class HelperRelationalBuilder method processDatabaseFilter.
public static Filter processDatabaseFilter(org.finos.legend.engine.protocol.pure.v1.model.packageableElement.store.relational.model.Filter srcFilter, CompileContext context, Database database) {
MutableMap<String, TableAlias> aliasMap = UnifiedMap.newMap();
Operation op = (Operation) processRelationalOperationElement(srcFilter.operation, context, aliasMap, FastList.newList());
Filter filter = "multigrain".equals(srcFilter._type) ? new Root_meta_relational_metamodel_MultiGrainFilter_Impl(srcFilter.name) : new Root_meta_relational_metamodel_Filter_Impl(srcFilter.name);
filter._name(srcFilter.name)._database(database)._operation(op);
return filter;
}
Aggregations