blob: 314bb4d8bbc51c7406afe996f84eb08bce8b0370 [file] [log] [blame]
<!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>ReadChangeStreamPartitionDoFn (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="ReadChangeStreamPartitionDoFn (Apache Beam 2.38.0-SNAPSHOT)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":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/gcp/spanner/changestreams/dofn/PostProcessingMetricsDoFn.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dofn"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../../../index.html?org/apache/beam/sdk/io/gcp/spanner/changestreams/dofn/ReadChangeStreamPartitionDoFn.html" target="_top">Frames</a></li>
<li><a href="ReadChangeStreamPartitionDoFn.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.org.apache.beam.sdk.transforms.DoFn">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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.gcp.spanner.changestreams.dofn</div>
<h2 title="Class ReadChangeStreamPartitionDoFn" class="title">Class ReadChangeStreamPartitionDoFn</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/DoFn.html" title="class in org.apache.beam.sdk.transforms">org.apache.beam.sdk.transforms.DoFn</a>&lt;<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/PartitionMetadata.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">PartitionMetadata</a>,<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/DataChangeRecord.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">DataChangeRecord</a>&gt;</li>
<li>
<ul class="inheritance">
<li>org.apache.beam.sdk.io.gcp.spanner.changestreams.dofn.ReadChangeStreamPartitionDoFn</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>
<hr>
<br>
<pre><a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.UnboundedPerElement.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.UnboundedPerElement</a>
public class <span class="typeNameLabel">ReadChangeStreamPartitionDoFn</span>
extends <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.html" title="class in org.apache.beam.sdk.transforms">DoFn</a>&lt;<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/PartitionMetadata.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">PartitionMetadata</a>,<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/DataChangeRecord.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">DataChangeRecord</a>&gt;
implements java.io.Serializable</pre>
<div class="block">A SDF (Splittable DoFn) class which is responsible for performing a change stream query for a
given partition. A different action will be taken depending on the type of record received from
the query. This component will also reflect the partition state in the partition metadata tables.
<p>The processing of a partition is delegated to the <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/QueryChangeStreamAction.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action"><code>QueryChangeStreamAction</code></a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../../serialized-form.html#org.apache.beam.sdk.io.gcp.spanner.changestreams.dofn.ReadChangeStreamPartitionDoFn">Serialized Form</a></dd>
</dl>
</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>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.beam.sdk.transforms.DoFn">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;org.apache.beam.sdk.transforms.<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.html" title="class in org.apache.beam.sdk.transforms">DoFn</a></h3>
<code><a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.AlwaysFetched.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.AlwaysFetched</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.BoundedPerElement.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.BoundedPerElement</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.BundleFinalizer.html" title="interface in org.apache.beam.sdk.transforms">DoFn.BundleFinalizer</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.Element.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.Element</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.FieldAccess.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.FieldAccess</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.FinishBundle.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.FinishBundle</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.FinishBundleContext.html" title="class in org.apache.beam.sdk.transforms">DoFn.FinishBundleContext</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.GetInitialRestriction.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.GetInitialRestriction</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.GetInitialWatermarkEstimatorState.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.GetInitialWatermarkEstimatorState</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.GetRestrictionCoder.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.GetRestrictionCoder</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.GetSize.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.GetSize</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.GetWatermarkEstimatorStateCoder.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.GetWatermarkEstimatorStateCoder</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.Key.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.Key</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.MultiOutputReceiver.html" title="interface in org.apache.beam.sdk.transforms">DoFn.MultiOutputReceiver</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.NewTracker.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.NewTracker</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.NewWatermarkEstimator.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.NewWatermarkEstimator</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.OnTimer.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.OnTimer</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.OnTimerContext.html" title="class in org.apache.beam.sdk.transforms">DoFn.OnTimerContext</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.OnTimerFamily.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.OnTimerFamily</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.OnWindowExpiration.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.OnWindowExpiration</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.OnWindowExpirationContext.html" title="class in org.apache.beam.sdk.transforms">DoFn.OnWindowExpirationContext</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.OutputReceiver.html" title="interface in org.apache.beam.sdk.transforms">DoFn.OutputReceiver</a>&lt;<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.OutputReceiver.html" title="type parameter in DoFn.OutputReceiver">T</a>&gt;, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.ProcessContext.html" title="class in org.apache.beam.sdk.transforms">DoFn.ProcessContext</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.ProcessContinuation.html" title="class in org.apache.beam.sdk.transforms">DoFn.ProcessContinuation</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.ProcessElement.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.ProcessElement</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.RequiresStableInput.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.RequiresStableInput</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.RequiresTimeSortedInput.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.RequiresTimeSortedInput</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.Restriction.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.Restriction</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.Setup.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.Setup</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.SideInput.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.SideInput</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.SplitRestriction.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.SplitRestriction</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.StartBundle.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.StartBundle</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.StartBundleContext.html" title="class in org.apache.beam.sdk.transforms">DoFn.StartBundleContext</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.StateId.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.StateId</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.Teardown.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.Teardown</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.TimerFamily.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.TimerFamily</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.TimerId.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.TimerId</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.Timestamp.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.Timestamp</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.TruncateRestriction.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.TruncateRestriction</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.UnboundedPerElement.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.UnboundedPerElement</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.WatermarkEstimatorState.html" title="annotation in org.apache.beam.sdk.transforms">DoFn.WatermarkEstimatorState</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.WindowedContext.html" title="class in org.apache.beam.sdk.transforms">DoFn.WindowedContext</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">&nbsp;</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/gcp/spanner/changestreams/dofn/ReadChangeStreamPartitionDoFn.html#ReadChangeStreamPartitionDoFn-org.apache.beam.sdk.io.gcp.spanner.changestreams.dao.DaoFactory-org.apache.beam.sdk.io.gcp.spanner.changestreams.mapper.MapperFactory-org.apache.beam.sdk.io.gcp.spanner.changestreams.action.ActionFactory-org.apache.beam.sdk.io.gcp.spanner.changestreams.ChangeStreamMetrics-">ReadChangeStreamPartitionDoFn</a></span>(<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/DaoFactory.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dao">DaoFactory</a>&nbsp;daoFactory,
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/mapper/MapperFactory.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.mapper">MapperFactory</a>&nbsp;mapperFactory,
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/ActionFactory.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action">ActionFactory</a>&nbsp;actionFactory,
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/ChangeStreamMetrics.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams">ChangeStreamMetrics</a>&nbsp;metrics)</code>
<div class="block">This class needs a <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/DaoFactory.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dao"><code>DaoFactory</code></a> to build DAOs to access the partition metadata tables and
to perform the change streams query.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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="https://static.javadoc.io/joda-time/joda-time/2.10.10/org/joda/time/Instant.html?is-external=true" title="class or interface in org.joda.time">Instant</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dofn/ReadChangeStreamPartitionDoFn.html#getInitialWatermarkEstimatorState-org.apache.beam.sdk.io.gcp.spanner.changestreams.model.PartitionMetadata-">getInitialWatermarkEstimatorState</a></span>(<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/PartitionMetadata.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">PartitionMetadata</a>&nbsp;partition)</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/restriction/TimestampRange.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction">TimestampRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dofn/ReadChangeStreamPartitionDoFn.html#initialRestriction-org.apache.beam.sdk.io.gcp.spanner.changestreams.model.PartitionMetadata-">initialRestriction</a></span>(<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/PartitionMetadata.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">PartitionMetadata</a>&nbsp;partition)</code>
<div class="block">The restriction for a partition will be defined from the start and end timestamp to query the
partition for.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/restriction/ReadChangeStreamPartitionRangeTracker.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction">ReadChangeStreamPartitionRangeTracker</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dofn/ReadChangeStreamPartitionDoFn.html#newTracker-org.apache.beam.sdk.io.gcp.spanner.changestreams.model.PartitionMetadata-org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction.TimestampRange-">newTracker</a></span>(<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/PartitionMetadata.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">PartitionMetadata</a>&nbsp;partition,
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/restriction/TimestampRange.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction">TimestampRange</a>&nbsp;range)</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../../../org/apache/beam/sdk/transforms/splittabledofn/ManualWatermarkEstimator.html" title="interface in org.apache.beam.sdk.transforms.splittabledofn">ManualWatermarkEstimator</a>&lt;<a href="https://static.javadoc.io/joda-time/joda-time/2.10.10/org/joda/time/Instant.html?is-external=true" title="class or interface in org.joda.time">Instant</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dofn/ReadChangeStreamPartitionDoFn.html#newWatermarkEstimator-org.joda.time.Instant-">newWatermarkEstimator</a></span>(<a href="https://static.javadoc.io/joda-time/joda-time/2.10.10/org/joda/time/Instant.html?is-external=true" title="class or interface in org.joda.time">Instant</a>&nbsp;watermarkEstimatorState)</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.ProcessContinuation.html" title="class in org.apache.beam.sdk.transforms">DoFn.ProcessContinuation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dofn/ReadChangeStreamPartitionDoFn.html#processElement-org.apache.beam.sdk.io.gcp.spanner.changestreams.model.PartitionMetadata-org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker-org.apache.beam.sdk.transforms.DoFn.OutputReceiver-org.apache.beam.sdk.transforms.splittabledofn.ManualWatermarkEstimator-org.apache.beam.sdk.transforms.DoFn.BundleFinalizer-">processElement</a></span>(<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/PartitionMetadata.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">PartitionMetadata</a>&nbsp;partition,
<a href="../../../../../../../../../org/apache/beam/sdk/transforms/splittabledofn/RestrictionTracker.html" title="class in org.apache.beam.sdk.transforms.splittabledofn">RestrictionTracker</a>&lt;<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/restriction/TimestampRange.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction">TimestampRange</a>,com.google.cloud.Timestamp&gt;&nbsp;tracker,
<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.OutputReceiver.html" title="interface in org.apache.beam.sdk.transforms">DoFn.OutputReceiver</a>&lt;<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/DataChangeRecord.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">DataChangeRecord</a>&gt;&nbsp;receiver,
<a href="../../../../../../../../../org/apache/beam/sdk/transforms/splittabledofn/ManualWatermarkEstimator.html" title="interface in org.apache.beam.sdk.transforms.splittabledofn">ManualWatermarkEstimator</a>&lt;<a href="https://static.javadoc.io/joda-time/joda-time/2.10.10/org/joda/time/Instant.html?is-external=true" title="class or interface in org.joda.time">Instant</a>&gt;&nbsp;watermarkEstimator,
<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.BundleFinalizer.html" title="interface in org.apache.beam.sdk.transforms">DoFn.BundleFinalizer</a>&nbsp;bundleFinalizer)</code>
<div class="block">Performs a change stream query for a given partition.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dofn/ReadChangeStreamPartitionDoFn.html#setup--">setup</a></span>()</code>
<div class="block">Constructs instances for the <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/PartitionMetadataDao.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dao"><code>PartitionMetadataDao</code></a>, <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/ChangeStreamDao.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dao"><code>ChangeStreamDao</code></a>, <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/mapper/ChangeStreamRecordMapper.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.mapper"><code>ChangeStreamRecordMapper</code></a>, <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/mapper/PartitionMetadataMapper.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.mapper"><code>PartitionMetadataMapper</code></a>, <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/DataChangeRecordAction.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action"><code>DataChangeRecordAction</code></a>,
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/HeartbeatRecordAction.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action"><code>HeartbeatRecordAction</code></a>, <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/ChildPartitionsRecordAction.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action"><code>ChildPartitionsRecordAction</code></a> and <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/QueryChangeStreamAction.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action"><code>QueryChangeStreamAction</code></a>.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.beam.sdk.transforms.DoFn">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.beam.sdk.transforms.<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.html" title="class in org.apache.beam.sdk.transforms">DoFn</a></h3>
<code><a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.html#getAllowedTimestampSkew--">getAllowedTimestampSkew</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.html#getInputTypeDescriptor--">getInputTypeDescriptor</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.html#getOutputTypeDescriptor--">getOutputTypeDescriptor</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.html#populateDisplayData-org.apache.beam.sdk.transforms.display.DisplayData.Builder-">populateDisplayData</a>, <a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.html#prepareForProcessing--">prepareForProcessing</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&nbsp;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">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="ReadChangeStreamPartitionDoFn-org.apache.beam.sdk.io.gcp.spanner.changestreams.dao.DaoFactory-org.apache.beam.sdk.io.gcp.spanner.changestreams.mapper.MapperFactory-org.apache.beam.sdk.io.gcp.spanner.changestreams.action.ActionFactory-org.apache.beam.sdk.io.gcp.spanner.changestreams.ChangeStreamMetrics-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ReadChangeStreamPartitionDoFn</h4>
<pre>public&nbsp;ReadChangeStreamPartitionDoFn(<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/DaoFactory.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dao">DaoFactory</a>&nbsp;daoFactory,
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/mapper/MapperFactory.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.mapper">MapperFactory</a>&nbsp;mapperFactory,
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/ActionFactory.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action">ActionFactory</a>&nbsp;actionFactory,
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/ChangeStreamMetrics.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams">ChangeStreamMetrics</a>&nbsp;metrics)</pre>
<div class="block">This class needs a <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/DaoFactory.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dao"><code>DaoFactory</code></a> to build DAOs to access the partition metadata tables and
to perform the change streams query. It uses mappers to transform database rows into the <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/ChangeStreamRecord.html" title="interface in org.apache.beam.sdk.io.gcp.spanner.changestreams.model"><code>ChangeStreamRecord</code></a> model. It uses the
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/ActionFactory.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action"><code>ActionFactory</code></a> to construct the action dispatchers, which will perform the change stream
query and process each type of record received. It emits metrics for the partition using the
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/ChangeStreamMetrics.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams"><code>ChangeStreamMetrics</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>daoFactory</code> - the <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/DaoFactory.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dao"><code>DaoFactory</code></a> to construct <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/PartitionMetadataDao.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dao"><code>PartitionMetadataDao</code></a>s and <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/ChangeStreamDao.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dao"><code>ChangeStreamDao</code></a>s</dd>
<dd><code>mapperFactory</code> - the <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/mapper/MapperFactory.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.mapper"><code>MapperFactory</code></a> to construct <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/mapper/ChangeStreamRecordMapper.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.mapper"><code>ChangeStreamRecordMapper</code></a>s</dd>
<dd><code>actionFactory</code> - the <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/ActionFactory.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action"><code>ActionFactory</code></a> to construct actions</dd>
<dd><code>metrics</code> - the <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/ChangeStreamMetrics.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams"><code>ChangeStreamMetrics</code></a> to emit partition related metrics</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="getInitialWatermarkEstimatorState-org.apache.beam.sdk.io.gcp.spanner.changestreams.model.PartitionMetadata-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInitialWatermarkEstimatorState</h4>
<pre><a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.GetInitialWatermarkEstimatorState.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.GetInitialWatermarkEstimatorState</a>
public&nbsp;<a href="https://static.javadoc.io/joda-time/joda-time/2.10.10/org/joda/time/Instant.html?is-external=true" title="class or interface in org.joda.time">Instant</a>&nbsp;getInitialWatermarkEstimatorState(<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.Element.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.Element</a>
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/PartitionMetadata.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">PartitionMetadata</a>&nbsp;partition)</pre>
</li>
</ul>
<a name="newWatermarkEstimator-org.joda.time.Instant-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newWatermarkEstimator</h4>
<pre><a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.NewWatermarkEstimator.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.NewWatermarkEstimator</a>
public&nbsp;<a href="../../../../../../../../../org/apache/beam/sdk/transforms/splittabledofn/ManualWatermarkEstimator.html" title="interface in org.apache.beam.sdk.transforms.splittabledofn">ManualWatermarkEstimator</a>&lt;<a href="https://static.javadoc.io/joda-time/joda-time/2.10.10/org/joda/time/Instant.html?is-external=true" title="class or interface in org.joda.time">Instant</a>&gt;&nbsp;newWatermarkEstimator(<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.WatermarkEstimatorState.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.WatermarkEstimatorState</a>
<a href="https://static.javadoc.io/joda-time/joda-time/2.10.10/org/joda/time/Instant.html?is-external=true" title="class or interface in org.joda.time">Instant</a>&nbsp;watermarkEstimatorState)</pre>
</li>
</ul>
<a name="initialRestriction-org.apache.beam.sdk.io.gcp.spanner.changestreams.model.PartitionMetadata-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initialRestriction</h4>
<pre><a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.GetInitialRestriction.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.GetInitialRestriction</a>
public&nbsp;<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/restriction/TimestampRange.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction">TimestampRange</a>&nbsp;initialRestriction(<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.Element.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.Element</a>
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/PartitionMetadata.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">PartitionMetadata</a>&nbsp;partition)</pre>
<div class="block">The restriction for a partition will be defined from the start and end timestamp to query the
partition for. The <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/restriction/TimestampRange.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction"><code>TimestampRange</code></a> restriction represents a closed-open interval, while
the start / end timestamps represent a closed-closed interval, so we add 1 nanosecond to the
end timestamp to convert it to closed-open.
<p>In this function we also update the partition state to <code>PartitionMetadata.State#RUNNING</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>partition</code> - the partition to be queried</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the timestamp range from the partition start timestamp to the partition end timestamp +
1 nanosecond</dd>
</dl>
</li>
</ul>
<a name="newTracker-org.apache.beam.sdk.io.gcp.spanner.changestreams.model.PartitionMetadata-org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction.TimestampRange-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newTracker</h4>
<pre><a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.NewTracker.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.NewTracker</a>
public&nbsp;<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/restriction/ReadChangeStreamPartitionRangeTracker.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction">ReadChangeStreamPartitionRangeTracker</a>&nbsp;newTracker(<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.Element.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.Element</a>
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/PartitionMetadata.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">PartitionMetadata</a>&nbsp;partition,
<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.Restriction.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.Restriction</a>
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/restriction/TimestampRange.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction">TimestampRange</a>&nbsp;range)</pre>
</li>
</ul>
<a name="setup--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setup</h4>
<pre><a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.Setup.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.Setup</a>
public&nbsp;void&nbsp;setup()</pre>
<div class="block">Constructs instances for the <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/PartitionMetadataDao.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dao"><code>PartitionMetadataDao</code></a>, <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/ChangeStreamDao.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dao"><code>ChangeStreamDao</code></a>, <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/mapper/ChangeStreamRecordMapper.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.mapper"><code>ChangeStreamRecordMapper</code></a>, <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/mapper/PartitionMetadataMapper.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.mapper"><code>PartitionMetadataMapper</code></a>, <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/DataChangeRecordAction.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action"><code>DataChangeRecordAction</code></a>,
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/HeartbeatRecordAction.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action"><code>HeartbeatRecordAction</code></a>, <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/ChildPartitionsRecordAction.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action"><code>ChildPartitionsRecordAction</code></a> and <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/QueryChangeStreamAction.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action"><code>QueryChangeStreamAction</code></a>.</div>
</li>
</ul>
<a name="processElement-org.apache.beam.sdk.io.gcp.spanner.changestreams.model.PartitionMetadata-org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker-org.apache.beam.sdk.transforms.DoFn.OutputReceiver-org.apache.beam.sdk.transforms.splittabledofn.ManualWatermarkEstimator-org.apache.beam.sdk.transforms.DoFn.BundleFinalizer-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>processElement</h4>
<pre><a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.ProcessElement.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.ProcessElement</a>
public&nbsp;<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.ProcessContinuation.html" title="class in org.apache.beam.sdk.transforms">DoFn.ProcessContinuation</a>&nbsp;processElement(<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.Element.html" title="annotation in org.apache.beam.sdk.transforms">@DoFn.Element</a>
<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/PartitionMetadata.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">PartitionMetadata</a>&nbsp;partition,
<a href="../../../../../../../../../org/apache/beam/sdk/transforms/splittabledofn/RestrictionTracker.html" title="class in org.apache.beam.sdk.transforms.splittabledofn">RestrictionTracker</a>&lt;<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/restriction/TimestampRange.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction">TimestampRange</a>,com.google.cloud.Timestamp&gt;&nbsp;tracker,
<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.OutputReceiver.html" title="interface in org.apache.beam.sdk.transforms">DoFn.OutputReceiver</a>&lt;<a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/DataChangeRecord.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model">DataChangeRecord</a>&gt;&nbsp;receiver,
<a href="../../../../../../../../../org/apache/beam/sdk/transforms/splittabledofn/ManualWatermarkEstimator.html" title="interface in org.apache.beam.sdk.transforms.splittabledofn">ManualWatermarkEstimator</a>&lt;<a href="https://static.javadoc.io/joda-time/joda-time/2.10.10/org/joda/time/Instant.html?is-external=true" title="class or interface in org.joda.time">Instant</a>&gt;&nbsp;watermarkEstimator,
<a href="../../../../../../../../../org/apache/beam/sdk/transforms/DoFn.BundleFinalizer.html" title="interface in org.apache.beam.sdk.transforms">DoFn.BundleFinalizer</a>&nbsp;bundleFinalizer)</pre>
<div class="block">Performs a change stream query for a given partition. A different action will be taken
depending on the type of record received from the query. This component will also reflect the
partition state in the partition metadata tables.
<p>The processing of a partition is delegated to the <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/action/QueryChangeStreamAction.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.action"><code>QueryChangeStreamAction</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>partition</code> - the partition to be queried</dd>
<dd><code>tracker</code> - an instance of <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/restriction/ReadChangeStreamPartitionRangeTracker.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction"><code>ReadChangeStreamPartitionRangeTracker</code></a></dd>
<dd><code>receiver</code> - a <a href="../../../../../../../../../org/apache/beam/sdk/io/gcp/spanner/changestreams/model/DataChangeRecord.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.model"><code>DataChangeRecord</code></a> <code>OutputReceiver</code></dd>
<dd><code>watermarkEstimator</code> - a <a href="../../../../../../../../../org/apache/beam/sdk/transforms/splittabledofn/ManualWatermarkEstimator.html" title="interface in org.apache.beam.sdk.transforms.splittabledofn"><code>ManualWatermarkEstimator</code></a> of <a href="https://static.javadoc.io/joda-time/joda-time/2.10.10/org/joda/time/Instant.html?is-external=true" title="class or interface in org.joda.time"><code>Instant</code></a></dd>
<dd><code>bundleFinalizer</code> - the bundle finalizer</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <code>ProcessContinuation#stop()</code> if a record timestamp could not be claimed or if
the partition processing has finished</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/gcp/spanner/changestreams/dofn/PostProcessingMetricsDoFn.html" title="class in org.apache.beam.sdk.io.gcp.spanner.changestreams.dofn"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../../../index.html?org/apache/beam/sdk/io/gcp/spanner/changestreams/dofn/ReadChangeStreamPartitionDoFn.html" target="_top">Frames</a></li>
<li><a href="ReadChangeStreamPartitionDoFn.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.org.apache.beam.sdk.transforms.DoFn">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>