Skip to content

Commit

Permalink
fix python style
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Nov 21, 2016
1 parent 213081a commit f4357d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions python/pyspark/sql/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ def resetTerminated(self):
"""
self._jsqm.resetTerminated()


class Trigger(object):
"""Used to indicate how often results should be produced by a :class:`StreamingQuery`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ trait StreamingQuery {
def name: String

/**
* Returns the unique id of this query. This id an is automatically generated UUID.
* @since 2.0.0
* Returns the unique id of this query. An id is tied to the checkpoint location and will
* be the same across restarts of a given streaming query.
* @since 2.1.0
*/
def id: UUID

Expand All @@ -52,7 +53,7 @@ trait StreamingQuery {
def sparkSession: SparkSession

/**
* Whether the query is currently active or not
* Returns `true` if this query is actively running.
* @since 2.0.0
*/
def isActive: Boolean
Expand All @@ -64,16 +65,16 @@ trait StreamingQuery {
def exception: Option[StreamingQueryException]

/**
* Returns the current status of the query, such as a whether data is available to process as
* well as a human readable description of what is happening right now.
* Returns the current status of the query.
*
* @since 2.0.2
*/
def status: StreamingQueryStatus

/**
* Returns an array of the most recent progress updates, which include information about
* timing as well as the amount of data being processed for each trigger. The number of records
* retained for each stream is configured by `spark.sql.streaming.numProgressRecords`
* Returns an array of the most recent [[StreamingQueryProgress]] updates for this query.
* The number of records retained for each stream is configured by
* `spark.sql.streaming.numProgressRecords`.
*
* @since 2.1.0
*/
Expand Down

0 comments on commit f4357d1

Please sign in to comment.