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 Detail

      • 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.