Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jingz-db committed Mar 14, 2024
1 parent 6465521 commit 9f18601
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class StatefulProcessorWithInitialStateTestClass extends StatefulProcessorWithIn
_mapState.updateValue(initStateVal, 1)
}

override def init(operatorOutputMode: OutputMode): Unit = {
override def init(outputMode: OutputMode, timeoutMode: TimeoutMode): Unit = {
_valState = getHandle.getValueState[Double]("testValueInit", Encoders.scalaDouble)
_listState = getHandle.getListState[Double]("testListInit", Encoders.scalaDouble)
_mapState = getHandle.getMapState[Double, Int](
Expand All @@ -52,7 +52,8 @@ class StatefulProcessorWithInitialStateTestClass extends StatefulProcessorWithIn
override def handleInputRows(
key: String,
inputRows: Iterator[InitInputRow],
timerValues: TimerValues): Iterator[(String, String, Double)] = {
timerValues: TimerValues,
expiredTimerInfo: ExpiredTimerInfo): Iterator[(String, String, Double)] = {
var output = List[(String, String, Double)]()
for (row <- inputRows) {
if (row.action == "getOption") {
Expand Down Expand Up @@ -91,7 +92,8 @@ class AccumulateStatefulProcessorWithInitState extends StatefulProcessorWithInit
override def handleInputRows(
key: String,
inputRows: Iterator[InitInputRow],
timerValues: TimerValues): Iterator[(String, String, Double)] = {
timerValues: TimerValues,
expiredTimerInfo: ExpiredTimerInfo): Iterator[(String, String, Double)] = {
var output = List[(String, String, Double)]()
for (row <- inputRows) {
if (row.action == "getOption") {
Expand Down

0 comments on commit 9f18601

Please sign in to comment.