public abstract class AbstractIncrementalStateHandle extends Object implements IncrementalKeyedStateHandle
IncrementalKeyedStateHandle
.IncrementalKeyedStateHandle.HandleAndLocalPath
StateObject.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, wait
rebound
getCheckpointedSize, registerSharedStates
collectSizeStats, discardState, getStateSize
protected 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()
CheckpointBoundKeyedStateHandle
getCheckpointId
in interface CheckpointBoundKeyedStateHandle
@Nonnull public UUID getBackendIdentifier()
IncrementalKeyedStateHandle
getBackendIdentifier
in interface IncrementalKeyedStateHandle
public KeyGroupRange getKeyGroupRange()
KeyedStateHandle
getKeyGroupRange
in interface KeyedStateHandle
@Nonnull public List<IncrementalKeyedStateHandle.HandleAndLocalPath> getSharedStateHandles()
IncrementalKeyedStateHandle
getSharedStateHandles
in interface IncrementalKeyedStateHandle
@Nonnull public StreamStateHandle getMetaDataStateHandle()
getMetaDataStateHandle
in interface IncrementalKeyedStateHandle
public StateHandleID getStateHandleId()
KeyedStateHandle
ChangelogStateBackendHandle
, 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 KeyedStateHandle
public KeyedStateHandle getIntersection(KeyGroupRange keyGroupRange)
KeyedStateHandle
getIntersection
in interface KeyedStateHandle
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.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.