public abstract class AbstractIncrementalStateHandle extends Object implements IncrementalKeyedStateHandle
IncrementalKeyedStateHandle.IncrementalKeyedStateHandle.HandleAndLocalPathStateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
| 构造器和说明 |
|---|
AbstractIncrementalStateHandle(UUID backendIdentifier,
KeyGroupRange keyGroupRange,
long checkpointId,
List<IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState,
StreamStateHandle metaStateHandle,
StateHandleID stateHandleId) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
reboundgetCheckpointedSize, 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()
CheckpointBoundKeyedStateHandle@Nonnull public UUID getBackendIdentifier()
IncrementalKeyedStateHandlepublic KeyGroupRange getKeyGroupRange()
KeyedStateHandlegetKeyGroupRange 在接口中 KeyedStateHandle@Nonnull public List<IncrementalKeyedStateHandle.HandleAndLocalPath> getSharedStateHandles()
IncrementalKeyedStateHandle@Nonnull public StreamStateHandle getMetaDataStateHandle()
public 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 在接口中 KeyedStateHandlepublic KeyedStateHandle getIntersection(KeyGroupRange keyGroupRange)
KeyedStateHandlegetIntersection 在接口中 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–2024 The Apache Software Foundation. All rights reserved.