Class LastDatedValueFunction<T>

  • Type Parameters:
    T - input value
    All Implemented Interfaces:
    Serializable, FunctionDefinition

    public final class LastDatedValueFunction<T>
    extends AggregateFunction<Row,​LastDatedValueFunction.Accumulator<T>>
    Implementation of an AggregateFunction that returns a row containing the latest non-null value with its corresponding date.

    The function uses a custom TypeInference and thus disables any of the default reflection-based logic. It has a generic parameter T which will result in Object (due to type erasure) during runtime. The TypeInference will provide the necessary information how to call accumulate(...) for the given call in the query.

    For code readability, we might use some internal utility methods that should rarely change. Implementers can copy those if they don't want to rely on non-official API.

    See Also:
    Serialized Form