Class ImmutableAggregatingState<IN,OUT>
- java.lang.Object
-
- org.apache.flink.queryablestate.client.state.ImmutableAggregatingState<IN,OUT>
-
- All Implemented Interfaces:
org.apache.flink.api.common.state.AggregatingState<IN,OUT>,org.apache.flink.api.common.state.AppendingState<IN,OUT>,org.apache.flink.api.common.state.MergingState<IN,OUT>,org.apache.flink.api.common.state.State
public final class ImmutableAggregatingState<IN,OUT> extends Object implements org.apache.flink.api.common.state.AggregatingState<IN,OUT>
A read-onlyAggregatingStatethat does not allow for modifications.This is the type of the result returned when querying Flink's keyed state using the
Queryable State Clientand providing anAggregatingStateDescriptor.
-
-
Field Summary
Fields Modifier and Type Field Description protected static UnsupportedOperationExceptionMODIFICATION_ATTEMPT_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Object newValue)voidclear()static <OUT,ACC,S extends org.apache.flink.api.common.state.State>
ScreateState(org.apache.flink.api.common.state.StateDescriptor<S,ACC> stateDescriptor, byte[] serializedState)OUTget()
-
-
-
Field Detail
-
MODIFICATION_ATTEMPT_ERROR
protected static final UnsupportedOperationException MODIFICATION_ATTEMPT_ERROR
-
-
Method Detail
-
get
public OUT get()
-
add
public void add(Object newValue)
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.flink.api.common.state.State
-
createState
public static <OUT,ACC,S extends org.apache.flink.api.common.state.State> S createState(org.apache.flink.api.common.state.StateDescriptor<S,ACC> stateDescriptor, byte[] serializedState) throws IOException- Throws:
IOException
-
-