public class WindowingStrategies extends Object implements Serializable
WindowingStrategies.| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM_WINDOWFN_URN |
| Constructor and Description |
|---|
WindowingStrategies() |
| Modifier and Type | Method and Description |
|---|---|
static WindowingStrategy.AccumulationMode |
fromProto(RunnerApi.AccumulationMode proto) |
static Window.ClosingBehavior |
fromProto(RunnerApi.ClosingBehavior proto) |
static WindowingStrategy<?,?> |
fromProto(RunnerApi.MessageWithComponents proto)
Converts from a
RunnerApi.WindowingStrategy accompanied by RunnerApi.Components
to the SDK's WindowingStrategy. |
static WindowingStrategy<?,?> |
fromProto(RunnerApi.WindowingStrategy proto,
RunnerApi.Components components)
Converts from
RunnerApi.WindowingStrategy to the SDK's WindowingStrategy using
the provided components to dereferences identifiers found in the proto. |
static TimestampCombiner |
timestampCombinerFromProto(RunnerApi.OutputTime proto) |
static RunnerApi.OutputTime |
toProto(TimestampCombiner timestampCombiner) |
static RunnerApi.ClosingBehavior |
toProto(Window.ClosingBehavior closingBehavior) |
static RunnerApi.SdkFunctionSpec |
toProto(WindowFn<?,?> windowFn,
org.apache.beam.runners.core.construction.SdkComponents components)
|
static RunnerApi.AccumulationMode |
toProto(WindowingStrategy.AccumulationMode accumulationMode) |
static RunnerApi.MessageWithComponents |
toProto(WindowingStrategy<?,?> windowingStrategy)
Converts a
WindowingStrategy into a RunnerApi.MessageWithComponents where
RunnerApi.MessageWithComponents#getWindowingStrategy() ()} is a RunnerApi.WindowingStrategy (proto) for the input WindowingStrategy. |
static RunnerApi.WindowingStrategy |
toProto(WindowingStrategy<?,?> windowingStrategy,
org.apache.beam.runners.core.construction.SdkComponents components)
Converts a
WindowingStrategy into a RunnerApi.WindowingStrategy, registering
any components in the provided SdkComponents. |
public static final String CUSTOM_WINDOWFN_URN
public static WindowingStrategy.AccumulationMode fromProto(RunnerApi.AccumulationMode proto)
public static RunnerApi.AccumulationMode toProto(WindowingStrategy.AccumulationMode accumulationMode)
public static RunnerApi.ClosingBehavior toProto(Window.ClosingBehavior closingBehavior)
public static Window.ClosingBehavior fromProto(RunnerApi.ClosingBehavior proto)
public static RunnerApi.OutputTime toProto(TimestampCombiner timestampCombiner)
public static TimestampCombiner timestampCombinerFromProto(RunnerApi.OutputTime proto)
public static RunnerApi.SdkFunctionSpec toProto(WindowFn<?,?> windowFn, org.apache.beam.runners.core.construction.SdkComponents components) throws IOException
WindowFn into a RunnerApi.MessageWithComponents where RunnerApi.MessageWithComponents#getFunctionSpec() is a RunnerApi.FunctionSpec for the
input WindowFn.IOExceptionpublic static RunnerApi.MessageWithComponents toProto(WindowingStrategy<?,?> windowingStrategy) throws IOException
WindowingStrategy into a RunnerApi.MessageWithComponents where
RunnerApi.MessageWithComponents#getWindowingStrategy() ()} is a RunnerApi.WindowingStrategy (proto) for the input WindowingStrategy.IOExceptionpublic static RunnerApi.WindowingStrategy toProto(WindowingStrategy<?,?> windowingStrategy, org.apache.beam.runners.core.construction.SdkComponents components) throws IOException
WindowingStrategy into a RunnerApi.WindowingStrategy, registering
any components in the provided SdkComponents.IOExceptionpublic static WindowingStrategy<?,?> fromProto(RunnerApi.MessageWithComponents proto) throws com.google.protobuf.InvalidProtocolBufferException
RunnerApi.WindowingStrategy accompanied by RunnerApi.Components
to the SDK's WindowingStrategy.com.google.protobuf.InvalidProtocolBufferExceptionpublic static WindowingStrategy<?,?> fromProto(RunnerApi.WindowingStrategy proto, RunnerApi.Components components) throws com.google.protobuf.InvalidProtocolBufferException
RunnerApi.WindowingStrategy to the SDK's WindowingStrategy using
the provided components to dereferences identifiers found in the proto.com.google.protobuf.InvalidProtocolBufferExceptionCopyright © 2016–2017 The Apache Software Foundation. All rights reserved.