@PublicEvolving 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> ImmutableReducingState<V> |
createState(org.apache.flink.api.common.state.ReducingStateDescriptor<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.State
public static <V> ImmutableReducingState<V> createState(org.apache.flink.api.common.state.ReducingStateDescriptor<V> stateDescriptor, byte[] serializedState) throws IOException
IOException
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.