Package org.apache.storm.windowing.persistence

## Class WindowState.WindowPartition<T>

- java.lang.Object
- - org.apache.storm.windowing.persistence.WindowState.WindowPartition<T>

- All Implemented Interfaces:
    `Iterable<Event<T>>`
  Enclosing class:
    WindowState<T>

      public static class WindowState.WindowPartition<T>
      extends Object
      implements Iterable<Event<T>>

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `WindowPartition​(long id)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Collection<Event<T>>` | `getEvents()` |
    `long` | `getId()` |
    `Iterator<Event<T>>` | `iterator()` |
    `int` | `size()` |
    `String` | `toString()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

- - ### Constructor Detail

    - #### WindowPartition

          public WindowPartition​(long id)

  - ### Method Detail

    - #### iterator

          public Iterator<Event<T>> iterator()

      Specified by:
        `iterator` in interface `Iterable<T>`

    - #### size

          public int size()

    - #### getId

          public long getId()

    - #### getEvents

          public Collection<Event<T>> getEvents()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`