public static final class RunnerApi.WindowingStrategy extends com.google.protobuf.GeneratedMessageV3 implements RunnerApi.WindowingStrategyOrBuilder
A windowing strategy describes the window function, triggering, allowed lateness, and accumulation mode for a PCollection. TODO: consider inlining field on PCollectionProtobuf type
org.apache.beam.runner_api.v1.WindowingStrategy| Modifier and Type | Class and Description |
|---|---|
static class |
RunnerApi.WindowingStrategy.Builder
A windowing strategy describes the window function, triggering, allowed
lateness, and accumulation mode for a PCollection.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ACCUMULATION_MODE_FIELD_NUMBER |
static int |
ALLOWED_LATENESS_FIELD_NUMBER |
static int |
ASSIGNS_TO_ONE_WINDOW_FIELD_NUMBER |
static int |
CLOSING_BEHAVIOR_FIELD_NUMBER |
static int |
MERGE_STATUS_FIELD_NUMBER |
static int |
ONTIMEBEHAVIOR_FIELD_NUMBER |
static int |
OUTPUT_TIME_FIELD_NUMBER |
static int |
TRIGGER_FIELD_NUMBER |
static int |
WINDOW_CODER_ID_FIELD_NUMBER |
static int |
WINDOW_FN_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
RunnerApi.AccumulationMode.Enum |
getAccumulationMode()
(Required) The accumulation mode indicates whether new panes are a full
replacement for prior panes or whether they are deltas to be combined
with other panes (the combine should correspond to whatever the upstream
grouping transform is).
|
int |
getAccumulationModeValue()
(Required) The accumulation mode indicates whether new panes are a full
replacement for prior panes or whether they are deltas to be combined
with other panes (the combine should correspond to whatever the upstream
grouping transform is).
|
long |
getAllowedLateness()
(Required) The duration, in milliseconds, beyond the end of a window at
which the window becomes droppable.
|
boolean |
getAssignsToOneWindow()
(Required) Whether or not the window fn assigns inputs to exactly one window
This knowledge is required for some optimizations
|
RunnerApi.ClosingBehavior.Enum |
getClosingBehavior()
(Required) Indicate when output should be omitted upon window expiration.
|
int |
getClosingBehaviorValue()
(Required) Indicate when output should be omitted upon window expiration.
|
static RunnerApi.WindowingStrategy |
getDefaultInstance() |
RunnerApi.WindowingStrategy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
RunnerApi.MergeStatus.Enum |
getMergeStatus()
(Required) Whether or not the window fn is merging.
|
int |
getMergeStatusValue()
(Required) Whether or not the window fn is merging.
|
RunnerApi.OnTimeBehavior.Enum |
getOnTimeBehavior()
(Required) Indicate whether empty on-time panes should be omitted.
|
int |
getOnTimeBehaviorValue()
(Required) Indicate whether empty on-time panes should be omitted.
|
RunnerApi.OutputTime.Enum |
getOutputTime()
(Required) The OutputTime specifies, for a grouping transform, how to
compute the aggregate timestamp.
|
int |
getOutputTimeValue()
(Required) The OutputTime specifies, for a grouping transform, how to
compute the aggregate timestamp.
|
com.google.protobuf.Parser<RunnerApi.WindowingStrategy> |
getParserForType() |
int |
getSerializedSize() |
RunnerApi.Trigger |
getTrigger()
(Required) The trigger to use when grouping this PCollection.
|
RunnerApi.TriggerOrBuilder |
getTriggerOrBuilder()
(Required) The trigger to use when grouping this PCollection.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getWindowCoderId()
(Required) The coder for the windows of this PCollection.
|
com.google.protobuf.ByteString |
getWindowCoderIdBytes()
(Required) The coder for the windows of this PCollection.
|
RunnerApi.SdkFunctionSpec |
getWindowFn()
(Required) The SdkFunctionSpec of the UDF that assigns windows,
merges windows, and shifts timestamps before they are
combined according to the OutputTime.
|
RunnerApi.SdkFunctionSpecOrBuilder |
getWindowFnOrBuilder()
(Required) The SdkFunctionSpec of the UDF that assigns windows,
merges windows, and shifts timestamps before they are
combined according to the OutputTime.
|
int |
hashCode() |
boolean |
hasTrigger()
(Required) The trigger to use when grouping this PCollection.
|
boolean |
hasWindowFn()
(Required) The SdkFunctionSpec of the UDF that assigns windows,
merges windows, and shifts timestamps before they are
combined according to the OutputTime.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RunnerApi.WindowingStrategy.Builder |
newBuilder() |
static RunnerApi.WindowingStrategy.Builder |
newBuilder(RunnerApi.WindowingStrategy prototype) |
RunnerApi.WindowingStrategy.Builder |
newBuilderForType() |
protected RunnerApi.WindowingStrategy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static RunnerApi.WindowingStrategy |
parseDelimitedFrom(InputStream input) |
static RunnerApi.WindowingStrategy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunnerApi.WindowingStrategy |
parseFrom(byte[] data) |
static RunnerApi.WindowingStrategy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunnerApi.WindowingStrategy |
parseFrom(com.google.protobuf.ByteString data) |
static RunnerApi.WindowingStrategy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunnerApi.WindowingStrategy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RunnerApi.WindowingStrategy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunnerApi.WindowingStrategy |
parseFrom(InputStream input) |
static RunnerApi.WindowingStrategy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RunnerApi.WindowingStrategy> |
parser() |
RunnerApi.WindowingStrategy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int WINDOW_FN_FIELD_NUMBER
public static final int MERGE_STATUS_FIELD_NUMBER
public static final int WINDOW_CODER_ID_FIELD_NUMBER
public static final int TRIGGER_FIELD_NUMBER
public static final int ACCUMULATION_MODE_FIELD_NUMBER
public static final int OUTPUT_TIME_FIELD_NUMBER
public static final int CLOSING_BEHAVIOR_FIELD_NUMBER
public static final int ALLOWED_LATENESS_FIELD_NUMBER
public static final int ONTIMEBEHAVIOR_FIELD_NUMBER
public static final int ASSIGNS_TO_ONE_WINDOW_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasWindowFn()
(Required) The SdkFunctionSpec of the UDF that assigns windows, merges windows, and shifts timestamps before they are combined according to the OutputTime.
.org.apache.beam.runner_api.v1.SdkFunctionSpec window_fn = 1;hasWindowFn in interface RunnerApi.WindowingStrategyOrBuilderpublic RunnerApi.SdkFunctionSpec getWindowFn()
(Required) The SdkFunctionSpec of the UDF that assigns windows, merges windows, and shifts timestamps before they are combined according to the OutputTime.
.org.apache.beam.runner_api.v1.SdkFunctionSpec window_fn = 1;getWindowFn in interface RunnerApi.WindowingStrategyOrBuilderpublic RunnerApi.SdkFunctionSpecOrBuilder getWindowFnOrBuilder()
(Required) The SdkFunctionSpec of the UDF that assigns windows, merges windows, and shifts timestamps before they are combined according to the OutputTime.
.org.apache.beam.runner_api.v1.SdkFunctionSpec window_fn = 1;getWindowFnOrBuilder in interface RunnerApi.WindowingStrategyOrBuilderpublic int getMergeStatusValue()
(Required) Whether or not the window fn is merging. This knowledge is required for many optimizations.
.org.apache.beam.runner_api.v1.MergeStatus.Enum merge_status = 2;getMergeStatusValue in interface RunnerApi.WindowingStrategyOrBuilderpublic RunnerApi.MergeStatus.Enum getMergeStatus()
(Required) Whether or not the window fn is merging. This knowledge is required for many optimizations.
.org.apache.beam.runner_api.v1.MergeStatus.Enum merge_status = 2;getMergeStatus in interface RunnerApi.WindowingStrategyOrBuilderpublic String getWindowCoderId()
(Required) The coder for the windows of this PCollection.
string window_coder_id = 3;getWindowCoderId in interface RunnerApi.WindowingStrategyOrBuilderpublic com.google.protobuf.ByteString getWindowCoderIdBytes()
(Required) The coder for the windows of this PCollection.
string window_coder_id = 3;getWindowCoderIdBytes in interface RunnerApi.WindowingStrategyOrBuilderpublic boolean hasTrigger()
(Required) The trigger to use when grouping this PCollection.
.org.apache.beam.runner_api.v1.Trigger trigger = 4;hasTrigger in interface RunnerApi.WindowingStrategyOrBuilderpublic RunnerApi.Trigger getTrigger()
(Required) The trigger to use when grouping this PCollection.
.org.apache.beam.runner_api.v1.Trigger trigger = 4;getTrigger in interface RunnerApi.WindowingStrategyOrBuilderpublic RunnerApi.TriggerOrBuilder getTriggerOrBuilder()
(Required) The trigger to use when grouping this PCollection.
.org.apache.beam.runner_api.v1.Trigger trigger = 4;getTriggerOrBuilder in interface RunnerApi.WindowingStrategyOrBuilderpublic int getAccumulationModeValue()
(Required) The accumulation mode indicates whether new panes are a full replacement for prior panes or whether they are deltas to be combined with other panes (the combine should correspond to whatever the upstream grouping transform is).
.org.apache.beam.runner_api.v1.AccumulationMode.Enum accumulation_mode = 5;getAccumulationModeValue in interface RunnerApi.WindowingStrategyOrBuilderpublic RunnerApi.AccumulationMode.Enum getAccumulationMode()
(Required) The accumulation mode indicates whether new panes are a full replacement for prior panes or whether they are deltas to be combined with other panes (the combine should correspond to whatever the upstream grouping transform is).
.org.apache.beam.runner_api.v1.AccumulationMode.Enum accumulation_mode = 5;getAccumulationMode in interface RunnerApi.WindowingStrategyOrBuilderpublic int getOutputTimeValue()
(Required) The OutputTime specifies, for a grouping transform, how to compute the aggregate timestamp. The window_fn will first possibly shift it later, then the OutputTime takes the max, min, or ignores it and takes the end of window. This is actually only for input to grouping transforms, but since they may be introduced in runner-specific ways, it is carried along with the windowing strategy.
.org.apache.beam.runner_api.v1.OutputTime.Enum output_time = 6;getOutputTimeValue in interface RunnerApi.WindowingStrategyOrBuilderpublic RunnerApi.OutputTime.Enum getOutputTime()
(Required) The OutputTime specifies, for a grouping transform, how to compute the aggregate timestamp. The window_fn will first possibly shift it later, then the OutputTime takes the max, min, or ignores it and takes the end of window. This is actually only for input to grouping transforms, but since they may be introduced in runner-specific ways, it is carried along with the windowing strategy.
.org.apache.beam.runner_api.v1.OutputTime.Enum output_time = 6;getOutputTime in interface RunnerApi.WindowingStrategyOrBuilderpublic int getClosingBehaviorValue()
(Required) Indicate when output should be omitted upon window expiration.
.org.apache.beam.runner_api.v1.ClosingBehavior.Enum closing_behavior = 7;getClosingBehaviorValue in interface RunnerApi.WindowingStrategyOrBuilderpublic RunnerApi.ClosingBehavior.Enum getClosingBehavior()
(Required) Indicate when output should be omitted upon window expiration.
.org.apache.beam.runner_api.v1.ClosingBehavior.Enum closing_behavior = 7;getClosingBehavior in interface RunnerApi.WindowingStrategyOrBuilderpublic long getAllowedLateness()
(Required) The duration, in milliseconds, beyond the end of a window at which the window becomes droppable.
int64 allowed_lateness = 8;getAllowedLateness in interface RunnerApi.WindowingStrategyOrBuilderpublic int getOnTimeBehaviorValue()
(Required) Indicate whether empty on-time panes should be omitted.
.org.apache.beam.runner_api.v1.OnTimeBehavior.Enum OnTimeBehavior = 9;getOnTimeBehaviorValue in interface RunnerApi.WindowingStrategyOrBuilderpublic RunnerApi.OnTimeBehavior.Enum getOnTimeBehavior()
(Required) Indicate whether empty on-time panes should be omitted.
.org.apache.beam.runner_api.v1.OnTimeBehavior.Enum OnTimeBehavior = 9;getOnTimeBehavior in interface RunnerApi.WindowingStrategyOrBuilderpublic boolean getAssignsToOneWindow()
(Required) Whether or not the window fn assigns inputs to exactly one window This knowledge is required for some optimizations
bool assigns_to_one_window = 10;getAssignsToOneWindow in interface RunnerApi.WindowingStrategyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RunnerApi.WindowingStrategy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunnerApi.WindowingStrategy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunnerApi.WindowingStrategy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunnerApi.WindowingStrategy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunnerApi.WindowingStrategy parseFrom(InputStream input) throws IOException
IOExceptionpublic static RunnerApi.WindowingStrategy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RunnerApi.WindowingStrategy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RunnerApi.WindowingStrategy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RunnerApi.WindowingStrategy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RunnerApi.WindowingStrategy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RunnerApi.WindowingStrategy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RunnerApi.WindowingStrategy.Builder newBuilder()
public static RunnerApi.WindowingStrategy.Builder newBuilder(RunnerApi.WindowingStrategy prototype)
public RunnerApi.WindowingStrategy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RunnerApi.WindowingStrategy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RunnerApi.WindowingStrategy getDefaultInstance()
public static com.google.protobuf.Parser<RunnerApi.WindowingStrategy> parser()
public com.google.protobuf.Parser<RunnerApi.WindowingStrategy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RunnerApi.WindowingStrategy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2016–2017 The Apache Software Foundation. All rights reserved.