/** * Creates a new {@code TumblingTimeWindows} {@link WindowAssigner} that assigns * elements to time windows based on the element timestamp. * * @deprecated Please use {@link TumblingEventTimeWindows#of(Time)}. * * @param size The size of the generated windows. * @return The time policy. */ @Deprecated() public static TumblingTimeWindows of(Time size) { return new TumblingTimeWindows(size.toMilliseconds()); } }
/** * Creates a new {@code TumblingTimeWindows} {@link WindowAssigner} that assigns * elements to time windows based on the element timestamp. * * @deprecated Please use {@link TumblingEventTimeWindows#of(Time)}. * * @param size The size of the generated windows. * @return The time policy. */ @Deprecated() public static TumblingTimeWindows of(Time size) { return new TumblingTimeWindows(size.toMilliseconds()); } }
/** * Creates a new {@code TumblingTimeWindows} {@link WindowAssigner} that assigns * elements to time windows based on the element timestamp. * * @deprecated Please use {@link TumblingEventTimeWindows#of(Time)}. * * @param size The size of the generated windows. * @return The time policy. */ @Deprecated() public static TumblingTimeWindows of(Time size) { return new TumblingTimeWindows(size.toMilliseconds()); } }
/** * Creates a new {@code TumblingTimeWindows} {@link WindowAssigner} that assigns * elements to time windows based on the element timestamp. * * @deprecated Please use {@link TumblingEventTimeWindows#of(Time)}. * * @param size The size of the generated windows. * @return The time policy. */ @Deprecated() public static TumblingTimeWindows of(Time size) { return new TumblingTimeWindows(size.toMilliseconds()); } }