Class CalendarWindows.YearsWindows

All Implemented Interfaces:
Serializable, HasDisplayData
Enclosing class:
CalendarWindows

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

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

Years start on the first day of each calendar year, unless overridden by beginningOnDay(int, 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: