beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject [1/2] beam git commit: Deprecate Pipeline.getOptions
Date Thu, 09 Mar 2017 19:57:41 GMT
Repository: beam
Updated Branches:
  refs/heads/master 013365f73 -> ef256df18


Deprecate Pipeline.getOptions

Configuration should be explicit pre-execution, and after the call to
Run a PipelineRunner controls the PipelineOptions of the executions.
Runtime access to options is unaffected by this change.


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

Branch: refs/heads/master
Commit: 4f3c5bd24eb0d34b1b176c7248973400c3e8dfea
Parents: b322a5d
Author: Thomas Groh <tgroh@google.com>
Authored: Thu Mar 2 09:41:37 2017 -0800
Committer: Thomas Groh <tgroh@google.com>
Committed: Thu Mar 2 09:41:37 2017 -0800

----------------------------------------------------------------------
 sdks/java/core/src/main/java/org/apache/beam/sdk/Pipeline.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/4f3c5bd2/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 fe1d526..f09f2b4 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
@@ -464,7 +464,11 @@ public class Pipeline {
 
   /**
    * Returns the configured {@link PipelineOptions}.
+   *
+   * @deprecated see BEAM-818 Remove Pipeline.getPipelineOptions. Configuration should be
explicitly
+   *     provided to a transform if it is required.
    */
+  @Deprecated
   public PipelineOptions getOptions() {
     return options;
   }


Mime
View raw message