private static class APIDataSet.RelationUploadDependencyGraph extends Object
Modifier and Type | Field and Description |
---|---|
private Map<Relation,Set<Relation>> |
children |
private boolean |
newOrUndeleted |
private Collection<Relation> |
relations |
private List<Relation> |
uploadOrder |
private Set<Relation> |
visited |
Constructor and Description |
---|
APIDataSet.RelationUploadDependencyGraph(Collection<Relation> relations,
boolean newOrUndeleted) |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(Relation relation,
Relation child) |
void |
build(Collection<Relation> relations) |
List<Relation> |
computeUploadOrder() |
Set<Relation> |
getChildren(Relation relation) |
protected void |
visit(Stack<Relation> path,
Relation current) |
private Collection<Relation> relations
private List<Relation> uploadOrder
private final boolean newOrUndeleted
public APIDataSet.RelationUploadDependencyGraph(Collection<Relation> relations, boolean newOrUndeleted)
public final void build(Collection<Relation> relations)
public Set<Relation> getChildren(Relation relation)
public void addDependency(Relation relation, Relation child)
protected void visit(Stack<Relation> path, Relation current) throws CyclicUploadDependencyException
CyclicUploadDependencyException
public List<Relation> computeUploadOrder() throws CyclicUploadDependencyException
CyclicUploadDependencyException