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
AKeyGroupsStateHandlethat 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 booleanequals(Object o)KeyGroupsStateHandlegetIntersection(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.StringtoString()-
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:KeyedStateHandleReturns a state over a range that is the intersection between this handle's key-group range and the provided key-group range.- Specified by:
getIntersectionin interfaceKeyedStateHandle- Overrides:
getIntersectionin 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:
equalsin classKeyGroupsStateHandle
-
toString
public String toString()
- Overrides:
toStringin classKeyGroupsStateHandle
-
-