abstract class InputProcessor extends AnyRef
- Alphabetic
- By Inheritance
- InputProcessor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new InputProcessor(store: StateStore)
Abstract Value Members
-
abstract
def
callFunctionAndUpdateState(stateData: StateData, valueRowIter: Iterator[InternalRow], hasTimedOut: Boolean): Iterator[InternalRow]
Call the user function on a key's data, update the state store, and return the return data iterator.
Call the user function on a key's data, update the state store, and return the return data iterator. Note that the store updating is lazy, that is, the store will be updated only after the returned iterator is fully consumed.
- stateData
All the data related to the state to be updated
- valueRowIter
Iterator of values as rows, cannot be null, but can be empty
- hasTimedOut
Whether this function is being called for a key timeout
- Attributes
- protected
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
numOutputRows: SQLMetric
- Attributes
- protected
-
val
numRemovedStateRows: SQLMetric
- Attributes
- protected
-
val
numUpdatedStateRows: SQLMetric
- Attributes
- protected
-
def
processNewData(dataIter: Iterator[InternalRow]): Iterator[InternalRow]
For every group, get the key, values and corresponding state and call the function, and return an iterator of rows
-
def
processNewDataWithInitialState(childDataIter: Iterator[InternalRow], initStateIter: Iterator[InternalRow]): Iterator[InternalRow]
Process the new data iterator along with the initial state.
Process the new data iterator along with the initial state. The initial state is applied before processing the new data for every key. The user defined function is called only once for every key that has either initial state or data or both.
-
def
processTimedOutState(): Iterator[InternalRow]
Find the groups that have timeout set and are timing out right now, and call the function
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()