K - Type of the keys to which timers are scoped.N - Type of the namespace to which timers are scoped.@Internal public final class TimerHeapInternalTimer<K,N> extends Object implements InternalTimer<K,N>, org.apache.flink.runtime.state.heap.HeapPriorityQueueElement
InternalTimer to use with a HeapPriorityQueueSet.KEY_EXTRACTOR_FUNCTION, TIMER_COMPARATOR| 构造器和说明 |
|---|
TimerHeapInternalTimer(long timestamp,
K key,
N namespace) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
comparePriorityTo(InternalTimer<?,?> other) |
boolean |
equals(Object o) |
int |
getInternalIndex() |
K |
getKey()
Returns the key that is bound to this timer.
|
N |
getNamespace()
Returns the namespace that is bound to this timer.
|
long |
getTimestamp()
Returns the timestamp of the timer.
|
int |
hashCode() |
void |
setInternalIndex(int newIndex) |
String |
toString() |
public long getTimestamp()
InternalTimergetTimestamp 在接口中 InternalTimer<K,N>@Nonnull public K getKey()
InternalTimergetKey 在接口中 org.apache.flink.runtime.state.Keyed<K>getKey 在接口中 InternalTimer<K,N>@Nonnull public N getNamespace()
InternalTimergetNamespace 在接口中 InternalTimer<K,N>public int getInternalIndex()
getInternalIndex 在接口中 org.apache.flink.runtime.state.heap.HeapPriorityQueueElementpublic void setInternalIndex(int newIndex)
setInternalIndex 在接口中 org.apache.flink.runtime.state.heap.HeapPriorityQueueElementpublic int comparePriorityTo(@Nonnull InternalTimer<?,?> other)
comparePriorityTo 在接口中 org.apache.flink.runtime.state.PriorityComparable<InternalTimer<?,?>>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.