You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by tg...@apache.org on 2017/04/27 16:58:14 UTC

[2/2] beam git commit: Mark Pipeline#getPipelineOptions Experimental

Mark Pipeline#getPipelineOptions Experimental

BEAM-818 plans to remove this method when it is not used within the Beam
SDK. Users should not use it, and marking Experimental as well as
Deprecated permits its removal within a major version.


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/d8ac6034
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/d8ac6034
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/d8ac6034

Branch: refs/heads/master
Commit: d8ac60347bd317dbd5a4badb8534bb41cb526d24
Parents: e6f94a8
Author: Thomas Groh <tg...@google.com>
Authored: Wed Mar 29 09:45:15 2017 -0700
Committer: Thomas Groh <tg...@google.com>
Committed: Thu Apr 27 09:57:40 2017 -0700

----------------------------------------------------------------------
 .../java/core/src/main/java/org/apache/beam/sdk/Pipeline.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/d8ac6034/sdks/java/core/src/main/java/org/apache/beam/sdk/Pipeline.java
----------------------------------------------------------------------
diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/Pipeline.java b/sdks/java/core/src/main/java/org/apache/beam/sdk/Pipeline.java
index 0a1dc13..88ecc0b 100644
--- a/sdks/java/core/src/main/java/org/apache/beam/sdk/Pipeline.java
+++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/Pipeline.java
@@ -26,6 +26,7 @@ import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
+import org.apache.beam.sdk.annotations.Experimental;
 import org.apache.beam.sdk.coders.CoderRegistry;
 import org.apache.beam.sdk.io.Read;
 import org.apache.beam.sdk.options.PipelineOptions;
@@ -504,12 +505,14 @@ public class Pipeline {
   }
 
   /**
-   * Returns the configured {@link PipelineOptions}.
+   * Returns the {@link PipelineOptions} provided at the time this {@link Pipeline} was created.
    *
    * @deprecated see BEAM-818 Remove Pipeline.getPipelineOptions. Configuration should be explicitly
-   *     provided to a transform if it is required.
+   *     provided to a transform if it is required. This method will be removed within a Major
+   *     Version and should not be used.
    */
   @Deprecated
+  @Experimental
   public PipelineOptions getOptions() {
     return options;
   }