Uses of Interface
org.apache.flink.runtime.state.KeyedStateHandle
Packages that use KeyedStateHandle
Package
Description
This package contains the classes for key/value state backends that store the state on the JVM
heap as objects.
-
Uses of KeyedStateHandle in org.apache.flink.runtime.checkpoint
Methods in org.apache.flink.runtime.checkpoint that return KeyedStateHandleModifier and TypeMethodDescriptionSubtaskState.getManagedKeyedState()Deprecated.SubtaskState.getRawKeyedState()Deprecated.Methods in org.apache.flink.runtime.checkpoint that return types with arguments of type KeyedStateHandleModifier and TypeMethodDescriptionPrioritizedOperatorSubtaskState.getJobManagerManagedKeyedState()Returns the managed keyed state from the job manager, which represents the ground truth about what this state should represent.PrioritizedOperatorSubtaskState.getJobManagerRawKeyedState()Returns the raw keyed state from the job manager, which represents the ground truth about what this state should represent.OperatorSubtaskState.getManagedKeyedState()static List<KeyedStateHandle>StateAssignmentOperation.getManagedKeyedStateHandles(OperatorState operatorState, KeyGroupRange subtaskKeyGroupRange) CollectmanagedKeyedStateHandleswhich have intersection with givenKeyGroupRangefromoperatorState.PrioritizedOperatorSubtaskState.getPrioritizedManagedKeyedState()Returns an immutable list with all alternative snapshots to restore the managed keyed state, in the order in which we should attempt to restore.PrioritizedOperatorSubtaskState.getPrioritizedRawKeyedState()Returns an immutable list with all alternative snapshots to restore the raw keyed state, in the order in which we should attempt to restore.OperatorSubtaskState.getRawKeyedState()static List<KeyedStateHandle>StateAssignmentOperation.getRawKeyedStateHandles(OperatorState operatorState, KeyGroupRange subtaskKeyGroupRange) Methods in org.apache.flink.runtime.checkpoint with parameters of type KeyedStateHandleModifier and TypeMethodDescriptionOperatorSubtaskState.Builder.setManagedKeyedState(KeyedStateHandle managedKeyedState) OperatorSubtaskState.Builder.setRawKeyedState(KeyedStateHandle rawKeyedState) Method parameters in org.apache.flink.runtime.checkpoint with type arguments of type KeyedStateHandleModifier and TypeMethodDescriptionstatic voidStateAssignmentOperation.extractIntersectingState(Collection<? extends KeyedStateHandle> originalSubtaskStateHandles, KeyGroupRange rangeToExtract, List<KeyedStateHandle> extractedStateCollector) Extracts certain key group ranges from the given state handles and adds them to the collector.static voidStateAssignmentOperation.extractIntersectingState(Collection<? extends KeyedStateHandle> originalSubtaskStateHandles, KeyGroupRange rangeToExtract, List<KeyedStateHandle> extractedStateCollector) Extracts certain key group ranges from the given state handles and adds them to the collector.OperatorSubtaskState.Builder.setManagedKeyedState(StateObjectCollection<KeyedStateHandle> managedKeyedState) OperatorSubtaskState.Builder.setRawKeyedState(StateObjectCollection<KeyedStateHandle> rawKeyedState) Constructors in org.apache.flink.runtime.checkpoint with parameters of type KeyedStateHandleModifierConstructorDescriptionSubtaskState(ChainedStateHandle<OperatorStateHandle> managedOperatorState, ChainedStateHandle<OperatorStateHandle> rawOperatorState, KeyedStateHandle managedKeyedState, KeyedStateHandle rawKeyedState) Deprecated. -
Uses of KeyedStateHandle in org.apache.flink.runtime.checkpoint.metadata
Methods in org.apache.flink.runtime.checkpoint.metadata that return KeyedStateHandleModifier and TypeMethodDescriptionstatic KeyedStateHandleMetadataV3Serializer.deserializeKeyedStateHandleUtil(DataInputStream dis) Methods in org.apache.flink.runtime.checkpoint.metadata with parameters of type KeyedStateHandleModifier and TypeMethodDescriptionstatic voidMetadataV3Serializer.serializeKeyedStateHandleUtil(KeyedStateHandle stateHandle, DataOutputStream dos) -
Uses of KeyedStateHandle in org.apache.flink.runtime.state
Subinterfaces of KeyedStateHandle in org.apache.flink.runtime.stateModifier and TypeInterfaceDescriptioninterfaceKeyedStateHandlethat is bound to a specific checkpoint.interfaceCommon interface to all incrementalKeyedStateHandle.interfaceAKeyedStateHandlethat points to a savepoint taken in the unified format.Classes in org.apache.flink.runtime.state that implement KeyedStateHandleModifier and TypeClassDescriptionclassAbstract superclass for allIncrementalKeyedStateHandle.classState handle for local copies ofIncrementalRemoteKeyedStateHandle.classThe handle to states of an incremental snapshot.classAKeyGroupsStateHandlethat describes a savepoint in the unified format.classA handle to the partitioned stream operator state after it has been checkpointed.Fields in org.apache.flink.runtime.state with type parameters of type KeyedStateHandleModifier and TypeFieldDescriptionprotected RunnableFuture<SnapshotResult<KeyedStateHandle>>StateSnapshotContextSynchronousImpl.keyedStateCheckpointClosingFutureprotected final Collection<KeyedStateHandle>AbstractKeyedStateBackendBuilder.restoreStateHandlesMethods in org.apache.flink.runtime.state that return KeyedStateHandleModifier and TypeMethodDescriptionCheckpointStreamWithResultProvider.KeyedStateHandleFactory.create(KeyGroupRangeOffsets keyGroupRangeOffsets, StreamStateHandle streamStateHandle) AbstractIncrementalStateHandle.getIntersection(KeyGroupRange keyGroupRange) 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.Methods in org.apache.flink.runtime.state that return types with arguments of type KeyedStateHandleModifier and TypeMethodDescriptionSavepointSnapshotStrategy.asyncSnapshot(FullSnapshotResources<K> savepointResources, long checkpointId, long timestamp, CheckpointStreamFactory streamFactory, CheckpointOptions checkpointOptions) FullSnapshotAsyncWriter.get(org.apache.flink.core.fs.CloseableRegistry snapshotCloseableRegistry) StateSnapshotContextSynchronousImpl.getKeyedStateStreamFuture()KeyedStateBackendParametersImpl.getStateHandles()StateBackend.KeyedStateBackendParameters.getStateHandles()static SnapshotResult<KeyedStateHandle>CheckpointStreamWithResultProvider.toKeyedStateHandleSnapshotResult(SnapshotResult<StreamStateHandle> snapshotResult, KeyGroupRangeOffsets keyGroupRangeOffsets, CheckpointStreamWithResultProvider.KeyedStateHandleFactory stateHandleFactory) Helper method that takes aSnapshotResult<StreamStateHandle>and aKeyGroupRangeOffsetsand creates aSnapshotResult<KeyedStateHandle>by combining the key groups offsets with all the present stream state handles.Method parameters in org.apache.flink.runtime.state with type arguments of type KeyedStateHandleModifier and TypeMethodDescriptionstatic StateBackendStateBackendLoader.loadStateBackendFromKeyedStateHandles(StateBackend originalStateBackend, ClassLoader classLoader, Collection<KeyedStateHandle> keyedStateHandles) Load state backend which may wrap the original state backend for recovery.KeyedStateBackendParametersImpl.setStateHandles(Collection<KeyedStateHandle> stateHandles) Constructor parameters in org.apache.flink.runtime.state with type arguments of type KeyedStateHandleModifierConstructorDescriptionAbstractKeyedStateBackendBuilder(TaskKvStateRegistry kvStateRegistry, org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, ClassLoader userCodeClassLoader, int numberOfKeyGroups, KeyGroupRange keyGroupRange, org.apache.flink.api.common.ExecutionConfig executionConfig, TtlTimeProvider ttlTimeProvider, LatencyTrackingStateConfig latencyTrackingStateConfig, Collection<KeyedStateHandle> stateHandles, StreamCompressionDecorator keyGroupCompressionDecorator, org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry) KeyedStateBackendParametersImpl(Environment env, org.apache.flink.api.common.JobID jobID, String operatorIdentifier, org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, int numberOfKeyGroups, KeyGroupRange keyGroupRange, TaskKvStateRegistry kvStateRegistry, TtlTimeProvider ttlTimeProvider, org.apache.flink.metrics.MetricGroup metricGroup, Collection<KeyedStateHandle> stateHandles, org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry) KeyedStateBackendParametersImpl(Environment env, org.apache.flink.api.common.JobID jobID, String operatorIdentifier, org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, int numberOfKeyGroups, KeyGroupRange keyGroupRange, TaskKvStateRegistry kvStateRegistry, TtlTimeProvider ttlTimeProvider, org.apache.flink.metrics.MetricGroup metricGroup, StateBackend.CustomInitializationMetrics customInitializationMetrics, Collection<KeyedStateHandle> stateHandles, org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry, double managedMemoryFraction) -
Uses of KeyedStateHandle in org.apache.flink.runtime.state.changelog
Subinterfaces of KeyedStateHandle in org.apache.flink.runtime.state.changelogModifier and TypeInterfaceDescriptioninterfaceA handle to ChangelogStateBackend state.interfaceA handle to savedstate changes.Classes in org.apache.flink.runtime.state.changelog that implement KeyedStateHandleModifier and TypeClassDescriptionstatic classclassState handle for local copies ofChangelogStateHandleStreamImpl.final classChangelogStateHandleimplementation based onStreamStateHandle.Methods in org.apache.flink.runtime.state.changelog that return KeyedStateHandleModifier and TypeMethodDescriptionChangelogStateBackendHandle.ChangelogStateBackendHandleImpl.getIntersection(KeyGroupRange keyGroupRange) ChangelogStateBackendLocalHandle.getIntersection(KeyGroupRange keyGroupRange) ChangelogStateHandleStreamImpl.getIntersection(KeyGroupRange keyGroupRange) Methods in org.apache.flink.runtime.state.changelog that return types with arguments of type KeyedStateHandleModifier and TypeMethodDescriptionChangelogStateBackendHandle.ChangelogStateBackendHandleImpl.getMaterializedStateHandles()ChangelogStateBackendHandle.getMaterializedStateHandles()ChangelogStateBackendLocalHandle.getMaterializedStateHandles()ChangelogStateBackendLocalHandle.getRemoteMaterializedStateHandles()Methods in org.apache.flink.runtime.state.changelog with parameters of type KeyedStateHandleModifier and TypeMethodDescriptionstatic ChangelogStateBackendHandleChangelogStateBackendHandle.ChangelogStateBackendHandleImpl.getChangelogStateBackendHandle(KeyedStateHandle originKeyedStateHandle) Method parameters in org.apache.flink.runtime.state.changelog with type arguments of type KeyedStateHandleModifier and TypeMethodDescriptionChangelogStateBackendHandle.ChangelogStateBackendHandleImpl.restore(List<KeyedStateHandle> materialized, List<ChangelogStateHandle> nonMaterialized, KeyGroupRange keyGroupRange, long checkpointId, long materializationID, long persistedSizeOfThisCheckpoint, StateHandleID stateHandleId) Constructor parameters in org.apache.flink.runtime.state.changelog with type arguments of type KeyedStateHandleModifierConstructorDescriptionChangelogStateBackendHandleImpl(List<KeyedStateHandle> materialized, List<ChangelogStateHandle> nonMaterialized, KeyGroupRange keyGroupRange, long checkpointId, long materializationID, long persistedSizeOfThisCheckpoint) ChangelogStateBackendLocalHandle(List<KeyedStateHandle> localMaterialized, List<ChangelogStateHandle> localNonMaterialized, ChangelogStateBackendHandle.ChangelogStateBackendHandleImpl remoteHandle) -
Uses of KeyedStateHandle in org.apache.flink.runtime.state.changelog.inmemory
Classes in org.apache.flink.runtime.state.changelog.inmemory that implement KeyedStateHandleMethods in org.apache.flink.runtime.state.changelog.inmemory that return KeyedStateHandleModifier and TypeMethodDescriptionInMemoryChangelogStateHandle.getIntersection(KeyGroupRange keyGroupRange) -
Uses of KeyedStateHandle in org.apache.flink.runtime.state.heap
Methods in org.apache.flink.runtime.state.heap that return types with arguments of type KeyedStateHandleModifier and TypeMethodDescriptionHeapKeyedStateBackend.snapshot(long checkpointId, long timestamp, CheckpointStreamFactory streamFactory, CheckpointOptions checkpointOptions) Constructor parameters in org.apache.flink.runtime.state.heap with type arguments of type KeyedStateHandleModifierConstructorDescriptionHeapKeyedStateBackendBuilder(TaskKvStateRegistry kvStateRegistry, org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, ClassLoader userCodeClassLoader, int numberOfKeyGroups, KeyGroupRange keyGroupRange, org.apache.flink.api.common.ExecutionConfig executionConfig, TtlTimeProvider ttlTimeProvider, LatencyTrackingStateConfig latencyTrackingStateConfig, Collection<KeyedStateHandle> stateHandles, StreamCompressionDecorator keyGroupCompressionDecorator, LocalRecoveryConfig localRecoveryConfig, HeapPriorityQueueSetFactory priorityQueueSetFactory, boolean asynchronousSnapshots, org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry) -
Uses of KeyedStateHandle in org.apache.flink.runtime.state.restore
Constructor parameters in org.apache.flink.runtime.state.restore with type arguments of type KeyedStateHandleModifierConstructorDescriptionFullSnapshotRestoreOperation(KeyGroupRange keyGroupRange, ClassLoader userCodeClassLoader, Collection<KeyedStateHandle> restoreStateHandles, StateSerializerProvider<K> keySerializerProvider) -
Uses of KeyedStateHandle in org.apache.flink.runtime.state.v2.adaptor
Methods in org.apache.flink.runtime.state.v2.adaptor that return types with arguments of type KeyedStateHandleModifier and TypeMethodDescriptionAsyncKeyedStateBackendAdaptor.snapshot(long checkpointId, long timestamp, CheckpointStreamFactory streamFactory, CheckpointOptions checkpointOptions) -
Uses of KeyedStateHandle in org.apache.flink.streaming.api.operators
Methods in org.apache.flink.streaming.api.operators that return types with arguments of type KeyedStateHandleModifier and TypeMethodDescriptionOperatorSnapshotFutures.getKeyedStateManagedFuture()OperatorSnapshotFutures.getKeyedStateRawFuture()static SnapshotStrategyRunner<KeyedStateHandle,? extends FullSnapshotResources<?>> StreamOperatorStateHandler.prepareCanonicalSavepoint(CheckpointableKeyedStateBackend<?> keyedStateBackend, org.apache.flink.core.fs.CloseableRegistry closeableRegistry) Method parameters in org.apache.flink.streaming.api.operators with type arguments of type KeyedStateHandleModifier and TypeMethodDescriptionprotected org.apache.flink.util.CloseableIterable<KeyGroupStatePartitionStreamProvider>StreamTaskStateInitializerImpl.rawKeyedStateInputs(Iterator<StateObjectCollection<KeyedStateHandle>> restoreStateAlternatives, StateObject.StateObjectSizeStatsCollector statsCollector) voidOperatorSnapshotFutures.setKeyedStateManagedFuture(RunnableFuture<SnapshotResult<KeyedStateHandle>> keyedStateManagedFuture) voidOperatorSnapshotFutures.setKeyedStateRawFuture(RunnableFuture<SnapshotResult<KeyedStateHandle>> keyedStateRawFuture) Constructor parameters in org.apache.flink.streaming.api.operators with type arguments of type KeyedStateHandleModifierConstructorDescriptionOperatorSnapshotFutures(RunnableFuture<SnapshotResult<KeyedStateHandle>> keyedStateManagedFuture, RunnableFuture<SnapshotResult<KeyedStateHandle>> keyedStateRawFuture, RunnableFuture<SnapshotResult<OperatorStateHandle>> operatorStateManagedFuture, RunnableFuture<SnapshotResult<OperatorStateHandle>> operatorStateRawFuture, Future<SnapshotResult<StateObjectCollection<InputChannelStateHandle>>> inputChannelStateFuture, Future<SnapshotResult<StateObjectCollection<ResultSubpartitionStateHandle>>> resultSubpartitionStateFuture) -
Uses of KeyedStateHandle in org.apache.flink.streaming.api.operators.sorted.state
Methods in org.apache.flink.streaming.api.operators.sorted.state that return types with arguments of type KeyedStateHandleModifier and TypeMethodDescriptionBatchExecutionKeyedStateBackend.snapshot(long checkpointId, long timestamp, CheckpointStreamFactory streamFactory, CheckpointOptions checkpointOptions)