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:46 UTC
[beam-site] 04/05: Fix language tab tags
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 3b4c7f011e0196e9a4e0f1e90d28292ee850623a
Author: Melissa Pashniak <me...@google.com>
AuthorDate: Mon Aug 20 12:16:39 2018 -0700
Fix language tab tags
---
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 15762b1..bd7c304 100644
--- a/src/documentation/programming-guide.md
+++ b/src/documentation/programming-guide.md
@@ -1519,7 +1519,9 @@ together.
{% github_sample /apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/snippets_test.py tag:model_pardo_with_undeclared_outputs
%}```
+{:.language-java}
#### 4.5.3. Accessing additional parameters in your DoFn {#other-dofn-parameters}
+
{:.language-java}
In addition to the element and the `OutputReceiver`, Beam will populate other parameters to your DoFn's `@ProcessElement` method.
Any combination of these parameters can be added to your process method in any order.
@@ -1569,7 +1571,7 @@ The `PipelineOptions` for the current pipeline can always be accessed in a proce
}})
```
-{::.language-java}
+{:.language-java}
`@OnTimer` methods can also access many of these parameters. Timestamp, window, `PipelineOptions`, `OutputReceiver`, and
`MultiOutputReceiver` parameters can all be accessed in an `@OnTimer` method. In addition, an `@OnTimer` method can take
a parameter of type `TimeDomain` which tells whether the timer is based on event time or processing time.