public final class ImmutableReducingState<V> extends Object implements org.apache.flink.api.common.state.ReducingState<V>
ReducingState 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 ReducingStateDescriptor.
| Modifier and Type | Field and Description |
|---|---|
protected static UnsupportedOperationException |
MODIFICATION_ATTEMPT_ERROR |
| Modifier and Type | Method and Description |
|---|---|
void |
add(V newValue) |
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) |
V |
get() |
protected static final UnsupportedOperationException MODIFICATION_ATTEMPT_ERROR
public V get()
public void add(V newValue)
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–2024 The Apache Software Foundation. All rights reserved.