| <!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 --> |
| <title>JdbcIO.WriteVoid (Apache Beam 2.38.0-SNAPSHOT)</title> |
| <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="JdbcIO.WriteVoid (Apache Beam 2.38.0-SNAPSHOT)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance 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/io/jdbc/JdbcIO.Write.html" title="class in org.apache.beam.sdk.io.jdbc"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteWithResults.html" title="class in org.apache.beam.sdk.io.jdbc"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" target="_top">Frames</a></li> |
| <li><a href="JdbcIO.WriteVoid.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>Nested | </li> |
| <li><a href="#fields.inherited.from.class.org.apache.beam.sdk.transforms.PTransform">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>Field | </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.io.jdbc</div> |
| <h2 title="Class JdbcIO.WriteVoid" class="title">Class JdbcIO.WriteVoid<T></h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html" title="class in org.apache.beam.sdk.transforms">org.apache.beam.sdk.transforms.PTransform</a><<a href="../../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><T>,<a href="../../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><java.lang.Void>></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.beam.sdk.io.jdbc.JdbcIO.WriteVoid<T></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd>java.io.Serializable, <a href="../../../../../../org/apache/beam/sdk/transforms/display/HasDisplayData.html" title="interface in org.apache.beam.sdk.transforms.display">HasDisplayData</a></dd> |
| </dl> |
| <dl> |
| <dt>Enclosing class:</dt> |
| <dd><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public abstract static class <span class="typeNameLabel">JdbcIO.WriteVoid<T></span> |
| extends <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html" title="class in org.apache.beam.sdk.transforms">PTransform</a><<a href="../../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><T>,<a href="../../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><java.lang.Void>></pre> |
| <div class="block">A <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html" title="class in org.apache.beam.sdk.transforms"><code>PTransform</code></a> to write to a JDBC datasource. Executes statements in a batch, and returns |
| a trivial result.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../serialized-form.html#org.apache.beam.sdk.io.jdbc.JdbcIO.WriteVoid">Serialized Form</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.apache.beam.sdk.transforms.PTransform"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.apache.beam.sdk.transforms.<a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html" title="class in org.apache.beam.sdk.transforms">PTransform</a></h3> |
| <code><a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#name">name</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#resourceHints">resourceHints</a></code></li> |
| </ul> |
| </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/io/jdbc/JdbcIO.WriteVoid.html#WriteVoid--">WriteVoid</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="t2" class="tableTab"><span><a href="javascript:show(2);">Instance 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><a href="../../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><java.lang.Void></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html#expand-org.apache.beam.sdk.values.PCollection-">expand</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/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> input)</code> |
| <div class="block">Override this method to specify how this <code>PTransform</code> should be expanded on the given |
| <code>InputT</code>.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html#withAutoSharding--">withAutoSharding</a></span>()</code> |
| <div class="block">If true, enables using a dynamically determined number of shards to write.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html#withBatchSize-long-">withBatchSize</a></span>(long batchSize)</code> |
| <div class="block">Provide a maximum size in number of SQL statement for the batch.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html#withDataSourceConfiguration-org.apache.beam.sdk.io.jdbc.JdbcIO.DataSourceConfiguration-">withDataSourceConfiguration</a></span>(<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.DataSourceConfiguration.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.DataSourceConfiguration</a> config)</code> </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html#withDataSourceProviderFn-org.apache.beam.sdk.transforms.SerializableFunction-">withDataSourceProviderFn</a></span>(<a href="../../../../../../org/apache/beam/sdk/transforms/SerializableFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableFunction</a><java.lang.Void,javax.sql.DataSource> dataSourceProviderFn)</code> </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html#withPreparedStatementSetter-org.apache.beam.sdk.io.jdbc.JdbcIO.PreparedStatementSetter-">withPreparedStatementSetter</a></span>(<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.PreparedStatementSetter.html" title="interface in org.apache.beam.sdk.io.jdbc">JdbcIO.PreparedStatementSetter</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> setter)</code> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html#withRetryConfiguration-org.apache.beam.sdk.io.jdbc.JdbcIO.RetryConfiguration-">withRetryConfiguration</a></span>(<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.RetryConfiguration.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.RetryConfiguration</a> retryConfiguration)</code> |
| <div class="block">When a SQL exception occurs, <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.Write.html" title="class in org.apache.beam.sdk.io.jdbc"><code>JdbcIO.Write</code></a> uses this <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.RetryConfiguration.html" title="class in org.apache.beam.sdk.io.jdbc"><code>JdbcIO.RetryConfiguration</code></a> to |
| exponentially back off and retry the statements based on the <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.RetryConfiguration.html" title="class in org.apache.beam.sdk.io.jdbc"><code>JdbcIO.RetryConfiguration</code></a> |
| mentioned.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html#withRetryStrategy-org.apache.beam.sdk.io.jdbc.JdbcIO.RetryStrategy-">withRetryStrategy</a></span>(<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.RetryStrategy.html" title="interface in org.apache.beam.sdk.io.jdbc">JdbcIO.RetryStrategy</a> retryStrategy)</code> |
| <div class="block">When a SQL exception occurs, <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.Write.html" title="class in org.apache.beam.sdk.io.jdbc"><code>JdbcIO.Write</code></a> uses this <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.RetryStrategy.html" title="interface in org.apache.beam.sdk.io.jdbc"><code>JdbcIO.RetryStrategy</code></a> to determine if it |
| will retry the statements.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html#withStatement-java.lang.String-">withStatement</a></span>(java.lang.String statement)</code> </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html#withStatement-org.apache.beam.sdk.options.ValueProvider-">withStatement</a></span>(<a href="../../../../../../org/apache/beam/sdk/options/ValueProvider.html" title="interface in org.apache.beam.sdk.options">ValueProvider</a><java.lang.String> statement)</code> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html#withTable-java.lang.String-">withTable</a></span>(java.lang.String table)</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.beam.sdk.transforms.PTransform"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.beam.sdk.transforms.<a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html" title="class in org.apache.beam.sdk.transforms">PTransform</a></h3> |
| <code><a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#compose-org.apache.beam.sdk.transforms.SerializableFunction-">compose</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#compose-java.lang.String-org.apache.beam.sdk.transforms.SerializableFunction-">compose</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#getAdditionalInputs--">getAdditionalInputs</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#getDefaultOutputCoder--">getDefaultOutputCoder</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#getDefaultOutputCoder-InputT-">getDefaultOutputCoder</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#getDefaultOutputCoder-InputT-org.apache.beam.sdk.values.PCollection-">getDefaultOutputCoder</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#getKindString--">getKindString</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#getName--">getName</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#getResourceHints--">getResourceHints</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#populateDisplayData-org.apache.beam.sdk.transforms.display.DisplayData.Builder-">populateDisplayData</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#setResourceHints-org.apache.beam.sdk.transforms.resourcehints.ResourceHints-">setResourceHints</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#toString--">toString</a>, <a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#validate-org.apache.beam.sdk.options.PipelineOptions-">validate</a></code></li> |
| </ul> |
| <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, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="WriteVoid--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>WriteVoid</h4> |
| <pre>public WriteVoid()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="withAutoSharding--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withAutoSharding</h4> |
| <pre>public <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> withAutoSharding()</pre> |
| <div class="block">If true, enables using a dynamically determined number of shards to write.</div> |
| </li> |
| </ul> |
| <a name="withDataSourceConfiguration-org.apache.beam.sdk.io.jdbc.JdbcIO.DataSourceConfiguration-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withDataSourceConfiguration</h4> |
| <pre>public <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> withDataSourceConfiguration(<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.DataSourceConfiguration.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.DataSourceConfiguration</a> config)</pre> |
| </li> |
| </ul> |
| <a name="withDataSourceProviderFn-org.apache.beam.sdk.transforms.SerializableFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withDataSourceProviderFn</h4> |
| <pre>public <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> withDataSourceProviderFn(<a href="../../../../../../org/apache/beam/sdk/transforms/SerializableFunction.html" title="interface in org.apache.beam.sdk.transforms">SerializableFunction</a><java.lang.Void,javax.sql.DataSource> dataSourceProviderFn)</pre> |
| </li> |
| </ul> |
| <a name="withStatement-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withStatement</h4> |
| <pre>public <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> withStatement(java.lang.String statement)</pre> |
| </li> |
| </ul> |
| <a name="withStatement-org.apache.beam.sdk.options.ValueProvider-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withStatement</h4> |
| <pre>public <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> withStatement(<a href="../../../../../../org/apache/beam/sdk/options/ValueProvider.html" title="interface in org.apache.beam.sdk.options">ValueProvider</a><java.lang.String> statement)</pre> |
| </li> |
| </ul> |
| <a name="withPreparedStatementSetter-org.apache.beam.sdk.io.jdbc.JdbcIO.PreparedStatementSetter-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withPreparedStatementSetter</h4> |
| <pre>public <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> withPreparedStatementSetter(<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.PreparedStatementSetter.html" title="interface in org.apache.beam.sdk.io.jdbc">JdbcIO.PreparedStatementSetter</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> setter)</pre> |
| </li> |
| </ul> |
| <a name="withBatchSize-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withBatchSize</h4> |
| <pre>public <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> withBatchSize(long batchSize)</pre> |
| <div class="block">Provide a maximum size in number of SQL statement for the batch. Default is 1000.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>batchSize</code> - maximum batch size in number of statements</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="withRetryStrategy-org.apache.beam.sdk.io.jdbc.JdbcIO.RetryStrategy-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withRetryStrategy</h4> |
| <pre>public <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> withRetryStrategy(<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.RetryStrategy.html" title="interface in org.apache.beam.sdk.io.jdbc">JdbcIO.RetryStrategy</a> retryStrategy)</pre> |
| <div class="block">When a SQL exception occurs, <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.Write.html" title="class in org.apache.beam.sdk.io.jdbc"><code>JdbcIO.Write</code></a> uses this <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.RetryStrategy.html" title="interface in org.apache.beam.sdk.io.jdbc"><code>JdbcIO.RetryStrategy</code></a> to determine if it |
| will retry the statements. If <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.RetryStrategy.html#apply-java.sql.SQLException-"><code>JdbcIO.RetryStrategy.apply(SQLException)</code></a> returns <code>true</code>, |
| then <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.Write.html" title="class in org.apache.beam.sdk.io.jdbc"><code>JdbcIO.Write</code></a> retries the statements.</div> |
| </li> |
| </ul> |
| <a name="withRetryConfiguration-org.apache.beam.sdk.io.jdbc.JdbcIO.RetryConfiguration-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withRetryConfiguration</h4> |
| <pre>public <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> withRetryConfiguration(<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.RetryConfiguration.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.RetryConfiguration</a> retryConfiguration)</pre> |
| <div class="block">When a SQL exception occurs, <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.Write.html" title="class in org.apache.beam.sdk.io.jdbc"><code>JdbcIO.Write</code></a> uses this <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.RetryConfiguration.html" title="class in org.apache.beam.sdk.io.jdbc"><code>JdbcIO.RetryConfiguration</code></a> to |
| exponentially back off and retry the statements based on the <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.RetryConfiguration.html" title="class in org.apache.beam.sdk.io.jdbc"><code>JdbcIO.RetryConfiguration</code></a> |
| mentioned. |
| |
| <p>Usage of RetryConfiguration - |
| |
| <pre><code> |
| pipeline.apply(JdbcIO.<T>write()) |
| .withDataSourceConfiguration(...) |
| .withRetryStrategy(...) |
| .withRetryConfiguration(JdbcIO.RetryConfiguration. |
| create(5, Duration.standardSeconds(5), Duration.standardSeconds(1)) |
| |
| </code></pre> |
| |
| maxDuration and initialDuration are Nullable |
| |
| <pre><code> |
| pipeline.apply(JdbcIO.<T>write()) |
| .withDataSourceConfiguration(...) |
| .withRetryStrategy(...) |
| .withRetryConfiguration(JdbcIO.RetryConfiguration. |
| create(5, null, null) |
| |
| </code></pre></div> |
| </li> |
| </ul> |
| <a name="withTable-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withTable</h4> |
| <pre>public <a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="class in org.apache.beam.sdk.io.jdbc">JdbcIO.WriteVoid</a><<a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> withTable(java.lang.String table)</pre> |
| </li> |
| </ul> |
| <a name="expand-org.apache.beam.sdk.values.PCollection-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>expand</h4> |
| <pre>public <a href="../../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><java.lang.Void> expand(<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/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>> input)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#expand-InputT-">PTransform</a></code></span></div> |
| <div class="block">Override this method to specify how this <code>PTransform</code> should be expanded on the given |
| <code>InputT</code>. |
| |
| <p>NOTE: This method should not be called directly. Instead apply the <code>PTransform</code> should |
| be applied to the <code>InputT</code> using the <code>apply</code> method. |
| |
| <p>Composite transforms, which are defined in terms of other transforms, should return the |
| output of one of the composed transforms. Non-composite transforms, which do not apply any |
| transforms internally, should return a new unbound output and register evaluators (via |
| backend-specific registration methods).</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html#expand-InputT-">expand</a></code> in class <code><a href="../../../../../../org/apache/beam/sdk/transforms/PTransform.html" title="class in org.apache.beam.sdk.transforms">PTransform</a><<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/io/jdbc/JdbcIO.WriteVoid.html" title="type parameter in JdbcIO.WriteVoid">T</a>>,<a href="../../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values">PCollection</a><java.lang.Void>></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><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.Write.html" title="class in org.apache.beam.sdk.io.jdbc"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../org/apache/beam/sdk/io/jdbc/JdbcIO.WriteWithResults.html" title="class in org.apache.beam.sdk.io.jdbc"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/apache/beam/sdk/io/jdbc/JdbcIO.WriteVoid.html" target="_top">Frames</a></li> |
| <li><a href="JdbcIO.WriteVoid.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>Nested | </li> |
| <li><a href="#fields.inherited.from.class.org.apache.beam.sdk.transforms.PTransform">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>Field | </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> |