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()))));
}
Aggregations