Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.79 KB

spark-sql-streaming-InputProcessor.adoc

File metadata and controls

44 lines (29 loc) · 1.79 KB

InputProcessor Helper Class of FlatMapGroupsWithStateExec Physical Operator

InputProcessor is a helper class to manage the state store of FlatMapGroupsWithStateExec physical operator.

InputProcessor is created exclusively when FlatMapGroupsWithStateExec physical operator is executed (and uses InputProcessor for the storeUpdateFunction while mapping over partitions with a state store).

InputProcessor takes a single StateStore when created.

processNewData Method

processNewData(dataIter: Iterator[InternalRow]): Iterator[InternalRow]

processNewData…​FIXME

Note
processNewData is used exclusively when FlatMapGroupsWithStateExec physical operator is executed.

processTimedOutState Method

processTimedOutState(): Iterator[InternalRow]

processTimedOutState…​FIXME

Note
processTimedOutState is used exclusively when FlatMapGroupsWithStateExec physical operator is executed.

callFunctionAndUpdateState Internal Method

callFunctionAndUpdateState(
  stateData: StateData,
  valueRowIter: Iterator[InternalRow],
  hasTimedOut: Boolean): Iterator[InternalRow]

callFunctionAndUpdateState…​FIXME

Note
callFunctionAndUpdateState is used exclusively when InputProcessor is requested to processNewData and processTimedOutState.