Skip to content
Snippets Groups Projects
Commit aa8bb117 authored by baishuo(白硕)'s avatar baishuo(白硕) Committed by Patrick Wendell
Browse files

Update WindowedDStream.scala

update the content of Exception when windowDuration is not multiple of parent.slideDuration

Author: baishuo(白硕) <vc_java@hotmail.com>

Closes #390 from baishuo/windowdstream and squashes the following commits:

533c968 [baishuo(白硕)] Update WindowedDStream.scala
parent fdfb45e6
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ class WindowedDStream[T: ClassTag]( ...@@ -32,7 +32,7 @@ class WindowedDStream[T: ClassTag](
extends DStream[T](parent.ssc) { extends DStream[T](parent.ssc) {
if (!_windowDuration.isMultipleOf(parent.slideDuration)) { if (!_windowDuration.isMultipleOf(parent.slideDuration)) {
throw new Exception("The window duration of windowed DStream (" + _slideDuration + ") " + throw new Exception("The window duration of windowed DStream (" + _windowDuration + ") " +
"must be a multiple of the slide duration of parent DStream (" + parent.slideDuration + ")") "must be a multiple of the slide duration of parent DStream (" + parent.slideDuration + ")")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment