public final class ImmutableListState<V> extends Object implements org.apache.flink.api.common.state.ListState<V>
ListState that does not allow for modifications.
This is the result returned when querying Flink's keyed state using the Queryable State Client and providing
an ListStateDescriptor.
| Modifier and Type | Field and Description |
|---|---|
protected static UnsupportedOperationException |
MODIFICATION_ATTEMPT_ERROR |
| Modifier and Type | Method and Description |
|---|---|
void |
add(V value) |
void |
addAll(List<V> values) |
void |
clear() |
static <V,T,S extends org.apache.flink.api.common.state.State> |
createState(org.apache.flink.api.common.state.StateDescriptor<S,T> stateDescriptor,
byte[] serializedState) |
Iterable<V> |
get() |
void |
update(List<V> values) |
protected static final UnsupportedOperationException MODIFICATION_ATTEMPT_ERROR
public void add(V value)
public void clear()
clear in interface org.apache.flink.api.common.state.Statepublic void update(List<V> values)
update in interface org.apache.flink.api.common.state.ListState<V>public void addAll(List<V> values)
addAll in interface org.apache.flink.api.common.state.ListState<V>public static <V,T,S extends org.apache.flink.api.common.state.State> S createState(org.apache.flink.api.common.state.StateDescriptor<S,T> stateDescriptor,
byte[] serializedState)
throws IOException
IOExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.