K
- @Internal public class KeyedStateBackendParametersImpl<K> extends Object implements StateBackend.KeyedStateBackendParameters<K>
StateBackend.KeyedStateBackendParameters
Constructor and Description |
---|
KeyedStateBackendParametersImpl(Environment env,
JobID jobID,
String operatorIdentifier,
TypeSerializer<K> keySerializer,
int numberOfKeyGroups,
KeyGroupRange keyGroupRange,
TaskKvStateRegistry kvStateRegistry,
TtlTimeProvider ttlTimeProvider,
MetricGroup metricGroup,
Collection<KeyedStateHandle> stateHandles,
CloseableRegistry cancelStreamRegistry) |
KeyedStateBackendParametersImpl(Environment env,
JobID jobID,
String operatorIdentifier,
TypeSerializer<K> keySerializer,
int numberOfKeyGroups,
KeyGroupRange keyGroupRange,
TaskKvStateRegistry kvStateRegistry,
TtlTimeProvider ttlTimeProvider,
MetricGroup metricGroup,
StateBackend.CustomInitializationMetrics customInitializationMetrics,
Collection<KeyedStateHandle> stateHandles,
CloseableRegistry cancelStreamRegistry,
double managedMemoryFraction) |
KeyedStateBackendParametersImpl(StateBackend.KeyedStateBackendParameters<K> parameters) |
Modifier and Type | Method and Description |
---|---|
CloseableRegistry |
getCancelStreamRegistry() |
StateBackend.CustomInitializationMetrics |
getCustomInitializationMetrics() |
Environment |
getEnv() |
JobID |
getJobID() |
KeyGroupRange |
getKeyGroupRange() |
TypeSerializer<K> |
getKeySerializer() |
TaskKvStateRegistry |
getKvStateRegistry() |
double |
getManagedMemoryFraction() |
MetricGroup |
getMetricGroup() |
int |
getNumberOfKeyGroups() |
String |
getOperatorIdentifier() |
Collection<KeyedStateHandle> |
getStateHandles() |
TtlTimeProvider |
getTtlTimeProvider() |
KeyedStateBackendParametersImpl<K> |
setStateHandles(Collection<KeyedStateHandle> stateHandles) |
KeyedStateBackendParametersImpl<K> |
setTtlTimeProvider(TtlTimeProvider ttlTimeProvider) |
public KeyedStateBackendParametersImpl(Environment env, JobID jobID, String operatorIdentifier, TypeSerializer<K> keySerializer, int numberOfKeyGroups, KeyGroupRange keyGroupRange, TaskKvStateRegistry kvStateRegistry, TtlTimeProvider ttlTimeProvider, MetricGroup metricGroup, Collection<KeyedStateHandle> stateHandles, CloseableRegistry cancelStreamRegistry)
public KeyedStateBackendParametersImpl(Environment env, JobID jobID, String operatorIdentifier, TypeSerializer<K> keySerializer, int numberOfKeyGroups, KeyGroupRange keyGroupRange, TaskKvStateRegistry kvStateRegistry, TtlTimeProvider ttlTimeProvider, MetricGroup metricGroup, StateBackend.CustomInitializationMetrics customInitializationMetrics, Collection<KeyedStateHandle> stateHandles, CloseableRegistry cancelStreamRegistry, double managedMemoryFraction)
public KeyedStateBackendParametersImpl(StateBackend.KeyedStateBackendParameters<K> parameters)
public Environment getEnv()
getEnv
in interface StateBackend.KeyedStateBackendParameters<K>
public JobID getJobID()
getJobID
in interface StateBackend.KeyedStateBackendParameters<K>
public String getOperatorIdentifier()
getOperatorIdentifier
in interface StateBackend.KeyedStateBackendParameters<K>
public TypeSerializer<K> getKeySerializer()
getKeySerializer
in interface StateBackend.KeyedStateBackendParameters<K>
public int getNumberOfKeyGroups()
getNumberOfKeyGroups
in interface StateBackend.KeyedStateBackendParameters<K>
public KeyGroupRange getKeyGroupRange()
getKeyGroupRange
in interface StateBackend.KeyedStateBackendParameters<K>
public TaskKvStateRegistry getKvStateRegistry()
getKvStateRegistry
in interface StateBackend.KeyedStateBackendParameters<K>
public TtlTimeProvider getTtlTimeProvider()
getTtlTimeProvider
in interface StateBackend.KeyedStateBackendParameters<K>
public MetricGroup getMetricGroup()
getMetricGroup
in interface StateBackend.KeyedStateBackendParameters<K>
@Nonnull public Collection<KeyedStateHandle> getStateHandles()
getStateHandles
in interface StateBackend.KeyedStateBackendParameters<K>
public CloseableRegistry getCancelStreamRegistry()
getCancelStreamRegistry
in interface StateBackend.KeyedStateBackendParameters<K>
public double getManagedMemoryFraction()
getManagedMemoryFraction
in interface StateBackend.KeyedStateBackendParameters<K>
public StateBackend.CustomInitializationMetrics getCustomInitializationMetrics()
getCustomInitializationMetrics
in interface StateBackend.KeyedStateBackendParameters<K>
public KeyedStateBackendParametersImpl<K> setStateHandles(Collection<KeyedStateHandle> stateHandles)
public KeyedStateBackendParametersImpl<K> setTtlTimeProvider(TtlTimeProvider ttlTimeProvider)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.