Class StatusWatermarkValve.SubpartitionStatus
- java.lang.Object
-
- org.apache.flink.streaming.runtime.watermarkstatus.StatusWatermarkValve.SubpartitionStatus
-
- Enclosing class:
- StatusWatermarkValve
@VisibleForTesting protected static class StatusWatermarkValve.SubpartitionStatus extends Object
AnSubpartitionStatuskeeps track of a subpartition's last watermark, stream status, and whether or not the subpartition's current watermark is aligned with the overall watermark output from the valve.There are 2 situations where a subpartition's watermark is not considered aligned:
- the current watermark status of the subpartition is idle
- the watermark status has resumed to be active, but the watermark of the subpartition hasn't caught up to the last output watermark from the valve yet.
NOTE: This class implements
HeapPriorityQueue.HeapPriorityQueueElementto be managed byStatusWatermarkValve.alignedSubpartitionStatusesto help find minimum watermark.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisWatermarkAlignedstatic intNOT_CONTAINEDThe index that indicates that aHeapPriorityQueue.HeapPriorityQueueElementobject is not contained in and managed by anyHeapPriorityQueue.protected longwatermarkprotected WatermarkStatuswatermarkStatus
-
Constructor Summary
Constructors Modifier Constructor Description protectedSubpartitionStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetInternalIndex()voidsetInternalIndex(int newIndex)
-
-
-
Field Detail
-
watermark
protected long watermark
-
watermarkStatus
protected WatermarkStatus watermarkStatus
-
isWatermarkAligned
protected boolean isWatermarkAligned
-
NOT_CONTAINED
public static final int NOT_CONTAINED
The index that indicates that aHeapPriorityQueue.HeapPriorityQueueElementobject is not contained in and managed by anyHeapPriorityQueue. We do not strictly enforce that internal indexes must be reset to this value when elements are removed from aHeapPriorityQueue.- See Also:
- Constant Field Values
-
-