Package org.nuxeo.lib.stream.computation
Class Topology
java.lang.Object
org.nuxeo.lib.stream.computation.Topology
Represent a Directed Acyclic Graph (DAG) of computations.
- Since:
- 9.3
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.jgrapht.experimental.dag.DirectedAcyclicGraph<Topology.Vertex,
org.jgrapht.graph.DefaultEdge> protected final List<ComputationMetadataMapping>
protected final Map<String,
ComputationMetadataMapping> protected final Map<String,
Supplier<Computation>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Topology.Builder
builder()
protected String
compactPolicy
(ComputationPolicy policy) protected void
generateDag
(Set<ComputationMetadataMapping> metadataSet) protected void
generateMetadataMapping
(Set<ComputationMetadataMapping> metadataSet) getAncestors
(String name) getChildren
(String name) org.jgrapht.experimental.dag.DirectedAcyclicGraph<Topology.Vertex,
org.jgrapht.graph.DefaultEdge> getDag()
getDescendants
(String name) getMetadata
(String name) getParents
(String name) protected String
getPumlIdentifier
(String name) protected String
getPumlName
(Topology.Vertex vertex) getRoots()
getSupplier
(String name) protected Topology.Vertex
boolean
boolean
streamsSet
(String root) A plantuml representation of the topology.toPlantuml
(Settings settings)
-
Field Details
-
metadataList
-
metadataMap
-
supplierMap
-
dag
protected final org.jgrapht.experimental.dag.DirectedAcyclicGraph<Topology.Vertex,org.jgrapht.graph.DefaultEdge> dag
-
-
Constructor Details
-
Topology
-
-
Method Details
-
builder
-
toPlantuml
A plantuml representation of the topology. -
toPlantuml
-
compactPolicy
-
getPumlName
-
getPumlIdentifier
-
generateDag
protected void generateDag(Set<ComputationMetadataMapping> metadataSet) throws org.jgrapht.experimental.dag.DirectedAcyclicGraph.CycleFoundException - Throws:
org.jgrapht.experimental.dag.DirectedAcyclicGraph.CycleFoundException
-
generateMetadataMapping
-
getMetadata
-
getSupplier
-
isSource
-
isSink
-
streamsSet
-
streamsSet
-
metadataList
-
getVertex
-
getDescendants
-
getDescendantComputationNames
-
getChildren
-
getChildrenComputationNames
-
getParents
-
getParentComputationsNames
-
getAncestorComputationNames
-
getAncestors
-
getRoots
-
getDag
public org.jgrapht.experimental.dag.DirectedAcyclicGraph<Topology.Vertex,org.jgrapht.graph.DefaultEdge> getDag()
-