Class InternalTimersSnapshot<K,N>
java.lang.Object
org.apache.flink.streaming.api.operators.InternalTimersSnapshot<K,N>
A snapshot of internal timers, containing event and processing timers and the serializers to use
to write / read them.
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor used when restoring the timers.InternalTimersSnapshot(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, Set<TimerHeapInternalTimer<K, N>> eventTimeTimers, Set<TimerHeapInternalTimer<K, N>> processingTimeTimers) Constructor to use when snapshotting the timers. -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.flink.api.common.typeutils.TypeSerializerSnapshot<K>org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<N>inthashCode()voidsetEventTimeTimers(Set<TimerHeapInternalTimer<K, N>> eventTimeTimers) voidsetKeySerializerSnapshot(org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<K> keySerializerConfigSnapshot) voidsetNamespaceSerializerSnapshot(org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<N> namespaceSerializerConfigSnapshot) voidsetProcessingTimeTimers(Set<TimerHeapInternalTimer<K, N>> processingTimeTimers)
-
Constructor Details
-
InternalTimersSnapshot
public InternalTimersSnapshot()Empty constructor used when restoring the timers. -
InternalTimersSnapshot
public InternalTimersSnapshot(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, @Nullable Set<TimerHeapInternalTimer<K, N>> eventTimeTimers, @Nullable Set<TimerHeapInternalTimer<K, N>> processingTimeTimers) Constructor to use when snapshotting the timers.
-
-
Method Details
-
getKeySerializerSnapshot
-
setKeySerializerSnapshot
public void setKeySerializerSnapshot(org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<K> keySerializerConfigSnapshot) -
getNamespaceSerializerSnapshot
public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<N> getNamespaceSerializerSnapshot() -
setNamespaceSerializerSnapshot
public void setNamespaceSerializerSnapshot(org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<N> namespaceSerializerConfigSnapshot) -
getEventTimeTimers
-
setEventTimeTimers
-
getProcessingTimeTimers
-
setProcessingTimeTimers
-
equals
-
hashCode
public int hashCode()
-