public final class WindowingHelpers extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> org.apache.spark.api.java.function.Function<WindowedValue<T>,T> |
unwindowFunction()
A Spark function for extracting the value from a
WindowedValue. |
static <T> com.google.common.base.Function<WindowedValue<T>,T> |
unwindowValueFunction()
Same as unwindowFunction but for non-RDD values - not an RDD transformation!
|
static <T> org.apache.spark.api.java.function.Function<T,WindowedValue<T>> |
windowFunction()
A Spark function for converting a value to a
WindowedValue. |
static <T> com.google.common.base.Function<T,WindowedValue<T>> |
windowValueFunction()
Same as windowFunction but for non-RDD values - not an RDD transformation!
|
public static <T> org.apache.spark.api.java.function.Function<T,WindowedValue<T>> windowFunction()
WindowedValue. The resulting
WindowedValue will be in a global windows, and will have the default timestamp == MIN
and pane.T - The type of the object.WindowedValue.public static <T> org.apache.spark.api.java.function.Function<WindowedValue<T>,T> unwindowFunction()
WindowedValue.T - The type of the object.WindowedValue and returns its value.public static <T> com.google.common.base.Function<T,WindowedValue<T>> windowValueFunction()
T - The type of the object.WindowedValue.public static <T> com.google.common.base.Function<WindowedValue<T>,T> unwindowValueFunction()
T - The type of the object.WindowedValue.Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.