Search in sources :

Example 1 with Root_meta_relational_metamodel_join_JoinTreeNode_Impl

use of org.finos.legend.pure.generated.Root_meta_relational_metamodel_join_JoinTreeNode_Impl in project legend-engine by finos.

the class HelperRelationalBuilder method processElementWithJoinsJoins.

private static JoinTreeNode processElementWithJoinsJoins(MutableList<JoinWithJoinType> joins) {
    Join j = joins.getFirst().join;
    JoinTreeNode res = new Root_meta_relational_metamodel_join_JoinTreeNode_Impl(j._name())._joinName(j._name())._database(j._database())._join(j);
    res = joins.getFirst().joinType == null ? res : res._joinType(joins.getFirst().joinType);
    return joins.size() == 1 ? res : res._childrenData(Lists.fixedSize.of(processElementWithJoinsJoins(joins.subList(1, joins.size()))));
}
Also used : Root_meta_relational_metamodel_join_JoinTreeNode_Impl(org.finos.legend.pure.generated.Root_meta_relational_metamodel_join_JoinTreeNode_Impl) Join(org.finos.legend.pure.m3.coreinstance.meta.relational.metamodel.join.Join) RelationalOperationElementWithJoin(org.finos.legend.pure.m3.coreinstance.meta.relational.metamodel.RelationalOperationElementWithJoin) JoinTreeNode(org.finos.legend.pure.m3.coreinstance.meta.relational.metamodel.join.JoinTreeNode)

Aggregations

Root_meta_relational_metamodel_join_JoinTreeNode_Impl (org.finos.legend.pure.generated.Root_meta_relational_metamodel_join_JoinTreeNode_Impl)1 RelationalOperationElementWithJoin (org.finos.legend.pure.m3.coreinstance.meta.relational.metamodel.RelationalOperationElementWithJoin)1 Join (org.finos.legend.pure.m3.coreinstance.meta.relational.metamodel.join.Join)1 JoinTreeNode (org.finos.legend.pure.m3.coreinstance.meta.relational.metamodel.join.JoinTreeNode)1