类 WindowImpl<T>

java.lang.Object
org.apache.pulsar.functions.windowing.WindowImpl<T>
所有已实现的接口:
Window<T>

public class WindowImpl<T> extends Object implements Window<T>
Holds the expired, new and current events in a window.
  • 构造器详细资料

    • WindowImpl

      public WindowImpl(List<T> tuples, List<T> newTuples, List<T> expiredTuples, Long startTimestamp, Long endTimestamp)
  • 方法详细资料

    • get

      public List<T> get()
      从接口复制的说明: Window
      Gets the list of events in the window.

      Note: If the number of tuples in windows is huge, invoking get would load all the tuples into memory and may throw an OOM exception. Use windowing with persistence

      指定者:
      get 在接口中 Window<T>
      返回:
      the list of events in the window.
    • getNew

      public List<T> getNew()
      从接口复制的说明: Window
      Get the list of newly added events in the window since the last time the window was generated.
      指定者:
      getNew 在接口中 Window<T>
      返回:
      the list of newly added events in the window.
    • getExpired

      public List<T> getExpired()
      从接口复制的说明: Window
      Get the list of events expired from the window since the last time the window was generated.
      指定者:
      getExpired 在接口中 Window<T>
      返回:
      the list of events expired from the window.
    • getStartTimestamp

      public Long getStartTimestamp()
      从接口复制的说明: Window
      Returns the window start timestamp. Will return null if the window length is not based on time duration.
      指定者:
      getStartTimestamp 在接口中 Window<T>
      返回:
      the window start timestamp or null if the window length is not time based
    • getEndTimestamp

      public Long getEndTimestamp()
      从接口复制的说明: Window
      If processing based on event time, returns the window end time based on watermark otherwise returns the window end time based on processing time.
      指定者:
      getEndTimestamp 在接口中 Window<T>
      返回:
      the window end timestamp
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object