| <!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 Wed Aug 14 17:37:13 PDT 2019 --> |
| <title>PAssert (Apache Beam 2.15.0-SNAPSHOT)</title> |
| <meta name="date" content="2019-08-14"> |
| <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="PAssert (Apache Beam 2.15.0-SNAPSHOT)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":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/testing/NeedsRunner.html" title="interface in org.apache.beam.sdk.testing"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/beam/sdk/testing/PAssert.DefaultConcludeTransform.html" title="class in org.apache.beam.sdk.testing"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/beam/sdk/testing/PAssert.html" target="_top">Frames</a></li> |
| <li><a href="PAssert.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><a href="#field.summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </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.testing</div> |
| <h2 title="Class PAssert" class="title">Class PAssert</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.beam.sdk.testing.PAssert</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">PAssert</span> |
| extends java.lang.Object</pre> |
| <div class="block">An assertion on the contents of a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> incorporated into the pipeline. Such an |
| assertion can be checked no matter what kind of <a href="../../../../../org/apache/beam/sdk/PipelineRunner.html" title="class in org.apache.beam.sdk"><code>PipelineRunner</code></a> is used. |
| |
| <p>Note that the <code>PAssert</code> call must precede the call to <a href="../../../../../org/apache/beam/sdk/Pipeline.html#run--"><code>Pipeline.run()</code></a>. |
| |
| <p>Examples of use: |
| |
| <pre><code> |
| Pipeline p = TestPipeline.create(); |
| ... |
| PCollection<String> output = |
| input |
| .apply(ParDo.of(new TestDoFn())); |
| PAssert.that(output) |
| .containsInAnyOrder("out1", "out2", "out3"); |
| ... |
| PCollection<Integer> ints = ... |
| PCollection<Integer> sum = |
| ints |
| .apply(Combine.globally(new SumInts())); |
| PAssert.that(sum) |
| .is(42); |
| ... |
| p.run(); |
| </code></pre> |
| |
| <p>JUnit and Hamcrest must be linked in by any code that uses PAssert.</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/testing/PAssert.DefaultConcludeTransform.html" title="class in org.apache.beam.sdk.testing">PAssert.DefaultConcludeTransform</a></span></code> |
| <div class="block">Default transform to check that a PAssert was successful.</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/testing/PAssert.GroupThenAssert.html" title="class in org.apache.beam.sdk.testing">PAssert.GroupThenAssert</a><<a href="../../../../../org/apache/beam/sdk/testing/PAssert.GroupThenAssert.html" title="type parameter in PAssert.GroupThenAssert">T</a>></span></code> |
| <div class="block">A transform that applies an assertion-checking function over iterables of <code>ActualT</code> to |
| the entirety of the contents of its input.</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/testing/PAssert.GroupThenAssertForSingleton.html" title="class in org.apache.beam.sdk.testing">PAssert.GroupThenAssertForSingleton</a><<a href="../../../../../org/apache/beam/sdk/testing/PAssert.GroupThenAssertForSingleton.html" title="type parameter in PAssert.GroupThenAssertForSingleton">T</a>></span></code> |
| <div class="block">A transform that applies an assertion-checking function to the sole element of a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static interface </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.IterableAssert</a><<a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="type parameter in PAssert.IterableAssert">T</a>></span></code> |
| <div class="block">Builder interface for assertions applicable to iterables and PCollection contents.</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/testing/PAssert.OneSideInputAssert.html" title="class in org.apache.beam.sdk.testing">PAssert.OneSideInputAssert</a><<a href="../../../../../org/apache/beam/sdk/testing/PAssert.OneSideInputAssert.html" title="type parameter in PAssert.OneSideInputAssert">ActualT</a>></span></code> |
| <div class="block">An assertion checker that takes a single <a href="../../../../../org/apache/beam/sdk/values/PCollectionView.html" title="interface in org.apache.beam.sdk.values"><code>PCollectionView<ActualT></code></a> |
| and an assertion over <code>ActualT</code>, and checks it within a Beam pipeline.</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/testing/PAssert.PAssertionSite.html" title="class in org.apache.beam.sdk.testing">PAssert.PAssertionSite</a></span></code> |
| <div class="block">Track the place where an assertion is defined.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.PCollectionContentsAssert.html" title="class in org.apache.beam.sdk.testing">PAssert.PCollectionContentsAssert</a><<a href="../../../../../org/apache/beam/sdk/testing/PAssert.PCollectionContentsAssert.html" title="type parameter in PAssert.PCollectionContentsAssert">T</a>></span></code> |
| <div class="block">An <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.IterableAssert</code></a> about the contents of a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static interface </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><<a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="type parameter in PAssert.SingletonAssert">T</a>></span></code> |
| <div class="block">Builder interface for assertions applicable to a single value.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#FAILURE_COUNTER">FAILURE_COUNTER</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#SUCCESS_COUNTER">SUCCESS_COUNTER</a></span></code> </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 int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#countAsserts-org.apache.beam.sdk.Pipeline-">countAsserts</a></span>(<a href="../../../../../org/apache/beam/sdk/Pipeline.html" title="class in org.apache.beam.sdk">Pipeline</a> pipeline)</code> </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>protected static <ActualT> <a href="../../../../../org/apache/beam/sdk/testing/SuccessOrFailure.html" title="class in org.apache.beam.sdk.testing">SuccessOrFailure</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#doChecks-org.apache.beam.sdk.testing.PAssert.PAssertionSite-ActualT-org.apache.beam.sdk.transforms.SerializableFunction-">doChecks</a></span>(<a href="../../../../../org/apache/beam/sdk/testing/PAssert.PAssertionSite.html" title="class in org.apache.beam.sdk.testing">PAssert.PAssertionSite</a> site, |
| ActualT actualContents, |
| <a href="../../../../../org/apache/beam/sdk/transforms/SerializableFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableFunction</a><ActualT,java.lang.Void> checkerFn)</code> </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.IterableAssert</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#that-org.apache.beam.sdk.values.PCollection-">that</a></span>(<a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><T> actual)</code> |
| <div class="block">Constructs an <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.IterableAssert</code></a> for the elements of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.IterableAssert</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#that-java.lang.String-org.apache.beam.sdk.values.PCollection-">that</a></span>(java.lang.String reason, |
| <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><T> actual)</code> |
| <div class="block">Constructs an <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.IterableAssert</code></a> for the elements of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> with |
| the specified reason.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <K,V> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><java.util.Map<K,V>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#thatMap-org.apache.beam.sdk.values.PCollection-">thatMap</a></span>(<a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><<a href="../../../../../org/apache/beam/sdk/values/KV.html" title="class in org.apache.beam.sdk.values">KV</a><K,V>> actual)</code> |
| <div class="block">Constructs a <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.SingletonAssert</code></a> for the value of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>, which |
| must have at most one value per key.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <K,V> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><java.util.Map<K,V>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#thatMap-java.lang.String-org.apache.beam.sdk.values.PCollection-">thatMap</a></span>(java.lang.String reason, |
| <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><<a href="../../../../../org/apache/beam/sdk/values/KV.html" title="class in org.apache.beam.sdk.values">KV</a><K,V>> actual)</code> |
| <div class="block">Constructs a <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.SingletonAssert</code></a> for the value of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> with the |
| specified reason.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static <K,V> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><java.util.Map<K,java.lang.Iterable<V>>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#thatMultimap-org.apache.beam.sdk.values.PCollection-">thatMultimap</a></span>(<a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><<a href="../../../../../org/apache/beam/sdk/values/KV.html" title="class in org.apache.beam.sdk.values">KV</a><K,V>> actual)</code> |
| <div class="block">Constructs a <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.SingletonAssert</code></a> for the value of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static <K,V> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><java.util.Map<K,java.lang.Iterable<V>>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#thatMultimap-java.lang.String-org.apache.beam.sdk.values.PCollection-">thatMultimap</a></span>(java.lang.String reason, |
| <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><<a href="../../../../../org/apache/beam/sdk/values/KV.html" title="class in org.apache.beam.sdk.values">KV</a><K,V>> actual)</code> |
| <div class="block">Constructs a <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.SingletonAssert</code></a> for the value of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> with the |
| specified reason.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#thatSingleton-org.apache.beam.sdk.values.PCollection-">thatSingleton</a></span>(<a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><T> actual)</code> |
| <div class="block">Constructs a <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.SingletonAssert</code></a> for the value of the provided <code>PCollection |
| PCollection<T></code>, which must be a singleton.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#thatSingleton-java.lang.String-org.apache.beam.sdk.values.PCollection-">thatSingleton</a></span>(java.lang.String reason, |
| <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><T> actual)</code> |
| <div class="block">Constructs a <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.SingletonAssert</code></a> for the value of the provided <code>PCollection |
| PCollection<T></code> with the specified reason.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.IterableAssert</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#thatSingletonIterable-org.apache.beam.sdk.values.PCollection-">thatSingletonIterable</a></span>(<a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><? extends java.lang.Iterable<T>> actual)</code> |
| <div class="block">Constructs an <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.IterableAssert</code></a> for the value of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> which |
| must contain a single <code>Iterable<T></code> value.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.IterableAssert</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/PAssert.html#thatSingletonIterable-java.lang.String-org.apache.beam.sdk.values.PCollection-">thatSingletonIterable</a></span>(java.lang.String reason, |
| <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><? extends java.lang.Iterable<T>> actual)</code> |
| <div class="block">Constructs an <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.IterableAssert</code></a> for the value of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> with |
| the specified reason.</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"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="SUCCESS_COUNTER"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SUCCESS_COUNTER</h4> |
| <pre>public static final java.lang.String SUCCESS_COUNTER</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.beam.sdk.testing.PAssert.SUCCESS_COUNTER">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="FAILURE_COUNTER"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>FAILURE_COUNTER</h4> |
| <pre>public static final java.lang.String FAILURE_COUNTER</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.beam.sdk.testing.PAssert.FAILURE_COUNTER">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="that-org.apache.beam.sdk.values.PCollection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>that</h4> |
| <pre>public static <T> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.IterableAssert</a><T> that(<a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><T> actual)</pre> |
| <div class="block">Constructs an <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.IterableAssert</code></a> for the elements of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>.</div> |
| </li> |
| </ul> |
| <a name="that-java.lang.String-org.apache.beam.sdk.values.PCollection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>that</h4> |
| <pre>public static <T> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.IterableAssert</a><T> that(java.lang.String reason, |
| <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><T> actual)</pre> |
| <div class="block">Constructs an <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.IterableAssert</code></a> for the elements of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> with |
| the specified reason.</div> |
| </li> |
| </ul> |
| <a name="thatSingletonIterable-org.apache.beam.sdk.values.PCollection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>thatSingletonIterable</h4> |
| <pre>public static <T> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.IterableAssert</a><T> thatSingletonIterable(<a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><? extends java.lang.Iterable<T>> actual)</pre> |
| <div class="block">Constructs an <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.IterableAssert</code></a> for the value of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> which |
| must contain a single <code>Iterable<T></code> value.</div> |
| </li> |
| </ul> |
| <a name="thatSingletonIterable-java.lang.String-org.apache.beam.sdk.values.PCollection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>thatSingletonIterable</h4> |
| <pre>public static <T> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.IterableAssert</a><T> thatSingletonIterable(java.lang.String reason, |
| <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><? extends java.lang.Iterable<T>> actual)</pre> |
| <div class="block">Constructs an <a href="../../../../../org/apache/beam/sdk/testing/PAssert.IterableAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.IterableAssert</code></a> for the value of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> with |
| the specified reason. The provided PCollection must contain a single <code>Iterable<T></code> value.</div> |
| </li> |
| </ul> |
| <a name="thatSingleton-org.apache.beam.sdk.values.PCollection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>thatSingleton</h4> |
| <pre>public static <T> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><T> thatSingleton(<a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><T> actual)</pre> |
| <div class="block">Constructs a <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.SingletonAssert</code></a> for the value of the provided <code>PCollection |
| PCollection<T></code>, which must be a singleton.</div> |
| </li> |
| </ul> |
| <a name="thatSingleton-java.lang.String-org.apache.beam.sdk.values.PCollection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>thatSingleton</h4> |
| <pre>public static <T> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><T> thatSingleton(java.lang.String reason, |
| <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><T> actual)</pre> |
| <div class="block">Constructs a <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.SingletonAssert</code></a> for the value of the provided <code>PCollection |
| PCollection<T></code> with the specified reason. The provided PCollection must be a singleton.</div> |
| </li> |
| </ul> |
| <a name="thatMultimap-org.apache.beam.sdk.values.PCollection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>thatMultimap</h4> |
| <pre>public static <K,V> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><java.util.Map<K,java.lang.Iterable<V>>> thatMultimap(<a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><<a href="../../../../../org/apache/beam/sdk/values/KV.html" title="class in org.apache.beam.sdk.values">KV</a><K,V>> actual)</pre> |
| <div class="block">Constructs a <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.SingletonAssert</code></a> for the value of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>. |
| |
| <p>Note that the actual value must be coded by a <a href="../../../../../org/apache/beam/sdk/coders/KvCoder.html" title="class in org.apache.beam.sdk.coders"><code>KvCoder</code></a>, not just any <code>Coder<K, |
| V></code>.</div> |
| </li> |
| </ul> |
| <a name="thatMultimap-java.lang.String-org.apache.beam.sdk.values.PCollection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>thatMultimap</h4> |
| <pre>public static <K,V> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><java.util.Map<K,java.lang.Iterable<V>>> thatMultimap(java.lang.String reason, |
| <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><<a href="../../../../../org/apache/beam/sdk/values/KV.html" title="class in org.apache.beam.sdk.values">KV</a><K,V>> actual)</pre> |
| <div class="block">Constructs a <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.SingletonAssert</code></a> for the value of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> with the |
| specified reason. |
| |
| <p>Note that the actual value must be coded by a <a href="../../../../../org/apache/beam/sdk/coders/KvCoder.html" title="class in org.apache.beam.sdk.coders"><code>KvCoder</code></a>, not just any <code>Coder<K, |
| V></code>.</div> |
| </li> |
| </ul> |
| <a name="thatMap-org.apache.beam.sdk.values.PCollection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>thatMap</h4> |
| <pre>public static <K,V> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><java.util.Map<K,V>> thatMap(<a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><<a href="../../../../../org/apache/beam/sdk/values/KV.html" title="class in org.apache.beam.sdk.values">KV</a><K,V>> actual)</pre> |
| <div class="block">Constructs a <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.SingletonAssert</code></a> for the value of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>, which |
| must have at most one value per key. |
| |
| <p>Note that the actual value must be coded by a <a href="../../../../../org/apache/beam/sdk/coders/KvCoder.html" title="class in org.apache.beam.sdk.coders"><code>KvCoder</code></a>, not just any <code>Coder<K, |
| V></code>.</div> |
| </li> |
| </ul> |
| <a name="thatMap-java.lang.String-org.apache.beam.sdk.values.PCollection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>thatMap</h4> |
| <pre>public static <K,V> <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing">PAssert.SingletonAssert</a><java.util.Map<K,V>> thatMap(java.lang.String reason, |
| <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><<a href="../../../../../org/apache/beam/sdk/values/KV.html" title="class in org.apache.beam.sdk.values">KV</a><K,V>> actual)</pre> |
| <div class="block">Constructs a <a href="../../../../../org/apache/beam/sdk/testing/PAssert.SingletonAssert.html" title="interface in org.apache.beam.sdk.testing"><code>PAssert.SingletonAssert</code></a> for the value of the provided <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> with the |
| specified reason. The <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> must have at most one value per key. |
| |
| <p>Note that the actual value must be coded by a <a href="../../../../../org/apache/beam/sdk/coders/KvCoder.html" title="class in org.apache.beam.sdk.coders"><code>KvCoder</code></a>, not just any <code>Coder<K, |
| V></code>.</div> |
| </li> |
| </ul> |
| <a name="doChecks-org.apache.beam.sdk.testing.PAssert.PAssertionSite-java.lang.Object-org.apache.beam.sdk.transforms.SerializableFunction-"> |
| <!-- --> |
| </a><a name="doChecks-org.apache.beam.sdk.testing.PAssert.PAssertionSite-ActualT-org.apache.beam.sdk.transforms.SerializableFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>doChecks</h4> |
| <pre>protected static <ActualT> <a href="../../../../../org/apache/beam/sdk/testing/SuccessOrFailure.html" title="class in org.apache.beam.sdk.testing">SuccessOrFailure</a> doChecks(<a href="../../../../../org/apache/beam/sdk/testing/PAssert.PAssertionSite.html" title="class in org.apache.beam.sdk.testing">PAssert.PAssertionSite</a> site, |
| ActualT actualContents, |
| <a href="../../../../../org/apache/beam/sdk/transforms/SerializableFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableFunction</a><ActualT,java.lang.Void> checkerFn)</pre> |
| </li> |
| </ul> |
| <a name="countAsserts-org.apache.beam.sdk.Pipeline-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>countAsserts</h4> |
| <pre>public static int countAsserts(<a href="../../../../../org/apache/beam/sdk/Pipeline.html" title="class in org.apache.beam.sdk">Pipeline</a> pipeline)</pre> |
| </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/testing/NeedsRunner.html" title="interface in org.apache.beam.sdk.testing"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/beam/sdk/testing/PAssert.DefaultConcludeTransform.html" title="class in org.apache.beam.sdk.testing"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/beam/sdk/testing/PAssert.html" target="_top">Frames</a></li> |
| <li><a href="PAssert.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><a href="#field.summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </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> |