Class CalendarWindows.MonthsWindows

All Implemented Interfaces:
Serializable, HasDisplayData
Enclosing class:
CalendarWindows

public static class CalendarWindows.MonthsWindows extends PartitioningWindowFn<Object,IntervalWindow>
A WindowFn that windows elements into periods measured by months.

By default, periods of multiple months are measured starting at the epoch. This can be overridden with withStartingMonth(int, int).

Months start on the first day of each calendar month, unless overridden by beginningOnDay(int).

The time zone used to determine calendar boundaries is UTC, unless this is overridden with the withTimeZone(org.joda.time.DateTimeZone) method.

See Also: