Package org.apache.spark.sql.streaming
Interface ListState<S>
- All Superinterfaces:
Serializable
Interface used for arbitrary stateful operations with the v2 API to capture
list value state.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendList
(Object newState) Append an entire list to the existing valuevoid
appendValue
(S newState) Append an entry to the listvoid
clear()
Removes this state for the given grouping key.boolean
exists()
Whether state exists or not.scala.collection.Iterator<S>
get()
Get the state value.void
Update the value of the list.
-
Method Details
-
appendList
Append an entire list to the existing value -
appendValue
Append an entry to the list -
clear
void clear()Removes this state for the given grouping key. -
exists
boolean exists()Whether state exists or not. -
get
scala.collection.Iterator<S> get()Get the state value. An empty iterator is returned if no value exists. -
put
Update the value of the list.
-