Class DataStructureTopologicalSorter
java.lang.Object
org.eclipse.dirigible.database.ds.model.DataStructureTopologicalSorter
public class DataStructureTopologicalSorter extends Object
Data models sorter utility.
-
Constructor Summary
Constructors Constructor Description DataStructureTopologicalSorter() -
Method Summary
Modifier and Type Method Description protected static voidfollowDependencies(Map<String,DataStructureModel> input, List<String> output, List<String> external, List<String> processing, DataStructureModel dataStructureModel)Follow dependencies.static voidsort(Map<String,DataStructureModel> input, List<String> output, List<String> external)Sorts the data models.
-
Constructor Details
-
DataStructureTopologicalSorter
public DataStructureTopologicalSorter()
-
-
Method Details
-
sort
public static void sort(Map<String,DataStructureModel> input, List<String> output, List<String> external) throws DataStructureModelExceptionSorts the data models.- Parameters:
input- the models that will be sortedoutput- the output of the sortingexternal- the external dependencies- Throws:
DataStructureModelException- the data structure model exception
-
followDependencies
protected static void followDependencies(Map<String,DataStructureModel> input, List<String> output, List<String> external, List<String> processing, DataStructureModel dataStructureModel) throws DataStructureModelExceptionFollow dependencies.- Parameters:
input- the inputoutput- the outputexternal- the externalprocessing- the processingdataStructureModel- the data structure model- Throws:
DataStructureModelException- the data structure model exception
-