I see now that docs are still in a separate repo. I'm backing out the changes
to the getting-started guide, but the content I'd propose adding to the
Composite Transforms section is:
```
{:.language-java}
If your logic only needs to be used once, you may instead define your composite
transform as an anonymous Java 8 lambda function passed to `PTransform.compose`:
```java
input.apply(PTransform.compose((PCollection<String> lines) -> {
PCollection<String> words = lines.apply(
ParDo.of(new ExtractWordsFn()));
PCollection<KV<String, Long>> wordCounts =
words.apply(Count.<String>perElement());
return wordCounts;
}))
\```
```
[ Full content available at: https://github.com/apache/beam/pull/6414 ]
This message was relayed via gitbox.apache.org for [email protected]