| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_181-google-v7) on Mon Jan 27 16:42:30 PST 2020 --> |
| <title>Combine (Apache Beam 2.20.0-SNAPSHOT)</title> |
| <meta name="date" content="2020-01-27"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Combine (Apache Beam 2.20.0-SNAPSHOT)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/beam/sdk/transforms/ApproximateUnique.PerKey.html" title="class in org.apache.beam.sdk.transforms"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/beam/sdk/transforms/Combine.AccumulatingCombineFn.html" title="class in org.apache.beam.sdk.transforms"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/beam/sdk/transforms/Combine.html" target="_top">Frames</a></li> |
| <li><a href="Combine.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.beam.sdk.transforms</div> |
| <h2 title="Class Combine" class="title">Class Combine</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.beam.sdk.transforms.Combine</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">Combine</span> |
| extends java.lang.Object</pre> |
| <div class="block"><code>PTransform</code>s for combining <code>PCollection</code> elements globally and per-key. |
| |
| <p>See the <a |
| href="https://beam.apache.org/documentation/programming-guide/#transforms-combine">documentation</a> |
| for how to use the operations in this class.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Class and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.AccumulatingCombineFn.html" title="class in org.apache.beam.sdk.transforms">Combine.AccumulatingCombineFn</a><<a href="../../../../../org/apache/beam/sdk/transforms/Combine.AccumulatingCombineFn.html" title="type parameter in Combine.AccumulatingCombineFn">InputT</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.AccumulatingCombineFn.html" title="type parameter in Combine.AccumulatingCombineFn">AccumT</a> extends <a href="../../../../../org/apache/beam/sdk/transforms/Combine.AccumulatingCombineFn.Accumulator.html" title="interface in org.apache.beam.sdk.transforms">Combine.AccumulatingCombineFn.Accumulator</a><<a href="../../../../../org/apache/beam/sdk/transforms/Combine.AccumulatingCombineFn.html" title="type parameter in Combine.AccumulatingCombineFn">InputT</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.AccumulatingCombineFn.html" title="type parameter in Combine.AccumulatingCombineFn">AccumT</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.AccumulatingCombineFn.html" title="type parameter in Combine.AccumulatingCombineFn">OutputT</a>>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.AccumulatingCombineFn.html" title="type parameter in Combine.AccumulatingCombineFn">OutputT</a>></span></code> |
| <div class="block">A <code>CombineFn</code> that uses a subclass of <a href="../../../../../org/apache/beam/sdk/transforms/Combine.AccumulatingCombineFn.Accumulator.html" title="interface in org.apache.beam.sdk.transforms"><code>Combine.AccumulatingCombineFn.Accumulator</code></a> as its |
| accumulator type.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.BinaryCombineDoubleFn.html" title="class in org.apache.beam.sdk.transforms">Combine.BinaryCombineDoubleFn</a></span></code> |
| <div class="block">An abstract subclass of <a href="../../../../../org/apache/beam/sdk/transforms/Combine.CombineFn.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.CombineFn</code></a> for implementing combiners that are more easily and |
| efficiently expressed as binary operations on <code>double</code>s.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.BinaryCombineFn.html" title="class in org.apache.beam.sdk.transforms">Combine.BinaryCombineFn</a><<a href="../../../../../org/apache/beam/sdk/transforms/Combine.BinaryCombineFn.html" title="type parameter in Combine.BinaryCombineFn">V</a>></span></code> |
| <div class="block">An abstract subclass of <a href="../../../../../org/apache/beam/sdk/transforms/Combine.CombineFn.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.CombineFn</code></a> for implementing combiners that are more easily |
| expressed as binary operations.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.BinaryCombineIntegerFn.html" title="class in org.apache.beam.sdk.transforms">Combine.BinaryCombineIntegerFn</a></span></code> |
| <div class="block">An abstract subclass of <a href="../../../../../org/apache/beam/sdk/transforms/Combine.CombineFn.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.CombineFn</code></a> for implementing combiners that are more easily and |
| efficiently expressed as binary operations on <code>int</code>s</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.BinaryCombineLongFn.html" title="class in org.apache.beam.sdk.transforms">Combine.BinaryCombineLongFn</a></span></code> |
| <div class="block">An abstract subclass of <a href="../../../../../org/apache/beam/sdk/transforms/Combine.CombineFn.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.CombineFn</code></a> for implementing combiners that are more easily and |
| efficiently expressed as binary operations on <code>long</code>s.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.CombineFn.html" title="class in org.apache.beam.sdk.transforms">Combine.CombineFn</a><<a href="../../../../../org/apache/beam/sdk/transforms/Combine.CombineFn.html" title="type parameter in Combine.CombineFn">InputT</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.CombineFn.html" title="type parameter in Combine.CombineFn">AccumT</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.CombineFn.html" title="type parameter in Combine.CombineFn">OutputT</a>></span></code> |
| <div class="block">A <code>CombineFn<InputT, AccumT, OutputT></code> specifies how to combine a collection of input |
| values of type <code>InputT</code> into a single output value of type <code>OutputT</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms">Combine.Globally</a><<a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="type parameter in Combine.Globally">InputT</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="type parameter in Combine.Globally">OutputT</a>></span></code> |
| <div class="block"><code>Combine.Globally<InputT, OutputT></code> takes a <code>PCollection<InputT></code> and returns a |
| <code>PCollection<OutputT></code> whose elements are the result of combining all the elements in |
| each window of the input <code>PCollection</code>, using a specified <a href="../../../../../org/apache/beam/sdk/transforms/Combine.CombineFn.html" title="class in org.apache.beam.sdk.transforms"><code>CombineFn<InputT, AccumT, OutputT></code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.GloballyAsSingletonView.html" title="class in org.apache.beam.sdk.transforms">Combine.GloballyAsSingletonView</a><<a href="../../../../../org/apache/beam/sdk/transforms/Combine.GloballyAsSingletonView.html" title="type parameter in Combine.GloballyAsSingletonView">InputT</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.GloballyAsSingletonView.html" title="type parameter in Combine.GloballyAsSingletonView">OutputT</a>></span></code> |
| <div class="block"><code>Combine.GloballyAsSingletonView<InputT, OutputT></code> takes a <code>PCollection<InputT></code> |
| and returns a <code>PCollectionView<OutputT></code> whose elements are the result of combining all |
| the elements in each window of the input <code>PCollection</code>, using a specified <a href="../../../../../org/apache/beam/sdk/transforms/Combine.CombineFn.html" title="class in org.apache.beam.sdk.transforms"><code>CombineFn<InputT, AccumT, OutputT></code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms">Combine.GroupedValues</a><<a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="type parameter in Combine.GroupedValues">K</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="type parameter in Combine.GroupedValues">InputT</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="type parameter in Combine.GroupedValues">OutputT</a>></span></code> |
| <div class="block"><code>GroupedValues<K, InputT, OutputT></code> takes a <code>PCollection<KV<K, Iterable<InputT>>></code>, |
| such as the result of <a href="../../../../../org/apache/beam/sdk/transforms/GroupByKey.html" title="class in org.apache.beam.sdk.transforms"><code>GroupByKey</code></a>, applies a specified <a href="../../../../../org/apache/beam/sdk/transforms/Combine.CombineFn.html" title="class in org.apache.beam.sdk.transforms"><code>CombineFn<InputT, AccumT, OutputT></code></a> to each of the input <code>KV<K, Iterable<InputT>></code> |
| elements to produce a combined output <code>KV<K, OutputT></code> element, and returns a <code>PCollection<KV<K, OutputT>></code> containing all the combined output elements.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.Holder.html" title="class in org.apache.beam.sdk.transforms">Combine.Holder</a><<a href="../../../../../org/apache/beam/sdk/transforms/Combine.Holder.html" title="type parameter in Combine.Holder">V</a>></span></code> |
| <div class="block">Holds a single value value of type <code>V</code> which may or may not be present.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.IterableCombineFn.html" title="class in org.apache.beam.sdk.transforms">Combine.IterableCombineFn</a><<a href="../../../../../org/apache/beam/sdk/transforms/Combine.IterableCombineFn.html" title="type parameter in Combine.IterableCombineFn">V</a>></span></code> |
| <div class="block">Converts a <a href="../../../../../org/apache/beam/sdk/transforms/SerializableFunction.html" title="interface in org.apache.beam.sdk.transforms"><code>SerializableFunction</code></a> from <code>Iterable<V></code>s to <code>V</code>s into a simple |
| <a href="../../../../../org/apache/beam/sdk/transforms/Combine.CombineFn.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.CombineFn</code></a> over <code>V</code>s.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms">Combine.PerKey</a><<a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="type parameter in Combine.PerKey">K</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="type parameter in Combine.PerKey">InputT</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="type parameter in Combine.PerKey">OutputT</a>></span></code> |
| <div class="block"><code>PerKey<K, InputT, OutputT></code> takes a <code>PCollection<KV<K, InputT>></code>, groups it by |
| key, applies a combining function to the <code>InputT</code> values associated with each key to |
| produce a combined <code>OutputT</code> value, and returns a <code>PCollection<KV<K, OutputT>></code> |
| representing a map from each distinct key of the input <code>PCollection</code> to the corresponding |
| combined value.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKeyWithHotKeyFanout.html" title="class in org.apache.beam.sdk.transforms">Combine.PerKeyWithHotKeyFanout</a><<a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKeyWithHotKeyFanout.html" title="type parameter in Combine.PerKeyWithHotKeyFanout">K</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKeyWithHotKeyFanout.html" title="type parameter in Combine.PerKeyWithHotKeyFanout">InputT</a>,<a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKeyWithHotKeyFanout.html" title="type parameter in Combine.PerKeyWithHotKeyFanout">OutputT</a>></span></code> |
| <div class="block">Like <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.PerKey</code></a>, but sharding the combining of hot keys.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.SimpleCombineFn.html" title="class in org.apache.beam.sdk.transforms">Combine.SimpleCombineFn</a><<a href="../../../../../org/apache/beam/sdk/transforms/Combine.SimpleCombineFn.html" title="type parameter in Combine.SimpleCombineFn">V</a>></span></code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>static <InputT,OutputT><br><a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms">Combine.Globally</a><InputT,OutputT></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.html#globally-org.apache.beam.sdk.transforms.CombineFnBase.GlobalCombineFn-">globally</a></span>(<a href="../../../../../org/apache/beam/sdk/transforms/CombineFnBase.GlobalCombineFn.html" title="interface in org.apache.beam.sdk.transforms">CombineFnBase.GlobalCombineFn</a><? super InputT,?,OutputT> fn)</code> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.Globally</code></a> <code>PTransform</code> that uses the given <code>GloballyCombineFn</code> to combine all the elements in each window of the input <code>PCollection</code> |
| into a single value in the output <code>PCollection</code>.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static <V> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms">Combine.Globally</a><V,V></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.html#globally-org.apache.beam.sdk.transforms.SerializableBiFunction-">globally</a></span>(<a href="../../../../../org/apache/beam/sdk/transforms/SerializableBiFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableBiFunction</a><V,V,V> combiner)</code> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.Globally</code></a> <code>PTransform</code> that uses the given <code>SerializableBiFunction</code> to combine all the elements in each window of the input <code>PCollection</code> into a single value in the output <code>PCollection</code>.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static <V> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms">Combine.Globally</a><V,V></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.html#globally-org.apache.beam.sdk.transforms.SerializableFunction-">globally</a></span>(<a href="../../../../../org/apache/beam/sdk/transforms/SerializableFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableFunction</a><java.lang.Iterable<V>,V> combiner)</code> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.Globally</code></a> <code>PTransform</code> that uses the given <code>SerializableFunction</code> to combine all the elements in each window of the input <code>PCollection</code> into a single value in the output <code>PCollection</code>.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static <K,InputT,OutputT><br><a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms">Combine.GroupedValues</a><K,InputT,OutputT></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.html#groupedValues-org.apache.beam.sdk.transforms.CombineFnBase.GlobalCombineFn-">groupedValues</a></span>(<a href="../../../../../org/apache/beam/sdk/transforms/CombineFnBase.GlobalCombineFn.html" title="interface in org.apache.beam.sdk.transforms">CombineFnBase.GlobalCombineFn</a><? super InputT,?,OutputT> fn)</code> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.GroupedValues</code></a> <code>PTransform</code> that takes a <code>PCollection</code> of <code>KV</code>s where a key maps to an <code>Iterable</code> of values, e.g., the result |
| of a <code>GroupByKey</code>, then uses the given <code>CombineFn</code> to combine all the values |
| associated with a key, ignoring the key.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <K,V> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms">Combine.GroupedValues</a><K,V,V></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.html#groupedValues-org.apache.beam.sdk.transforms.SerializableBiFunction-">groupedValues</a></span>(<a href="../../../../../org/apache/beam/sdk/transforms/SerializableBiFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableBiFunction</a><V,V,V> fn)</code> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.GroupedValues</code></a> <code>PTransform</code> that takes a <code>PCollection</code> of <code>KV</code>s where a key maps to an <code>Iterable</code> of values, e.g., the result |
| of a <code>GroupByKey</code>, then uses the given <code>SerializableFunction</code> to combine all the |
| values associated with a key, ignoring the key.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <K,V> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms">Combine.GroupedValues</a><K,V,V></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.html#groupedValues-org.apache.beam.sdk.transforms.SerializableFunction-">groupedValues</a></span>(<a href="../../../../../org/apache/beam/sdk/transforms/SerializableFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableFunction</a><java.lang.Iterable<V>,V> fn)</code> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.GroupedValues</code></a> <code>PTransform</code> that takes a <code>PCollection</code> of <code>KV</code>s where a key maps to an <code>Iterable</code> of values, e.g., the result |
| of a <code>GroupByKey</code>, then uses the given <code>SerializableFunction</code> to combine all the |
| values associated with a key, ignoring the key.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static <K,InputT,OutputT><br><a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms">Combine.PerKey</a><K,InputT,OutputT></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.html#perKey-org.apache.beam.sdk.transforms.CombineFnBase.GlobalCombineFn-">perKey</a></span>(<a href="../../../../../org/apache/beam/sdk/transforms/CombineFnBase.GlobalCombineFn.html" title="interface in org.apache.beam.sdk.transforms">CombineFnBase.GlobalCombineFn</a><? super InputT,?,OutputT> fn)</code> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.PerKey</code></a> <code>PTransform</code> that first groups its input <code>PCollection</code> of <code>KV</code>s by keys and windows, then invokes the given function on each of the |
| values lists to produce a combined value, and then returns a <code>PCollection</code> of <code>KV</code>s |
| mapping each distinct key to its combined value for each window.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static <K,V> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms">Combine.PerKey</a><K,V,V></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.html#perKey-org.apache.beam.sdk.transforms.SerializableBiFunction-">perKey</a></span>(<a href="../../../../../org/apache/beam/sdk/transforms/SerializableBiFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableBiFunction</a><V,V,V> fn)</code> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.PerKey</code></a> <code>PTransform</code> that first groups its input <code>PCollection</code> of <code>KV</code>s by keys and windows, then invokes the given function on each of the |
| values lists to produce a combined value, and then returns a <code>PCollection</code> of <code>KV</code>s |
| mapping each distinct key to its combined value for each window.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static <K,V> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms">Combine.PerKey</a><K,V,V></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Combine.html#perKey-org.apache.beam.sdk.transforms.SerializableFunction-">perKey</a></span>(<a href="../../../../../org/apache/beam/sdk/transforms/SerializableFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableFunction</a><java.lang.Iterable<V>,V> fn)</code> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.PerKey</code></a> <code>PTransform</code> that first groups its input <code>PCollection</code> of <code>KV</code>s by keys and windows, then invokes the given function on each of the |
| values lists to produce a combined value, and then returns a <code>PCollection</code> of <code>KV</code>s |
| mapping each distinct key to its combined value for each window.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="globally-org.apache.beam.sdk.transforms.SerializableFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>globally</h4> |
| <pre>public static <V> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms">Combine.Globally</a><V,V> globally(<a href="../../../../../org/apache/beam/sdk/transforms/SerializableFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableFunction</a><java.lang.Iterable<V>,V> combiner)</pre> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.Globally</code></a> <code>PTransform</code> that uses the given <code>SerializableFunction</code> to combine all the elements in each window of the input <code>PCollection</code> into a single value in the output <code>PCollection</code>. The types of the input |
| elements and the output elements must be the same. |
| |
| <p>If the input <code>PCollection</code> is windowed into <a href="../../../../../org/apache/beam/sdk/transforms/windowing/GlobalWindows.html" title="class in org.apache.beam.sdk.transforms.windowing"><code>GlobalWindows</code></a>, a default value in |
| the <a href="../../../../../org/apache/beam/sdk/transforms/windowing/GlobalWindow.html" title="class in org.apache.beam.sdk.transforms.windowing"><code>GlobalWindow</code></a> will be output if the input <code>PCollection</code> is empty. To use this |
| with inputs with other windowing, either <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html#withoutDefaults--"><code>Combine.Globally.withoutDefaults()</code></a> or <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html#asSingletonView--"><code>Combine.Globally.asSingletonView()</code></a> must be called. |
| |
| <p>See <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.Globally</code></a> for more information.</div> |
| </li> |
| </ul> |
| <a name="globally-org.apache.beam.sdk.transforms.SerializableBiFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>globally</h4> |
| <pre>public static <V> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms">Combine.Globally</a><V,V> globally(<a href="../../../../../org/apache/beam/sdk/transforms/SerializableBiFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableBiFunction</a><V,V,V> combiner)</pre> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.Globally</code></a> <code>PTransform</code> that uses the given <code>SerializableBiFunction</code> to combine all the elements in each window of the input <code>PCollection</code> into a single value in the output <code>PCollection</code>. The types of the input |
| elements and the output elements must be the same. |
| |
| <p>If the input <code>PCollection</code> is windowed into <a href="../../../../../org/apache/beam/sdk/transforms/windowing/GlobalWindows.html" title="class in org.apache.beam.sdk.transforms.windowing"><code>GlobalWindows</code></a>, a default value in |
| the <a href="../../../../../org/apache/beam/sdk/transforms/windowing/GlobalWindow.html" title="class in org.apache.beam.sdk.transforms.windowing"><code>GlobalWindow</code></a> will be output if the input <code>PCollection</code> is empty. To use this |
| with inputs with other windowing, either <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html#withoutDefaults--"><code>Combine.Globally.withoutDefaults()</code></a> or <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html#asSingletonView--"><code>Combine.Globally.asSingletonView()</code></a> must be called. |
| |
| <p>See <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.Globally</code></a> for more information.</div> |
| </li> |
| </ul> |
| <a name="globally-org.apache.beam.sdk.transforms.CombineFnBase.GlobalCombineFn-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>globally</h4> |
| <pre>public static <InputT,OutputT> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms">Combine.Globally</a><InputT,OutputT> globally(<a href="../../../../../org/apache/beam/sdk/transforms/CombineFnBase.GlobalCombineFn.html" title="interface in org.apache.beam.sdk.transforms">CombineFnBase.GlobalCombineFn</a><? super InputT,?,OutputT> fn)</pre> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.Globally</code></a> <code>PTransform</code> that uses the given <code>GloballyCombineFn</code> to combine all the elements in each window of the input <code>PCollection</code> |
| into a single value in the output <code>PCollection</code>. The types of the input elements and the |
| output elements can differ. |
| |
| <p>If the input <code>PCollection</code> is windowed into <a href="../../../../../org/apache/beam/sdk/transforms/windowing/GlobalWindows.html" title="class in org.apache.beam.sdk.transforms.windowing"><code>GlobalWindows</code></a>, a default value in |
| the <a href="../../../../../org/apache/beam/sdk/transforms/windowing/GlobalWindow.html" title="class in org.apache.beam.sdk.transforms.windowing"><code>GlobalWindow</code></a> will be output if the input <code>PCollection</code> is empty. To use this |
| with inputs with other windowing, either <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html#withoutDefaults--"><code>Combine.Globally.withoutDefaults()</code></a> or <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html#asSingletonView--"><code>Combine.Globally.asSingletonView()</code></a> must be called. |
| |
| <p>See <a href="../../../../../org/apache/beam/sdk/transforms/Combine.Globally.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.Globally</code></a> for more information.</div> |
| </li> |
| </ul> |
| <a name="perKey-org.apache.beam.sdk.transforms.SerializableFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>perKey</h4> |
| <pre>public static <K,V> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms">Combine.PerKey</a><K,V,V> perKey(<a href="../../../../../org/apache/beam/sdk/transforms/SerializableFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableFunction</a><java.lang.Iterable<V>,V> fn)</pre> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.PerKey</code></a> <code>PTransform</code> that first groups its input <code>PCollection</code> of <code>KV</code>s by keys and windows, then invokes the given function on each of the |
| values lists to produce a combined value, and then returns a <code>PCollection</code> of <code>KV</code>s |
| mapping each distinct key to its combined value for each window. |
| |
| <p>Each output element is in the window by which its corresponding input was grouped, and has |
| the timestamp of the end of that window. The output <code>PCollection</code> has the same <a href="../../../../../org/apache/beam/sdk/transforms/windowing/WindowFn.html" title="class in org.apache.beam.sdk.transforms.windowing"><code>WindowFn</code></a> as the input. |
| |
| <p>See <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.PerKey</code></a> for more information.</div> |
| </li> |
| </ul> |
| <a name="perKey-org.apache.beam.sdk.transforms.SerializableBiFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>perKey</h4> |
| <pre>public static <K,V> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms">Combine.PerKey</a><K,V,V> perKey(<a href="../../../../../org/apache/beam/sdk/transforms/SerializableBiFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableBiFunction</a><V,V,V> fn)</pre> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.PerKey</code></a> <code>PTransform</code> that first groups its input <code>PCollection</code> of <code>KV</code>s by keys and windows, then invokes the given function on each of the |
| values lists to produce a combined value, and then returns a <code>PCollection</code> of <code>KV</code>s |
| mapping each distinct key to its combined value for each window. |
| |
| <p>Each output element is in the window by which its corresponding input was grouped, and has |
| the timestamp of the end of that window. The output <code>PCollection</code> has the same <a href="../../../../../org/apache/beam/sdk/transforms/windowing/WindowFn.html" title="class in org.apache.beam.sdk.transforms.windowing"><code>WindowFn</code></a> as the input. |
| |
| <p>See <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.PerKey</code></a> for more information.</div> |
| </li> |
| </ul> |
| <a name="perKey-org.apache.beam.sdk.transforms.CombineFnBase.GlobalCombineFn-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>perKey</h4> |
| <pre>public static <K,InputT,OutputT> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms">Combine.PerKey</a><K,InputT,OutputT> perKey(<a href="../../../../../org/apache/beam/sdk/transforms/CombineFnBase.GlobalCombineFn.html" title="interface in org.apache.beam.sdk.transforms">CombineFnBase.GlobalCombineFn</a><? super InputT,?,OutputT> fn)</pre> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.PerKey</code></a> <code>PTransform</code> that first groups its input <code>PCollection</code> of <code>KV</code>s by keys and windows, then invokes the given function on each of the |
| values lists to produce a combined value, and then returns a <code>PCollection</code> of <code>KV</code>s |
| mapping each distinct key to its combined value for each window. |
| |
| <p>Each output element is in the window by which its corresponding input was grouped, and has |
| the timestamp of the end of that window. The output <code>PCollection</code> has the same <a href="../../../../../org/apache/beam/sdk/transforms/windowing/WindowFn.html" title="class in org.apache.beam.sdk.transforms.windowing"><code>WindowFn</code></a> as the input. |
| |
| <p>See <a href="../../../../../org/apache/beam/sdk/transforms/Combine.PerKey.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.PerKey</code></a> for more information.</div> |
| </li> |
| </ul> |
| <a name="groupedValues-org.apache.beam.sdk.transforms.SerializableFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>groupedValues</h4> |
| <pre>public static <K,V> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms">Combine.GroupedValues</a><K,V,V> groupedValues(<a href="../../../../../org/apache/beam/sdk/transforms/SerializableFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableFunction</a><java.lang.Iterable<V>,V> fn)</pre> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.GroupedValues</code></a> <code>PTransform</code> that takes a <code>PCollection</code> of <code>KV</code>s where a key maps to an <code>Iterable</code> of values, e.g., the result |
| of a <code>GroupByKey</code>, then uses the given <code>SerializableFunction</code> to combine all the |
| values associated with a key, ignoring the key. The type of the input and output values must be |
| the same. |
| |
| <p>Each output element has the same timestamp and is in the same window as its corresponding |
| input element, and the output <code>PCollection</code> has the same <a href="../../../../../org/apache/beam/sdk/transforms/windowing/WindowFn.html" title="class in org.apache.beam.sdk.transforms.windowing"><code>WindowFn</code></a> associated with it as the input. |
| |
| <p>See <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.GroupedValues</code></a> for more information. |
| |
| <p>Note that <a href="../../../../../org/apache/beam/sdk/transforms/Combine.html#perKey-org.apache.beam.sdk.transforms.SerializableFunction-"><code>perKey(SerializableFunction)</code></a> is typically more convenient to use than |
| <a href="../../../../../org/apache/beam/sdk/transforms/GroupByKey.html" title="class in org.apache.beam.sdk.transforms"><code>GroupByKey</code></a> followed by <code>groupedValues(...)</code>.</div> |
| </li> |
| </ul> |
| <a name="groupedValues-org.apache.beam.sdk.transforms.SerializableBiFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>groupedValues</h4> |
| <pre>public static <K,V> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms">Combine.GroupedValues</a><K,V,V> groupedValues(<a href="../../../../../org/apache/beam/sdk/transforms/SerializableBiFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableBiFunction</a><V,V,V> fn)</pre> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.GroupedValues</code></a> <code>PTransform</code> that takes a <code>PCollection</code> of <code>KV</code>s where a key maps to an <code>Iterable</code> of values, e.g., the result |
| of a <code>GroupByKey</code>, then uses the given <code>SerializableFunction</code> to combine all the |
| values associated with a key, ignoring the key. The type of the input and output values must be |
| the same. |
| |
| <p>Each output element has the same timestamp and is in the same window as its corresponding |
| input element, and the output <code>PCollection</code> has the same <a href="../../../../../org/apache/beam/sdk/transforms/windowing/WindowFn.html" title="class in org.apache.beam.sdk.transforms.windowing"><code>WindowFn</code></a> associated with it as the input. |
| |
| <p>See <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.GroupedValues</code></a> for more information. |
| |
| <p>Note that <a href="../../../../../org/apache/beam/sdk/transforms/Combine.html#perKey-org.apache.beam.sdk.transforms.SerializableBiFunction-"><code>perKey(SerializableBiFunction)</code></a> is typically more convenient to use than |
| <a href="../../../../../org/apache/beam/sdk/transforms/GroupByKey.html" title="class in org.apache.beam.sdk.transforms"><code>GroupByKey</code></a> followed by <code>groupedValues(...)</code>.</div> |
| </li> |
| </ul> |
| <a name="groupedValues-org.apache.beam.sdk.transforms.CombineFnBase.GlobalCombineFn-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>groupedValues</h4> |
| <pre>public static <K,InputT,OutputT> <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms">Combine.GroupedValues</a><K,InputT,OutputT> groupedValues(<a href="../../../../../org/apache/beam/sdk/transforms/CombineFnBase.GlobalCombineFn.html" title="interface in org.apache.beam.sdk.transforms">CombineFnBase.GlobalCombineFn</a><? super InputT,?,OutputT> fn)</pre> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.GroupedValues</code></a> <code>PTransform</code> that takes a <code>PCollection</code> of <code>KV</code>s where a key maps to an <code>Iterable</code> of values, e.g., the result |
| of a <code>GroupByKey</code>, then uses the given <code>CombineFn</code> to combine all the values |
| associated with a key, ignoring the key. The types of the input and output values can differ. |
| |
| <p>Each output element has the same timestamp and is in the same window as its corresponding |
| input element, and the output <code>PCollection</code> has the same <a href="../../../../../org/apache/beam/sdk/transforms/windowing/WindowFn.html" title="class in org.apache.beam.sdk.transforms.windowing"><code>WindowFn</code></a> associated with it as the input. |
| |
| <p>See <a href="../../../../../org/apache/beam/sdk/transforms/Combine.GroupedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Combine.GroupedValues</code></a> for more information. |
| |
| <p>Note that <a href="../../../../../org/apache/beam/sdk/transforms/Combine.html#perKey-org.apache.beam.sdk.transforms.CombineFnBase.GlobalCombineFn-"><code>perKey(CombineFnBase.GlobalCombineFn)</code></a> is typically more convenient to use |
| than <a href="../../../../../org/apache/beam/sdk/transforms/GroupByKey.html" title="class in org.apache.beam.sdk.transforms"><code>GroupByKey</code></a> followed by <code>groupedValues(...)</code>.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/beam/sdk/transforms/ApproximateUnique.PerKey.html" title="class in org.apache.beam.sdk.transforms"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/beam/sdk/transforms/Combine.AccumulatingCombineFn.html" title="class in org.apache.beam.sdk.transforms"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/beam/sdk/transforms/Combine.html" target="_top">Frames</a></li> |
| <li><a href="Combine.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |