Interface Evictor.EvictorContext

Enclosing interface:
Evictor<T,W extends Window>

public static interface Evictor.EvictorContext
A context object that is given to Evictor methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the current processing time.
    long
    Returns the current watermark time.
    org.apache.flink.metrics.MetricGroup
    Returns the metric group for this Evictor.
  • Method Details

    • getCurrentProcessingTime

      long getCurrentProcessingTime()
      Returns the current processing time.
    • getMetricGroup

      org.apache.flink.metrics.MetricGroup getMetricGroup()
      Returns the metric group for this Evictor. This is the same metric group that would be returned from RuntimeContext.getMetricGroup() in a user function.

      You must not call methods that create metric objects (such as MetricGroup.counter(int) multiple times but instead call once and store the metric object in a field.

    • getCurrentWatermark

      long getCurrentWatermark()
      Returns the current watermark time.