T - The type of the values that can be added to the list state.@PublicEvolving public class ListStateDescriptor<T> extends StateDescriptor<ListState<T>,T>
StateDescriptor for ListState. This can be used to create a partitioned
list state using
RuntimeContext.getListState(ListStateDescriptor).defaultValue, name, serializer| Constructor and Description |
|---|
ListStateDescriptor(String name,
Class<T> typeClass)
Creates a new
ListStateDescriptor with the given name and list element type. |
ListStateDescriptor(String name,
TypeInformation<T> typeInfo)
Creates a new
ListStateDescriptor with the given name and list element type. |
ListStateDescriptor(String name,
TypeSerializer<T> typeSerializer)
Creates a new
ListStateDescriptor with the given name and list element type. |
| Modifier and Type | Method and Description |
|---|---|
ListState<T> |
bind(StateBackend stateBackend)
Creates a new
State on the given StateBackend. |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
getDefaultValue, getName, getSerializer, initializeSerializerUnlessSet, isSerializerInitializedpublic ListStateDescriptor(String name, Class<T> typeClass)
ListStateDescriptor with the given name and list element type.
If this constructor fails (because it is not possible to describe the type via a class),
consider using the ListStateDescriptor(String, TypeInformation) constructor.
name - The (unique) name for the state.typeClass - The type of the values in the state.public ListStateDescriptor(String name, TypeInformation<T> typeInfo)
ListStateDescriptor with the given name and list element type.name - The (unique) name for the state.typeInfo - The type of the values in the state.public ListStateDescriptor(String name, TypeSerializer<T> typeSerializer)
ListStateDescriptor with the given name and list element type.name - The (unique) name for the state.typeSerializer - The type serializer for the list values.public ListState<T> bind(StateBackend stateBackend) throws Exception
StateDescriptorState on the given StateBackend.public boolean equals(Object o)
equals in class StateDescriptor<ListState<T>,T>public int hashCode()
hashCode in class StateDescriptor<ListState<T>,T>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.