Skip to content

Commit

Permalink
[STREAMING][MINOR] Fix typo in function name of StateImpl
Browse files Browse the repository at this point in the history
cc\ tdas zsxwing , please review. Thanks a lot.

Author: jerryshao <sshao@hortonworks.com>

Closes #10305 from jerryshao/fix-typo-state-impl.
  • Loading branch information
jerryshao authored and zsxwing committed Dec 15, 2015
1 parent c59df8c commit bc1ff9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private[streaming] class StateImpl[S] extends State[S] {
* Update the internal data and flags in `this` to the given state that is going to be timed out.
* This method allows `this` object to be reused across many state records.
*/
def wrapTiminoutState(newState: S): Unit = {
def wrapTimingOutState(newState: S): Unit = {
this.state = newState
defined = true
timingOut = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private[streaming] object MapWithStateRDDRecord {
// data returned
if (removeTimedoutData && timeoutThresholdTime.isDefined) {
newStateMap.getByTime(timeoutThresholdTime.get).foreach { case (key, state, _) =>
wrappedState.wrapTiminoutState(state)
wrappedState.wrapTimingOutState(state)
val returned = mappingFunction(batchTime, key, None, wrappedState)
mappedData ++= returned
newStateMap.remove(key)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class MapWithStateSuite extends SparkFunSuite
state.remove()
testState(None, shouldBeRemoved = true)

state.wrapTiminoutState(3)
state.wrapTimingOutState(3)
testState(Some(3), shouldBeTimingOut = true)
}

Expand Down

0 comments on commit bc1ff9f

Please sign in to comment.