/** * Map this stream to a windowed stream using the default partition and order. * <p> * <code><pre> * // (0, 1, 2, 3, 4) * SequenceM.of(1, 2, 4, 2, 3).window().map(Window::rowNumber) * </pre></code> */ default SequenceM<Window<T>> window() { return fromStream(Seq.super.window()); }
/** * Map this stream to a windowed stream with 2 distinct windows. */ @Generated("This method was generated using jOOQ-tools") default SequenceM<Tuple2<Window<T>, Window<T>>> window( WindowSpecification<T> specification1, WindowSpecification<T> specification2 ) { return fromStream(Seq.super.window(specification1,specification2)); }
/** * Map this stream to a windowed stream using the default partition and order with frame. * <p> * <code><pre> * // (2, 4, 4, 4, 3) * SequenceM.of(1, 2, 4, 2, 3).window(-1, 1).map(Window::max) * </pre></code> */ default SequenceM<Window<T>> window(long lower, long upper) { return fromStream(Seq.super.window(lower,upper)); }
/** * Map this stream to a windowed stream using the default partition and a specific order. * <p> * <code><pre> * // (0, 1, 4, 2, 3) * SequenceM.of(1, 2, 4, 2, 3).window(naturalOrder()).map(Window::rowNumber) * </pre></code> */ default SequenceM<Window<T>> window(Comparator<? super T> orderBy) { return fromStream(Seq.super.window(orderBy)); }
/** * Map this stream to a windowed stream with 3 distinct windows. */ @Generated("This method was generated using jOOQ-tools") default SequenceM<Tuple3<Window<T>, Window<T>, Window<T>>> window( WindowSpecification<T> specification1, WindowSpecification<T> specification2, WindowSpecification<T> specification3 ) { return fromStream(Seq.super.window(specification1,specification2,specification3)); }
/** * Map this stream to a windowed stream with 4 distinct windows. */ @Generated("This method was generated using jOOQ-tools") default SequenceM<Tuple4<Window<T>, Window<T>, Window<T>, Window<T>>> window( WindowSpecification<T> specification1, WindowSpecification<T> specification2, WindowSpecification<T> specification3, WindowSpecification<T> specification4 ) { return fromStream(Seq.super.window(specification1,specification2,specification3,specification4)); }
/** * Map this stream to a windowed stream using a specific partition and order with frame. * <p> * <code><pre> * // (3, 2, 4, 4, 3) * Seq.of(1, 2, 4, 2, 3).window(i -> i % 2, naturalOrder(), -1, 1).map(Window::max) * </pre></code> */ default <U> Seq<Window<T>> window(Function<? super T, ? extends U> partitionBy, Comparator<? super T> orderBy, long lower, long upper) { return window(Window.of(partitionBy, orderBy, lower, upper)).map(t -> t.v1); }
/** * Map this stream to a windowed stream using a specific partition and the default order. * <p> * <code><pre> * // (1, 2, 2, 2, 1) * Seq.of(1, 2, 4, 2, 3).window(i -> i % 2).map(Window::min) * </pre></code> */ default <U> Seq<Window<T>> window(Function<? super T, ? extends U> partitionBy) { return window(Window.of(partitionBy)).map(t -> t.v1); }
/** * Map this stream to a windowed stream using the default partition and order with frame. * <p> * <code><pre> * // (2, 4, 4, 4, 3) * Seq.of(1, 2, 4, 2, 3).window(-1, 1).map(Window::max) * </pre></code> */ default Seq<Window<T>> window(long lower, long upper) { return window(Window.of(lower, upper)).map(t -> t.v1); }
/** * Map this stream to a windowed stream using a specific partition and order. * <p> * <code><pre> * // (1, 2, 4, 4, 3) * Seq.of(1, 2, 4, 2, 3).window(i -> i % 2, naturalOrder()).map(Window::max) * </pre></code> */ default <U> Seq<Window<T>> window(Function<? super T, ? extends U> partitionBy, Comparator<? super T> orderBy) { return window(Window.of(partitionBy, orderBy)).map(t -> t.v1); }
/** * Map this stream to a windowed stream using the default partition and a specific order. * <p> * <code><pre> * // (0, 1, 4, 2, 3) * Seq.of(1, 2, 4, 2, 3).window(naturalOrder()).map(Window::rowNumber) * </pre></code> */ default Seq<Window<T>> window(Comparator<? super T> orderBy) { return window(Window.of(orderBy)).map(t -> t.v1); }
/** * Map this stream to a windowed stream using a specific partition and order. * <p> * <code><pre> * // (1, 2, 4, 4, 3) * Seq.of(1, 2, 4, 2, 3).window(i -> i % 2, naturalOrder()).map(Window::max) * </pre></code> */ default <U> Seq<Window<T>> window(Function<? super T, ? extends U> partitionBy, Comparator<? super T> orderBy) { return window(Window.of(partitionBy, orderBy)).map(t -> t.v1); }
/** * Map this stream to a windowed stream using the default partition and order. * <p> * <code><pre> * // (0, 1, 2, 3, 4) * Seq.of(1, 2, 4, 2, 3).window().map(Window::rowNumber) * </pre></code> */ default Seq<Window<T>> window() { return window(Window.of()).map(t -> t.v1); }
/** * Map this stream to a windowed stream using the default partition and order. * <p> * <code><pre> * // (0, 1, 2, 3, 4) * Seq.of(1, 2, 4, 2, 3).window().map(Window::rowNumber) * </pre></code> */ default Seq<Window<T>> window() { return window(Window.of()).map(t -> t.v1); }
/** * Map this stream to a windowed stream using the default partition and a specific order. * <p> * <code><pre> * // (0, 1, 4, 2, 3) * Seq.of(1, 2, 4, 2, 3).window(naturalOrder()).map(Window::rowNumber) * </pre></code> */ default Seq<Window<T>> window(Comparator<? super T> orderBy) { return window(Window.of(orderBy)).map(t -> t.v1); }
/** * Map this stream to a windowed stream using the default partition and a specific order with frame. * <p> * <code><pre> * // (1, 1, 3, 2, 2) * Seq.of(1, 2, 4, 2, 3).window(naturalOrder(), -1, 1).map(Window::min) * </pre></code> */ default Seq<Window<T>> window(Comparator<? super T> orderBy, long lower, long upper) { return window(Window.of(orderBy, lower, upper)).map(t -> t.v1); }
/** * Map this stream to a windowed stream using a specific partition and the default order. * <p> * <code><pre> * // (3, 4, 4, 2, 3) * Seq.of(1, 4, 2, 2, 3).window(i -> i % 2, -1, 1).map(Window::max) * </pre></code> */ default <U> Seq<Window<T>> window(Function<? super T, ? extends U> partitionBy, long lower, long upper) { return window(Window.of(partitionBy, lower, upper)).map(t -> t.v1); }
/** * Map this stream to a windowed stream using the default partition and a specific order with frame. * <p> * <code><pre> * // (1, 1, 3, 2, 2) * Seq.of(1, 2, 4, 2, 3).window(naturalOrder(), -1, 1).map(Window::min) * </pre></code> */ default Seq<Window<T>> window(Comparator<? super T> orderBy, long lower, long upper) { return window(Window.of(orderBy, lower, upper)).map(t -> t.v1); }
/** * Map this stream to a windowed stream using a specific partition and the default order. * <p> * <code><pre> * // (1, 2, 2, 2, 1) * Seq.of(1, 2, 4, 2, 3).window(i -> i % 2).map(Window::min) * </pre></code> */ default <U> Seq<Window<T>> window(Function<? super T, ? extends U> partitionBy) { return window(Window.of(partitionBy)).map(t -> t.v1); }
/** * Map this stream to a windowed stream using a specific partition and the default order. * <p> * <code><pre> * // (3, 4, 4, 2, 3) * Seq.of(1, 4, 2, 2, 3).window(i -> i % 2, -1, 1).map(Window::max) * </pre></code> */ default <U> Seq<Window<T>> window(Function<? super T, ? extends U> partitionBy, long lower, long upper) { return window(Window.of(partitionBy, lower, upper)).map(t -> t.v1); }