spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: [MINOR][SS][DOC] Fix `Trigger` Scala/Java doc examples
Date Sat, 27 Jan 2018 00:57:49 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-2.3 20c0efe48 -> 234c854bd


[MINOR][SS][DOC] Fix `Trigger` Scala/Java doc examples

## What changes were proposed in this pull request?

This PR fixes Scala/Java doc examples in `Trigger.java`.

## How was this patch tested?

N/A.

Author: Dongjoon Hyun <dongjoon@apache.org>

Closes #20401 from dongjoon-hyun/SPARK-TRIGGER.

(cherry picked from commit e7bc9f0524822a08d857c3a5ba57119644ceae85)
Signed-off-by: Sean Owen <sowen@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/234c854b
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/234c854b
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/234c854b

Branch: refs/heads/branch-2.3
Commit: 234c854bd203e9ba32be50b1f33cc118d0dbd9e8
Parents: 20c0efe
Author: Dongjoon Hyun <dongjoon@apache.org>
Authored: Fri Jan 26 18:57:32 2018 -0600
Committer: Sean Owen <sowen@cloudera.com>
Committed: Fri Jan 26 18:57:45 2018 -0600

----------------------------------------------------------------------
 .../src/main/java/org/apache/spark/sql/streaming/Trigger.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/234c854b/sql/core/src/main/java/org/apache/spark/sql/streaming/Trigger.java
----------------------------------------------------------------------
diff --git a/sql/core/src/main/java/org/apache/spark/sql/streaming/Trigger.java b/sql/core/src/main/java/org/apache/spark/sql/streaming/Trigger.java
index 33ae9a9..5371a23 100644
--- a/sql/core/src/main/java/org/apache/spark/sql/streaming/Trigger.java
+++ b/sql/core/src/main/java/org/apache/spark/sql/streaming/Trigger.java
@@ -50,7 +50,7 @@ public class Trigger {
    *
    * {{{
    *    import java.util.concurrent.TimeUnit
-   *    df.writeStream.trigger(ProcessingTime.create(10, TimeUnit.SECONDS))
+   *    df.writeStream().trigger(Trigger.ProcessingTime(10, TimeUnit.SECONDS))
    * }}}
    *
    * @since 2.2.0
@@ -66,7 +66,7 @@ public class Trigger {
    *
    * {{{
    *    import scala.concurrent.duration._
-   *    df.writeStream.trigger(ProcessingTime(10.seconds))
+   *    df.writeStream.trigger(Trigger.ProcessingTime(10.seconds))
    * }}}
    * @since 2.2.0
    */


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message