Search in sources :

Example 1 with Root_meta_relational_metamodel_MultiGrainFilter_Impl

use of org.finos.legend.pure.generated.Root_meta_relational_metamodel_MultiGrainFilter_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;
}
Also used : Filter(org.finos.legend.pure.m3.coreinstance.meta.relational.metamodel.Filter) TableAlias(org.finos.legend.pure.m3.coreinstance.meta.relational.metamodel.TableAlias) Root_meta_relational_metamodel_Filter_Impl(org.finos.legend.pure.generated.Root_meta_relational_metamodel_Filter_Impl) Operation(org.finos.legend.pure.m3.coreinstance.meta.relational.metamodel.operation.Operation) Root_meta_relational_metamodel_MultiGrainFilter_Impl(org.finos.legend.pure.generated.Root_meta_relational_metamodel_MultiGrainFilter_Impl)

Aggregations

Root_meta_relational_metamodel_Filter_Impl (org.finos.legend.pure.generated.Root_meta_relational_metamodel_Filter_Impl)1 Root_meta_relational_metamodel_MultiGrainFilter_Impl (org.finos.legend.pure.generated.Root_meta_relational_metamodel_MultiGrainFilter_Impl)1 Filter (org.finos.legend.pure.m3.coreinstance.meta.relational.metamodel.Filter)1 TableAlias (org.finos.legend.pure.m3.coreinstance.meta.relational.metamodel.TableAlias)1 Operation (org.finos.legend.pure.m3.coreinstance.meta.relational.metamodel.operation.Operation)1