blob: f5b6d06d014a35fdae152a502cde68846b072d16 [file] [log] [blame]
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<html>
<h2>GroupByKey</h2>
<p>GroupByKey is a Beam transform for processing collections of key/value pairs. It’s a parallel reduction operation,
analogous to the Shuffle phase of a Map/Shuffle/Reduce-style algorithm. The input to GroupByKey is a collection of
key/value pairs that represents a multimap, where the collection contains multiple pairs that have the same key,
but different values. Given such a collection, you use GroupByKey to collect all of the values associated with each
unique key.</p>
<p>In this task, we are going to implement a
<a href="https://beam.apache.org/releases/pydoc/2.11.0/apache_beam.transforms.core.html#apache_beam.transforms.core.GroupByKey">
GroupByKey</a> transform that groups words by its first letter.
</p>
<br>
<br>
<div class='hint'>Refer to
<a href="https://beam.apache.org/releases/pydoc/2.11.0/apache_beam.transforms.core.html#apache_beam.transforms.core.GroupByKey">GroupByKey</a>
to solve this problem</div>
</html>