Skip to content

Commit 4e30368

Browse files
committed
Add default toJson argument for explain
1 parent 35be199 commit 4e30368

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • wayang-api/wayang-api-scala-java/src/main/scala/org/apache/wayang/api

wayang-api/wayang-api-scala-java/src/main/scala/org/apache/wayang/api/DataQuanta.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ class DataQuanta[Out: ClassTag](val operator: ElementaryOperator, outputIndex: I
942942
collector
943943
}
944944

945-
def explain(): Unit = {
945+
def explain(toJson: Boolean = false): Unit = {
946946
// Set up the sink.
947947
val collector = new java.util.LinkedList[Out]()
948948
val sink = LocalCallbackSink.createCollectingSink(collector, dataSetType[Out])
@@ -951,7 +951,7 @@ class DataQuanta[Out: ClassTag](val operator: ElementaryOperator, outputIndex: I
951951

952952
// Do the explanation.
953953
this.planBuilder.sinks += sink
954-
this.planBuilder.buildAndExplain()
954+
this.planBuilder.buildAndExplain(toJson)
955955
}
956956

957957

0 commit comments

Comments
 (0)