类 DefaultEvictionContext

java.lang.Object
org.apache.pulsar.functions.windowing.DefaultEvictionContext
所有已实现的接口:
EvictionContext

public class DefaultEvictionContext extends Object implements EvictionContext
  • 构造器详细资料

    • DefaultEvictionContext

      public DefaultEvictionContext(Long referenceTime)
    • DefaultEvictionContext

      public DefaultEvictionContext(Long referenceTime, Long currentCount)
    • DefaultEvictionContext

      public DefaultEvictionContext(Long referenceTime, Long currentCount, Long slidingCount)
    • DefaultEvictionContext

      public DefaultEvictionContext(Long referenceTime, Long currentCount, Long slidingCount, Long slidingInterval)
  • 方法详细资料

    • getReferenceTime

      public Long getReferenceTime()
      从接口复制的说明: EvictionContext
      Returns the reference time that the eviction policy could use to evict the events. In the case of event time processing, this would be the watermark time.
      指定者:
      getReferenceTime 在接口中 EvictionContext
      返回:
      the reference time in millis
    • getCurrentCount

      public Long getCurrentCount()
      从接口复制的说明: EvictionContext
      Returns the current count of events in the queue up to the reference time based on which count based evictions can be performed.
      指定者:
      getCurrentCount 在接口中 EvictionContext
      返回:
      the current count
    • getSlidingCount

      public Long getSlidingCount()
      从接口复制的说明: EvictionContext
      Returns the sliding count for count based windows.
      指定者:
      getSlidingCount 在接口中 EvictionContext
      返回:
      the sliding count
    • getSlidingInterval

      public Long getSlidingInterval()
      从接口复制的说明: EvictionContext
      Returns the sliding interval for time based windows.
      指定者:
      getSlidingInterval 在接口中 EvictionContext
      返回:
      the sliding interval