Create a StateSpec for setting all the specifications
of the mapWithState
operation on a
JavaPairDStream.
Create a StateSpec for setting all the specifications
of the mapWithState
operation on a
JavaPairDStream.
Class of the values
Class of the states data
Class of the mapped data
The function applied on every data item to manage the associated state and generate the mapped data
Create a StateSpec for setting all
the specifications of the mapWithState
operation on a
JavaPairDStream.
Create a StateSpec for setting all
the specifications of the mapWithState
operation on a
JavaPairDStream.
Class of the keys
Class of the values
Class of the states data
Class of the mapped data
The function applied on every data item to manage the associated state and generate the mapped data
Create a StateSpec for setting all the specifications
of the mapWithState
operation on a
pair DStream.
Create a StateSpec for setting all the specifications
of the mapWithState
operation on a
pair DStream.
Class of the values
Class of the states data
Class of the mapped data
The function applied on every data item to manage the associated state and generate the mapped data
Create a StateSpec for setting all the specifications
of the mapWithState
operation on a
pair DStream.
Create a StateSpec for setting all the specifications
of the mapWithState
operation on a
pair DStream.
Class of the keys
Class of the values
Class of the states data
Class of the mapped data
The function applied on every data item to manage the associated state and generate the mapped data
:: Experimental :: Builder object for creating instances of
org.apache.spark.streaming.StateSpec
that is used for specifying the parameters of the DStream transformationmapWithState
that is used for specifying the parameters of the DStream transformationmapWithState
operation of a pair DStream (Scala) or a JavaPairDStream (Java).Example in Scala:
Example in Java: