From 7975bf507c6f2b8edb1b3168231f13ae9b0f5dc8 Mon Sep 17 00:00:00 2001 From: Thomas Groh Date: Wed, 29 Mar 2017 09:45:15 -0700 Subject: [PATCH] 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. --- .../core/src/main/java/org/apache/beam/sdk/Pipeline.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 f980a0b8d789..61b9b19bbcdb 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 @@ -27,6 +27,7 @@ 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; @@ -512,12 +513,14 @@ void applyReplacement( } /** - * 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; }