public final class ImmutableValueState<V> extends Object implements org.apache.flink.api.common.state.ValueState<V>
ValueState 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 ValueStateDescriptor.
| Modifier and Type | Field and Description |
|---|---|
protected static UnsupportedOperationException |
MODIFICATION_ATTEMPT_ERROR |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
static <V,S extends org.apache.flink.api.common.state.State> |
createState(org.apache.flink.api.common.state.StateDescriptor<S,V> stateDescriptor,
byte[] serializedState) |
void |
update(V newValue) |
V |
value() |
protected static final UnsupportedOperationException MODIFICATION_ATTEMPT_ERROR
public V value()
value in interface org.apache.flink.api.common.state.ValueState<V>public void update(V newValue)
update in interface org.apache.flink.api.common.state.ValueState<V>public void clear()
clear in interface org.apache.flink.api.common.state.Statepublic static <V,S extends org.apache.flink.api.common.state.State> S createState(org.apache.flink.api.common.state.StateDescriptor<S,V> stateDescriptor,
byte[] serializedState)
throws IOException
IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.