Package org.apache.flink.runtime.state
Class KeyGroupsSavepointStateHandle
- java.lang.Object
-
- org.apache.flink.runtime.state.KeyGroupsStateHandle
-
- org.apache.flink.runtime.state.KeyGroupsSavepointStateHandle
-
- All Implemented Interfaces:
Serializable
,CompositeStateHandle
,KeyedStateHandle
,SavepointKeyedStateHandle
,StateObject
,StreamStateHandle
public class KeyGroupsSavepointStateHandle extends KeyGroupsStateHandle implements SavepointKeyedStateHandle
AKeyGroupsStateHandle
that describes a savepoint in the unified format.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.StateObject
StateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector
-
-
Constructor Summary
Constructors Constructor Description KeyGroupsSavepointStateHandle(KeyGroupRangeOffsets groupRangeOffsets, StreamStateHandle streamStateHandle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
KeyGroupsStateHandle
getIntersection(KeyGroupRange keyGroupRange)
Returns a state over a range that is the intersection between this handle's key-group range and the provided key-group range.String
toString()
-
Methods inherited from class org.apache.flink.runtime.state.KeyGroupsStateHandle
asBytesIfInMemory, collectSizeStats, discardState, getCheckpointedSize, getDelegateStateHandle, getGroupRangeOffsets, getKeyGroupRange, getOffsetForKeyGroup, getStateHandleId, getStateSize, getStreamStateHandleID, hashCode, maybeGetPath, openInputStream, registerSharedStates, restore
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.state.CompositeStateHandle
getCheckpointedSize, registerSharedStates
-
Methods inherited from interface org.apache.flink.runtime.state.KeyedStateHandle
getKeyGroupRange, getStateHandleId
-
Methods inherited from interface org.apache.flink.runtime.state.StateObject
collectSizeStats, discardState, getStateSize
-
-
-
-
Constructor Detail
-
KeyGroupsSavepointStateHandle
public KeyGroupsSavepointStateHandle(KeyGroupRangeOffsets groupRangeOffsets, StreamStateHandle streamStateHandle)
- Parameters:
groupRangeOffsets
- range of key-group ids that in the state of this handlestreamStateHandle
- handle to the actual state of the key-groups
-
-
Method Detail
-
getIntersection
public KeyGroupsStateHandle getIntersection(KeyGroupRange keyGroupRange)
Description copied from interface:KeyedStateHandle
Returns a state over a range that is the intersection between this handle's key-group range and the provided key-group range.- Specified by:
getIntersection
in interfaceKeyedStateHandle
- Overrides:
getIntersection
in classKeyGroupsStateHandle
- Parameters:
keyGroupRange
- a key group range to intersect.- Returns:
- key-group state over a range that is the intersection between this handle's key-group range and the provided key-group range.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classKeyGroupsStateHandle
-
toString
public String toString()
- Overrides:
toString
in classKeyGroupsStateHandle
-
-