| <!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_151-google-v7) on Tue Oct 02 14:37:31 PDT 2018 --> |
| <title>CoderProperties (Apache Beam 2.7.0-SNAPSHOT)</title> |
| <meta name="date" content="2018-10-02"> |
| <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="CoderProperties (Apache Beam 2.7.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,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":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>Prev Class</li> |
| <li><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.TestElementByteSizeObserver.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/CoderProperties.html" target="_top">Frames</a></li> |
| <li><a href="CoderProperties.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><a href="#constructor.summary">Constr</a> | </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><a href="#constructor.detail">Constr</a> | </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 CoderProperties" class="title">Class CoderProperties</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.beam.sdk.testing.CoderProperties</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">CoderProperties</span> |
| extends java.lang.Object</pre> |
| <div class="block">Properties for use in <a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders"><code>Coder</code></a> tests. These are implemented with junit assertions rather |
| than as predicates for the sake of error messages. |
| |
| <p>We serialize and deserialize the coder to make sure that any state information required by the |
| coder is preserved. This causes tests written such that coders that lose information during |
| serialization or change state during encoding/decoding will fail.</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/CoderProperties.TestElementByteSizeObserver.html" title="class in org.apache.beam.sdk.testing">CoderProperties.TestElementByteSizeObserver</a></span></code> |
| <div class="block">An <code>ElementByteSizeObserver</code> that records the observed element sizes for testing |
| purposes.</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.util.List<<a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#ALL_CONTEXTS">ALL_CONTEXTS</a></span></code> |
| <div class="block">All the contexts, for use in test cases.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#CoderProperties--">CoderProperties</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 <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderConsistentWithEquals-org.apache.beam.sdk.coders.Coder-T-T-">coderConsistentWithEquals</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| T value1, |
| T value2)</code> |
| <div class="block">Verifies that for the given <code>Coder<T></code> and values of type <code>T</code>, the values are equal |
| if and only if the encoded bytes are equal.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderConsistentWithEqualsInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-T-T-">coderConsistentWithEqualsInContext</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| T value1, |
| T value2)</code> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, <code>Coder.Context</code>, and values of type <code>T</code>, the values are equal if and only if the encoded bytes are equal, in any <code>Coder.Context</code>.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static <T,CollectionT extends java.util.Collection<T>><br>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderDecodeEncodeContentsEqual-org.apache.beam.sdk.coders.Coder-CollectionT-">coderDecodeEncodeContentsEqual</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><CollectionT> coder, |
| CollectionT value)</code> |
| <div class="block">Verifies that for the given <code>Coder<Collection<T>></code>, and value of type <code>Collection<T></code>, encoding followed by decoding yields an equal value of type <code>Collection<T></code>, in any <code>Coder.Context</code>.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static <T,CollectionT extends java.util.Collection<T>><br>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderDecodeEncodeContentsEqualInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-CollectionT-">coderDecodeEncodeContentsEqualInContext</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><CollectionT> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| CollectionT value)</code> |
| <div class="block">Verifies that for the given <code>Coder<Collection<T>></code>, and value of type <code>Collection<T></code>, encoding followed by decoding yields an equal value of type <code>Collection<T></code>, in the given <code>Coder.Context</code>.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <T,IterableT extends java.lang.Iterable<T>><br>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderDecodeEncodeContentsInSameOrder-org.apache.beam.sdk.coders.Coder-IterableT-">coderDecodeEncodeContentsInSameOrder</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><IterableT> coder, |
| IterableT value)</code> |
| <div class="block">Verifies that for the given <code>Coder<Collection<T>></code>, and value of type <code>Collection<T></code>, encoding followed by decoding yields an equal value of type <code>Collection<T></code>, in any <code>Coder.Context</code>.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <T,IterableT extends java.lang.Iterable<T>><br>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderDecodeEncodeContentsInSameOrderInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-IterableT-">coderDecodeEncodeContentsInSameOrderInContext</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><IterableT> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| IterableT value)</code> |
| <div class="block">Verifies that for the given <code>Coder<Iterable<T>></code>, and value of type <code>Iterable<T></code>, |
| encoding followed by decoding yields an equal value of type <code>Collection<T></code>, in the given |
| <code>Coder.Context</code>.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderDecodeEncodeEqual-org.apache.beam.sdk.coders.Coder-T-">coderDecodeEncodeEqual</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| T value)</code> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, and value of type <code>T</code>, encoding followed by |
| decoding yields an equal value of type <code>T</code>, in any <code>Coder.Context</code>.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderDecodeEncodeEqualInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-T-">coderDecodeEncodeEqualInContext</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| T value)</code> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, <code>Coder.Context</code>, and value of type <code>T</code>, encoding followed by decoding yields an equal value of type <code>T</code>.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderDecodesBase64-org.apache.beam.sdk.coders.Coder-java.util.List-java.util.List-">coderDecodesBase64</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| java.util.List<java.lang.String> base64Encodings, |
| java.util.List<T> values)</code> </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderDecodesBase64-org.apache.beam.sdk.coders.Coder-java.lang.String-T-">coderDecodesBase64</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| java.lang.String base64Encoding, |
| T value)</code> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static <T,IterableT extends java.lang.Iterable<T>><br>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderDecodesBase64ContentsEqual-org.apache.beam.sdk.coders.Coder-java.util.List-java.util.List-">coderDecodesBase64ContentsEqual</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><IterableT> coder, |
| java.util.List<java.lang.String> base64Encodings, |
| java.util.List<IterableT> expected)</code> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static <T,IterableT extends java.lang.Iterable<T>><br>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderDecodesBase64ContentsEqual-org.apache.beam.sdk.coders.Coder-java.lang.String-IterableT-">coderDecodesBase64ContentsEqual</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><IterableT> coder, |
| java.lang.String base64Encoding, |
| IterableT expected)</code> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderDeterministic-org.apache.beam.sdk.coders.Coder-T-T-">coderDeterministic</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| T value1, |
| T value2)</code> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, and values of type <code>T</code>, if the values are |
| equal then the encoded bytes are equal, in any <code>Coder.Context</code>.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderDeterministicInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-T-T-">coderDeterministicInContext</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| T value1, |
| T value2)</code> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, <code>Coder.Context</code>, and values of type <code>T</code>, if the values are equal then the encoded bytes are equal.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderEncodesBase64-org.apache.beam.sdk.coders.Coder-java.util.List-java.util.List-">coderEncodesBase64</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| java.util.List<T> values, |
| java.util.List<java.lang.String> base64Encodings)</code> </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderEncodesBase64-org.apache.beam.sdk.coders.Coder-T-java.lang.String-">coderEncodesBase64</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| T value, |
| java.lang.String base64Encoding)</code> </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#coderSerializable-org.apache.beam.sdk.coders.Coder-">coderSerializable</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder)</code> |
| <div class="block">Verifies that the given <code>Coder<T></code> can be correctly serialized and deserialized.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#structuralValueConsistentWithEquals-org.apache.beam.sdk.coders.Coder-T-T-">structuralValueConsistentWithEquals</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| T value1, |
| T value2)</code> |
| <div class="block">Verifies that for the given <code>Coder<T></code> and values of type <code>T</code>, the structural |
| values are equal if and only if the encoded bytes are equal.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#structuralValueConsistentWithEqualsInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-T-T-">structuralValueConsistentWithEqualsInContext</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| T value1, |
| T value2)</code> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, <code>Coder.Context</code>, and values of type <code>T</code>, the structural values are equal if and only if the encoded bytes are equal, in any <code>Coder.Context</code>.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#structuralValueDecodeEncodeEqual-org.apache.beam.sdk.coders.Coder-T-">structuralValueDecodeEncodeEqual</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| T value)</code> |
| <div class="block">Verifies that for the given <code>Coder<T></code> and value of type <code>T</code>, the structural value |
| is equal to the structural value yield by encoding and decoding the original value.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#structuralValueDecodeEncodeEqualInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-T-">structuralValueDecodeEncodeEqualInContext</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| T value)</code> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, <code>Coder.Context</code>, and value of type <code>T</code>, the structural value is equal to the structural value yield by encoding and decoding the |
| original value, in any <code>Coder.Context</code>.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.html#testByteCount-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-T:A-">testByteCount</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| T[] elements)</code> |
| <div class="block">A utility method that passes the given (unencoded) elements through coder's |
| registerByteSizeObserver() and encode() methods, and confirms they are mutually consistent.</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="ALL_CONTEXTS"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ALL_CONTEXTS</h4> |
| <pre>public static final java.util.List<<a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a>> ALL_CONTEXTS</pre> |
| <div class="block">All the contexts, for use in test cases.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="CoderProperties--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>CoderProperties</h4> |
| <pre>public CoderProperties()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="coderDeterministic-org.apache.beam.sdk.coders.Coder-java.lang.Object-java.lang.Object-"> |
| <!-- --> |
| </a><a name="coderDeterministic-org.apache.beam.sdk.coders.Coder-T-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderDeterministic</h4> |
| <pre>public static <T> void coderDeterministic(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| T value1, |
| T value2) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, and values of type <code>T</code>, if the values are |
| equal then the encoded bytes are equal, in any <code>Coder.Context</code>.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderDeterministicInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-java.lang.Object-java.lang.Object-"> |
| <!-- --> |
| </a><a name="coderDeterministicInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-T-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderDeterministicInContext</h4> |
| <pre>public static <T> void coderDeterministicInContext(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| T value1, |
| T value2) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, <code>Coder.Context</code>, and values of type <code>T</code>, if the values are equal then the encoded bytes are equal.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderDecodeEncodeEqual-org.apache.beam.sdk.coders.Coder-java.lang.Object-"> |
| <!-- --> |
| </a><a name="coderDecodeEncodeEqual-org.apache.beam.sdk.coders.Coder-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderDecodeEncodeEqual</h4> |
| <pre>public static <T> void coderDecodeEncodeEqual(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| T value) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, and value of type <code>T</code>, encoding followed by |
| decoding yields an equal value of type <code>T</code>, in any <code>Coder.Context</code>.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderDecodeEncodeEqualInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-java.lang.Object-"> |
| <!-- --> |
| </a><a name="coderDecodeEncodeEqualInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderDecodeEncodeEqualInContext</h4> |
| <pre>public static <T> void coderDecodeEncodeEqualInContext(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| T value) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, <code>Coder.Context</code>, and value of type <code>T</code>, encoding followed by decoding yields an equal value of type <code>T</code>.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderDecodeEncodeContentsEqual-org.apache.beam.sdk.coders.Coder-java.util.Collection-"> |
| <!-- --> |
| </a><a name="coderDecodeEncodeContentsEqual-org.apache.beam.sdk.coders.Coder-CollectionT-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderDecodeEncodeContentsEqual</h4> |
| <pre>public static <T,CollectionT extends java.util.Collection<T>> void coderDecodeEncodeContentsEqual(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><CollectionT> coder, |
| CollectionT value) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<Collection<T>></code>, and value of type <code>Collection<T></code>, encoding followed by decoding yields an equal value of type <code>Collection<T></code>, in any <code>Coder.Context</code>.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderDecodeEncodeContentsEqualInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-java.util.Collection-"> |
| <!-- --> |
| </a><a name="coderDecodeEncodeContentsEqualInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-CollectionT-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderDecodeEncodeContentsEqualInContext</h4> |
| <pre>public static <T,CollectionT extends java.util.Collection<T>> void coderDecodeEncodeContentsEqualInContext(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><CollectionT> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| CollectionT value) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<Collection<T>></code>, and value of type <code>Collection<T></code>, encoding followed by decoding yields an equal value of type <code>Collection<T></code>, in the given <code>Coder.Context</code>.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderDecodeEncodeContentsInSameOrder-org.apache.beam.sdk.coders.Coder-java.lang.Iterable-"> |
| <!-- --> |
| </a><a name="coderDecodeEncodeContentsInSameOrder-org.apache.beam.sdk.coders.Coder-IterableT-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderDecodeEncodeContentsInSameOrder</h4> |
| <pre>public static <T,IterableT extends java.lang.Iterable<T>> void coderDecodeEncodeContentsInSameOrder(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><IterableT> coder, |
| IterableT value) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<Collection<T>></code>, and value of type <code>Collection<T></code>, encoding followed by decoding yields an equal value of type <code>Collection<T></code>, in any <code>Coder.Context</code>.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderDecodeEncodeContentsInSameOrderInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-java.lang.Iterable-"> |
| <!-- --> |
| </a><a name="coderDecodeEncodeContentsInSameOrderInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-IterableT-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderDecodeEncodeContentsInSameOrderInContext</h4> |
| <pre>public static <T,IterableT extends java.lang.Iterable<T>> void coderDecodeEncodeContentsInSameOrderInContext(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><IterableT> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| IterableT value) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<Iterable<T>></code>, and value of type <code>Iterable<T></code>, |
| encoding followed by decoding yields an equal value of type <code>Collection<T></code>, in the given |
| <code>Coder.Context</code>.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderSerializable-org.apache.beam.sdk.coders.Coder-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderSerializable</h4> |
| <pre>public static <T> void coderSerializable(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder)</pre> |
| <div class="block">Verifies that the given <code>Coder<T></code> can be correctly serialized and deserialized.</div> |
| </li> |
| </ul> |
| <a name="coderConsistentWithEquals-org.apache.beam.sdk.coders.Coder-java.lang.Object-java.lang.Object-"> |
| <!-- --> |
| </a><a name="coderConsistentWithEquals-org.apache.beam.sdk.coders.Coder-T-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderConsistentWithEquals</h4> |
| <pre>public static <T> void coderConsistentWithEquals(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| T value1, |
| T value2) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<T></code> and values of type <code>T</code>, the values are equal |
| if and only if the encoded bytes are equal.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderConsistentWithEqualsInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-java.lang.Object-java.lang.Object-"> |
| <!-- --> |
| </a><a name="coderConsistentWithEqualsInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-T-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderConsistentWithEqualsInContext</h4> |
| <pre>public static <T> void coderConsistentWithEqualsInContext(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| T value1, |
| T value2) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, <code>Coder.Context</code>, and values of type <code>T</code>, the values are equal if and only if the encoded bytes are equal, in any <code>Coder.Context</code>.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="structuralValueConsistentWithEquals-org.apache.beam.sdk.coders.Coder-java.lang.Object-java.lang.Object-"> |
| <!-- --> |
| </a><a name="structuralValueConsistentWithEquals-org.apache.beam.sdk.coders.Coder-T-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>structuralValueConsistentWithEquals</h4> |
| <pre>public static <T> void structuralValueConsistentWithEquals(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| T value1, |
| T value2) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<T></code> and values of type <code>T</code>, the structural |
| values are equal if and only if the encoded bytes are equal.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="structuralValueConsistentWithEqualsInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-java.lang.Object-java.lang.Object-"> |
| <!-- --> |
| </a><a name="structuralValueConsistentWithEqualsInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-T-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>structuralValueConsistentWithEqualsInContext</h4> |
| <pre>public static <T> void structuralValueConsistentWithEqualsInContext(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| T value1, |
| T value2) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, <code>Coder.Context</code>, and values of type <code>T</code>, the structural values are equal if and only if the encoded bytes are equal, in any <code>Coder.Context</code>.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="structuralValueDecodeEncodeEqual-org.apache.beam.sdk.coders.Coder-java.lang.Object-"> |
| <!-- --> |
| </a><a name="structuralValueDecodeEncodeEqual-org.apache.beam.sdk.coders.Coder-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>structuralValueDecodeEncodeEqual</h4> |
| <pre>public static <T> void structuralValueDecodeEncodeEqual(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| T value) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<T></code> and value of type <code>T</code>, the structural value |
| is equal to the structural value yield by encoding and decoding the original value. |
| |
| <p>This is useful to test the correct implementation of a Coder structural equality with values |
| that don't implement the equals contract.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="structuralValueDecodeEncodeEqualInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-java.lang.Object-"> |
| <!-- --> |
| </a><a name="structuralValueDecodeEncodeEqualInContext-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>structuralValueDecodeEncodeEqualInContext</h4> |
| <pre>public static <T> void structuralValueDecodeEncodeEqualInContext(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| T value) |
| throws java.lang.Exception</pre> |
| <div class="block">Verifies that for the given <code>Coder<T></code>, <code>Coder.Context</code>, and value of type <code>T</code>, the structural value is equal to the structural value yield by encoding and decoding the |
| original value, in any <code>Coder.Context</code>.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderDecodesBase64-org.apache.beam.sdk.coders.Coder-java.lang.String-java.lang.Object-"> |
| <!-- --> |
| </a><a name="coderDecodesBase64-org.apache.beam.sdk.coders.Coder-java.lang.String-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderDecodesBase64</h4> |
| <pre>public static <T> void coderDecodesBase64(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| java.lang.String base64Encoding, |
| T value) |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderDecodesBase64-org.apache.beam.sdk.coders.Coder-java.util.List-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderDecodesBase64</h4> |
| <pre>public static <T> void coderDecodesBase64(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| java.util.List<java.lang.String> base64Encodings, |
| java.util.List<T> values) |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderEncodesBase64-org.apache.beam.sdk.coders.Coder-java.lang.Object-java.lang.String-"> |
| <!-- --> |
| </a><a name="coderEncodesBase64-org.apache.beam.sdk.coders.Coder-T-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderEncodesBase64</h4> |
| <pre>public static <T> void coderEncodesBase64(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| T value, |
| java.lang.String base64Encoding) |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderEncodesBase64-org.apache.beam.sdk.coders.Coder-java.util.List-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderEncodesBase64</h4> |
| <pre>public static <T> void coderEncodesBase64(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| java.util.List<T> values, |
| java.util.List<java.lang.String> base64Encodings) |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderDecodesBase64ContentsEqual-org.apache.beam.sdk.coders.Coder-java.lang.String-java.lang.Iterable-"> |
| <!-- --> |
| </a><a name="coderDecodesBase64ContentsEqual-org.apache.beam.sdk.coders.Coder-java.lang.String-IterableT-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderDecodesBase64ContentsEqual</h4> |
| <pre>public static <T,IterableT extends java.lang.Iterable<T>> void coderDecodesBase64ContentsEqual(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><IterableT> coder, |
| java.lang.String base64Encoding, |
| IterableT expected) |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="coderDecodesBase64ContentsEqual-org.apache.beam.sdk.coders.Coder-java.util.List-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coderDecodesBase64ContentsEqual</h4> |
| <pre>public static <T,IterableT extends java.lang.Iterable<T>> void coderDecodesBase64ContentsEqual(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><IterableT> coder, |
| java.util.List<java.lang.String> base64Encodings, |
| java.util.List<IterableT> expected) |
| throws java.lang.Exception</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="testByteCount-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-java.lang.Object:A-"> |
| <!-- --> |
| </a><a name="testByteCount-org.apache.beam.sdk.coders.Coder-org.apache.beam.sdk.coders.Coder.Context-T:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>testByteCount</h4> |
| <pre>public static <T> void testByteCount(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a><T> coder, |
| <a href="../../../../../org/apache/beam/sdk/coders/Coder.Context.html" title="class in org.apache.beam.sdk.coders">Coder.Context</a> context, |
| T[] elements) |
| throws java.lang.Exception</pre> |
| <div class="block">A utility method that passes the given (unencoded) elements through coder's |
| registerByteSizeObserver() and encode() methods, and confirms they are mutually consistent. |
| This is useful for testing coder implementations.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </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>Prev Class</li> |
| <li><a href="../../../../../org/apache/beam/sdk/testing/CoderProperties.TestElementByteSizeObserver.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/CoderProperties.html" target="_top">Frames</a></li> |
| <li><a href="CoderProperties.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><a href="#constructor.summary">Constr</a> | </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><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |