Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Google Cloud Dataflow Java SDK provides a simple, Java-based
interface for processing virtually any size data using Google cloud
resources. This artifact includes entire Dataflow Java SDK.
/*
* Copyright (C) 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.cloud.dataflow.sdk.util;
import com.google.cloud.dataflow.sdk.annotations.Experimental;
import com.google.cloud.dataflow.sdk.transforms.windowing.BoundedWindow;
import com.google.cloud.dataflow.sdk.transforms.windowing.DefaultTrigger;
import com.google.cloud.dataflow.sdk.transforms.windowing.GlobalWindow;
import com.google.cloud.dataflow.sdk.transforms.windowing.GlobalWindows;
import com.google.cloud.dataflow.sdk.transforms.windowing.OutputTimeFn;
import com.google.cloud.dataflow.sdk.transforms.windowing.Trigger;
import com.google.cloud.dataflow.sdk.transforms.windowing.Window.ClosingBehavior;
import com.google.cloud.dataflow.sdk.transforms.windowing.WindowFn;
import com.google.common.base.MoreObjects;
import org.joda.time.Duration;
import java.io.Serializable;
import java.util.Objects;
/**
* A {@code WindowingStrategy} describes the windowing behavior for a specific collection of values.
* It has both a {@link WindowFn} describing how elements are assigned to windows and a
* {@link Trigger} that controls when output is produced for each window.
*
* @param type of elements being windowed
* @param {@link BoundedWindow} subclass used to represent the
* windows used by this {@code WindowingStrategy}
*/
public class WindowingStrategy implements Serializable {
/**
* The accumulation modes that can be used with windowing.
*/
public enum AccumulationMode {
DISCARDING_FIRED_PANES,
ACCUMULATING_FIRED_PANES;
}
private static final Duration DEFAULT_ALLOWED_LATENESS = Duration.ZERO;
private static final WindowingStrategy