public interface KeyedStateHandle extends CompositeStateHandle
StateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector
Modifier and Type | Method and Description |
---|---|
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.
|
StateHandleID |
getStateHandleId()
Returns a unique state handle id to distinguish with other keyed state handles.
|
getCheckpointedSize, registerSharedStates
collectSizeStats, discardState, getStateSize
KeyGroupRange getKeyGroupRange()
@Nullable KeyedStateHandle getIntersection(KeyGroupRange keyGroupRange)
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.StateHandleID getStateHandleId()
ChangelogStateBackendHandle
, it should persist this state handle id when serializing of
checkpoint and deserialize it back to ensure the state handle id is constant.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.