public abstract class AbstractIncrementalStateHandle extends Object implements IncrementalKeyedStateHandle
IncrementalKeyedStateHandle.IncrementalKeyedStateHandle.HandleAndLocalPathStateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector| Modifier and Type | Field and Description |
|---|---|
protected UUID |
backendIdentifier
UUID to identify the backend which created this state handle.
|
protected long |
checkpointId
The checkpoint Id.
|
protected KeyGroupRange |
keyGroupRange
The key-group range covered by this state handle.
|
protected StreamStateHandle |
metaStateHandle
Primary meta data state of the incremental checkpoint.
|
protected List<IncrementalKeyedStateHandle.HandleAndLocalPath> |
sharedState
Shared state in the incremental checkpoint.
|
protected StateHandleID |
stateHandleId
Unique id for this state handle.
|
| Constructor and Description |
|---|
AbstractIncrementalStateHandle(UUID backendIdentifier,
KeyGroupRange keyGroupRange,
long checkpointId,
List<IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState,
StreamStateHandle metaStateHandle,
StateHandleID stateHandleId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
UUID |
getBackendIdentifier()
Returns the identifier of the state backend from which this handle was created.
|
long |
getCheckpointId()
Returns the ID of the checkpoint for which the handle was created or used.
|
KeyedStateHandle |
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.
|
KeyGroupRange |
getKeyGroupRange()
Returns the range of the key groups contained in the state.
|
StreamStateHandle |
getMetaDataStateHandle() |
List<IncrementalKeyedStateHandle.HandleAndLocalPath> |
getSharedStateHandles()
Returns a list of all shared states and the corresponding localPath in the backend at the
time this was created.
|
StateHandleID |
getStateHandleId()
Returns a unique state handle id to distinguish with other keyed state handles.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitreboundgetCheckpointedSize, registerSharedStatescollectSizeStats, discardState, getStateSizeprotected final long checkpointId
protected final UUID backendIdentifier
SharedStateRegistry.protected final KeyGroupRange keyGroupRange
protected final List<IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState
protected final StreamStateHandle metaStateHandle
protected final StateHandleID stateHandleId
public AbstractIncrementalStateHandle(UUID backendIdentifier, KeyGroupRange keyGroupRange, long checkpointId, List<IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState, StreamStateHandle metaStateHandle, StateHandleID stateHandleId)
public long getCheckpointId()
CheckpointBoundKeyedStateHandlegetCheckpointId in interface CheckpointBoundKeyedStateHandle@Nonnull public UUID getBackendIdentifier()
IncrementalKeyedStateHandlegetBackendIdentifier in interface IncrementalKeyedStateHandlepublic KeyGroupRange getKeyGroupRange()
KeyedStateHandlegetKeyGroupRange in interface KeyedStateHandle@Nonnull public List<IncrementalKeyedStateHandle.HandleAndLocalPath> getSharedStateHandles()
IncrementalKeyedStateHandlegetSharedStateHandles in interface IncrementalKeyedStateHandle@Nonnull public StreamStateHandle getMetaDataStateHandle()
getMetaDataStateHandle in interface IncrementalKeyedStateHandlepublic StateHandleID getStateHandleId()
KeyedStateHandleChangelogStateBackendHandle, it should persist this state handle id when serializing of
checkpoint and deserialize it back to ensure the state handle id is constant.
getStateHandleId in interface KeyedStateHandlepublic KeyedStateHandle getIntersection(KeyGroupRange keyGroupRange)
KeyedStateHandlegetIntersection in interface KeyedStateHandlekeyGroupRange - 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.Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.