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 TypeMethodDescriptionvoidappendList(Object newState) Append an entire list to the existing valuevoidappendValue(S newState) Append an entry to the listvoidclear()Removes this state for the given grouping key.booleanexists()Whether state exists or not.scala.collection.Iterator<S>get()Get the state value.voidUpdate 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.
-