Package org.apache.flink.runtime.state
Class AbstractIncrementalStateHandle
java.lang.Object
org.apache.flink.runtime.state.AbstractIncrementalStateHandle
- All Implemented Interfaces:
Serializable,CheckpointBoundKeyedStateHandle,CompositeStateHandle,IncrementalKeyedStateHandle,KeyedStateHandle,StateObject
- Direct Known Subclasses:
IncrementalLocalKeyedStateHandle,IncrementalRemoteKeyedStateHandle
public abstract class AbstractIncrementalStateHandle
extends Object
implements IncrementalKeyedStateHandle
Abstract superclass for all
IncrementalKeyedStateHandle.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.IncrementalKeyedStateHandle
IncrementalKeyedStateHandle.HandleAndLocalPathNested classes/interfaces inherited from interface org.apache.flink.runtime.state.StateObject
StateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final UUIDUUID to identify the backend which created this state handle.protected final longThe checkpoint Id.protected final KeyGroupRangeThe key-group range covered by this state handle.protected final StreamStateHandlePrimary meta data state of the incremental checkpoint.protected final List<IncrementalKeyedStateHandle.HandleAndLocalPath>Shared state in the incremental checkpoint.protected final StateHandleIDUnique id for this state handle. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractIncrementalStateHandle(UUID backendIdentifier, KeyGroupRange keyGroupRange, long checkpointId, List<IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState, StreamStateHandle metaStateHandle, StateHandleID stateHandleId) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the identifier of the state backend from which this handle was created.longReturns the ID of the checkpoint for which the handle was created or used.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.Returns the range of the key groups contained in the state.Returns a list of all shared states and the corresponding localPath in the backend at the time this was created.Returns a unique state handle id to distinguish with other keyed state handles.inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.state.CheckpointBoundKeyedStateHandle
reboundMethods inherited from interface org.apache.flink.runtime.state.CompositeStateHandle
getCheckpointedSize, registerSharedStatesMethods inherited from interface org.apache.flink.runtime.state.StateObject
collectSizeStats, discardState, getStateSize
-
Field Details
-
checkpointId
protected final long checkpointIdThe checkpoint Id. -
backendIdentifier
UUID to identify the backend which created this state handle. This is in creating the key for theSharedStateRegistry. -
keyGroupRange
The key-group range covered by this state handle. -
metaStateHandle
Primary meta data state of the incremental checkpoint. -
stateHandleId
Unique id for this state handle.
-
-
Constructor Details
-
AbstractIncrementalStateHandle
public AbstractIncrementalStateHandle(UUID backendIdentifier, KeyGroupRange keyGroupRange, long checkpointId, List<IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState, StreamStateHandle metaStateHandle, StateHandleID stateHandleId)
-
-
Method Details
-
getCheckpointId
public long getCheckpointId()Description copied from interface:CheckpointBoundKeyedStateHandleReturns the ID of the checkpoint for which the handle was created or used.- Specified by:
getCheckpointIdin interfaceCheckpointBoundKeyedStateHandle
-
getBackendIdentifier
Description copied from interface:IncrementalKeyedStateHandleReturns the identifier of the state backend from which this handle was created.- Specified by:
getBackendIdentifierin interfaceIncrementalKeyedStateHandle
-
getKeyGroupRange
Description copied from interface:KeyedStateHandleReturns the range of the key groups contained in the state.- Specified by:
getKeyGroupRangein interfaceKeyedStateHandle
-
getMetaDataStateHandle
- Specified by:
getMetaDataStateHandlein interfaceIncrementalKeyedStateHandle
-
getStateHandleId
Description copied from interface:KeyedStateHandleReturns a unique state handle id to distinguish with other keyed state handles.If this state handle would be used as materialized part of ChangelogStateBackendHandle, it should persist this state handle id when serializing of checkpoint and deserialize it back to ensure the state handle id is constant.- Specified by:
getStateHandleIdin interfaceKeyedStateHandle- Returns:
- A unique state handle id.
-
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- Parameters:
keyGroupRange- The key group range to intersect with, will return null if the intersection of this handle's key-group and the provided key-group is empty.
-
equals
-
hashCode
public int hashCode() -
toString
-