Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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,10 @@ 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 respects their dependencies.
Comment thread
empeje marked this conversation as resolved.
Outdated
*
* @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 into a JSON.
Comment thread
empeje marked this conversation as resolved.
Outdated
*
* @return a map representing this instance
*/
public Map toJsonMap() {
HashMap<String, Object> jsonMap = new HashMap<>();
ArrayList<Map> operators = new ArrayList<>();
Expand Down
Loading