Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ public String toExtensiveString(boolean isStriclyOrdering) {
}

/**
* TODO: ExecutionPlan.toJsonList add documentation
* labels:documentation,todo
* Converts this execution plan into a list of maps, where each map represents an {@link ExecutionStage}.
* The stages are included in an order that, where possible, respects their dependencies (i.e., is
* dependency-respecting/topological), but loop-head stages may be scheduled early to break cycles,
* which can cause them to appear before all of their predecessors.
*
* @return
* @return a list of maps representing the execution stages
*/
public List<Map> toJsonList() {
Counter<ExecutionStage> stageActivationCounter = new Counter<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ private void toExtensiveStringAux(ExecutionTask task, Set<ExecutionTask> seenTas
}
}

/**
* Converts this instance into a map that can be serialized to JSON.
*
* @return a map representing this instance
*/
public Map toJsonMap() {
HashMap<String, Object> jsonMap = new HashMap<>();
ArrayList<Map> operators = new ArrayList<>();
Expand Down