You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by me...@apache.org on 2018/08/20 20:20:45 UTC

[beam-site] 03/05: Add compatibility warning.

This is an automated email from the ASF dual-hosted git repository.

mergebot-role pushed a commit to branch mergebot
in repository https://gitbox.apache.org/repos/asf/beam-site.git

commit 5a7b4f984104099ce11e387d70d94f42df2f7ff8
Author: Reuven Lax <re...@relax-macbookpro2.roam.corp.google.com>
AuthorDate: Mon Jun 18 14:18:49 2018 -0700

    Add compatibility warning.
---
 src/documentation/programming-guide.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/documentation/programming-guide.md b/src/documentation/programming-guide.md
index ca96472..15762b1 100644
--- a/src/documentation/programming-guide.md
+++ b/src/documentation/programming-guide.md
@@ -627,7 +627,9 @@ that for you. Your `@ProcessElement` method should accept a parameter tagged wit
 `@Element`, which will be populated with the input element. In order to output
 elements, the method can also take a parameter of type `OutputReceiver` which
 provides a method for emitting elements. The parameter types must match the input
-and output types of your `DoFn` or the framework will raise an error.
+and output types of your `DoFn` or the framework will raise an error. Note: @Element and
+OutputReceiver were introduced in Beam 2.5.0; if using an earlier release of Beam, a
+ProcessContext parameter should be used instead.
 
 {:.language-py}
 Inside your `DoFn` subclass, you'll write a method `process` where you provide