com.hazelcast.jet.function

## Interface WindowResultFunction<R,OUT>

- Type Parameters:
    `R` - the type of aggregation result this function receives
    `OUT` - the type of the output item this function returns
  All Superinterfaces:
    Serializable
  Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

      @FunctionalInterface
      public interface WindowResultFunction<R,OUT>
      extends Serializable

  Represents the function you pass to a windowed aggregation method in the Pipeline API, such as `stage.aggregate()`. It creates the item to emit based on the results of a single aggregate operation performed for a particular window.

  The parameters are:

  1. `winStart` and `winEnd`: the starting and ending timestamp of the window (the end timestamp is the exclusive upper bound)
  2. `windowResult` the result of the aggregate operation

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `OUT` | `apply(long start, long end, R result)`
    `default KeyedWindowResultFunction<Object,R,OUT>` | `toKeyedWindowResultFn()`

- - ### Method Detail

    - #### apply

          @Nullable
          OUT apply(long start,
                              long end,
                              @Nonnull
                              R result)

    - #### toKeyedWindowResultFn

          default KeyedWindowResultFunction<Object,R,OUT> toKeyedWindowResultFn()

Copyright © 2018. All rights reserved.