类 DefaultEvictionContext
java.lang.Object
org.apache.pulsar.functions.windowing.DefaultEvictionContext
- 所有已实现的接口:
EvictionContext
-
构造器概要
构造器构造器说明DefaultEvictionContext(Long referenceTime) DefaultEvictionContext(Long referenceTime, Long currentCount) DefaultEvictionContext(Long referenceTime, Long currentCount, Long slidingCount) DefaultEvictionContext(Long referenceTime, Long currentCount, Long slidingCount, Long slidingInterval) -
方法概要
修饰符和类型方法说明Returns the current count of events in the queue up to the reference time based on which count based evictions can be performed.Returns the reference time that the eviction policy could use to evict the events.Returns the sliding count for count based windows.Returns the sliding interval for time based windows.
-
构造器详细资料
-
DefaultEvictionContext
-
DefaultEvictionContext
-
DefaultEvictionContext
-
DefaultEvictionContext
-
-
方法详细资料
-
getReferenceTime
从接口复制的说明:EvictionContextReturns 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
从接口复制的说明:EvictionContextReturns 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
从接口复制的说明:EvictionContextReturns the sliding count for count based windows.- 指定者:
getSlidingCount在接口中EvictionContext- 返回:
- the sliding count
-
getSlidingInterval
从接口复制的说明:EvictionContextReturns the sliding interval for time based windows.- 指定者:
getSlidingInterval在接口中EvictionContext- 返回:
- the sliding interval
-