public final class RowHelpers
extends java.lang.Object
Row.| Constructor and Description | 
|---|
| RowHelpers() | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> org.apache.spark.api.java.function.MapFunction<org.apache.spark.sql.Row,org.apache.beam.sdk.util.WindowedValue<T>> | extractWindowedValueFromRowMapFunction(org.apache.beam.sdk.util.WindowedValue.WindowedValueCoder<T> windowedValueCoder)A Spark  MapFunctionfor extracting aWindowedValuefrom a Row in which theWindowedValuewas serialized to bytes using itsWindowedValue.WindowedValueCoder. | 
| static <T> org.apache.spark.sql.catalyst.InternalRow | storeWindowedValueInRow(org.apache.beam.sdk.util.WindowedValue<T> windowedValue,
                       Coder<T> coder)Serialize a windowedValue to bytes using windowedValueCoder  WindowedValue.FullWindowedValueCoderand stores it an InternalRow. | 
public static <T> org.apache.spark.api.java.function.MapFunction<org.apache.spark.sql.Row,org.apache.beam.sdk.util.WindowedValue<T>> extractWindowedValueFromRowMapFunction(org.apache.beam.sdk.util.WindowedValue.WindowedValueCoder<T> windowedValueCoder)
MapFunction for extracting a WindowedValue from a Row in which the
 WindowedValue was serialized to bytes using its WindowedValue.WindowedValueCoder.T - The type of the object.MapFunction that accepts a Row and returns its WindowedValue.public static <T> org.apache.spark.sql.catalyst.InternalRow storeWindowedValueInRow(org.apache.beam.sdk.util.WindowedValue<T> windowedValue,
                                                                                    Coder<T> coder)
WindowedValue.FullWindowedValueCoder and stores it an InternalRow.