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
A
KeyGroupsStateHandle that describes a savepoint in the unified format.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.StateObject
StateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector -
Constructor Summary
ConstructorsConstructorDescriptionKeyGroupsSavepointStateHandle(KeyGroupRangeOffsets groupRangeOffsets, StreamStateHandle streamStateHandle) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetIntersection(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.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, restoreMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.state.CompositeStateHandle
getCheckpointedSize, registerSharedStatesMethods inherited from interface org.apache.flink.runtime.state.KeyedStateHandle
getKeyGroupRange, getStateHandleIdMethods inherited from interface org.apache.flink.runtime.state.StateObject
collectSizeStats, discardState, getStateSize
-
Constructor Details
-
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 Details
-
getIntersection
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
- Overrides:
equalsin classKeyGroupsStateHandle
-
toString
- Overrides:
toStringin classKeyGroupsStateHandle
-