blob: 9b3ed75fd6f01d7c2a96891daee663b00fa9d590 [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 (1.8.0_40) on Thu Jul 20 13:18:48 PDT 2017 -->
<title>PartitionLevelWatermarker (gobblin-data-management 0.11.0 API)</title>
<meta name="date" content="2017-07-20">
<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="PartitionLevelWatermarker (gobblin-data-management 0.11.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":9,"i8":10,"i9":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static 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="../../../../../../gobblin/data/management/conversion/hive/watermarker/MultiKeyValueLongWatermark.html" title="class in gobblin.data.management.conversion.hive.watermarker"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.Factory.html" title="class in gobblin.data.management.conversion.hive.watermarker"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html" target="_top">Frames</a></li>
<li><a href="PartitionLevelWatermarker.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.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&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><a href="#field.detail">Field</a>&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">gobblin.data.management.conversion.hive.watermarker</div>
<h2 title="Class PartitionLevelWatermarker" class="title">Class PartitionLevelWatermarker</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>gobblin.data.management.conversion.hive.watermarker.PartitionLevelWatermarker</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html" title="interface in gobblin.data.management.conversion.hive.watermarker">HiveSourceWatermarker</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">PartitionLevelWatermarker</span>
extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html" title="interface in gobblin.data.management.conversion.hive.watermarker">HiveSourceWatermarker</a></pre>
<div class="block">A <a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html" title="interface in gobblin.data.management.conversion.hive.watermarker"><code>HiveSourceWatermarker</code></a> that maintains watermarks for each <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a>. For every <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Table</code></a> it creates
a NoOp <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/source/workunit/WorkUnit.html?is-external=true" title="class or interface in gobblin.source.workunit"><code>WorkUnit</code></a> that stores watermarks for all its <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a>s. The Noop workunit is identified by the
property <a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#IS_WATERMARK_WORKUNIT_KEY"><code>IS_WATERMARK_WORKUNIT_KEY</code></a> being set to true.
<p>
The watermark used is the update time of a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a> (for partitioned tables)
or update time of a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Table</code></a> (for non partitioned tables).
</p>
<p>
The watermark is stored as a <a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/MultiKeyValueLongWatermark.html" title="class in gobblin.data.management.conversion.hive.watermarker"><code>MultiKeyValueLongWatermark</code></a> which is an extension to <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> that implements
gobblin's <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/source/extractor/Watermark.html?is-external=true" title="class or interface in gobblin.source.extractor"><code>Watermark</code></a>. The key is a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a> identifier and value is the watermark for this <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a>
</p>
<p>
Watermarks for all <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a>s modified after <a href="../../../../../../gobblin/data/management/conversion/hive/source/HiveSource.html#HIVE_SOURCE_MAXIMUM_LOOKBACK_DAYS_KEY"><code>HiveSource.HIVE_SOURCE_MAXIMUM_LOOKBACK_DAYS_KEY</code></a> are retained.
The default is <a href="../../../../../../gobblin/data/management/conversion/hive/source/HiveSource.html#DEFAULT_HIVE_SOURCE_MAXIMUM_LOOKBACK_DAYS"><code>HiveSource.DEFAULT_HIVE_SOURCE_MAXIMUM_LOOKBACK_DAYS</code></a>. If a previous watermark is not found for
as partition, it returns 0 as the watermark
</p>
<p>
Watermark workunits are not created for non partitioned tables
</p></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">&nbsp;</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&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.Factory.html" title="class in gobblin.data.management.conversion.hive.watermarker">PartitionLevelWatermarker.Factory</a></span></code>
<div class="block">Factory to create a <a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html" title="class in gobblin.data.management.conversion.hive.watermarker"><code>PartitionLevelWatermarker</code></a></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">&nbsp;</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 <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#IS_WATERMARK_WORKUNIT_KEY">IS_WATERMARK_WORKUNIT_KEY</a></span></code>&nbsp;</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">&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="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#PartitionLevelWatermarker-gobblin.configuration.State-">PartitionLevelWatermarker</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/State.html?is-external=true" title="class or interface in gobblin.configuration">State</a>&nbsp;state)</code>
<div class="block">Reads and initialized the previous high watermarks from <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/SourceState.html?is-external=true#getPreviousDatasetStatesByUrns--" title="class or interface in gobblin.configuration"><code>SourceState.getPreviousDatasetStatesByUrns()</code></a></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="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></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="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-core/gobblin/source/extractor/extract/LongWatermark.html?is-external=true" title="class or interface in gobblin.source.extractor.extract">LongWatermark</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#getExpectedHighWatermark-org.apache.hadoop.hive.ql.metadata.Partition-long-long-">getExpectedHighWatermark</a></span>(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Partition</a>&nbsp;partition,
long&nbsp;tableProcessTime,
long&nbsp;partitionProcessTime)</code>
<div class="block">Get the expected high watermark for this partition
Get the expected high watermark for a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a>.This API is used by the <a href="../../../../../../gobblin/data/management/conversion/hive/source/HiveSource.html" title="class in gobblin.data.management.conversion.hive.source"><code>HiveSource</code></a> for Partitioned hive tables</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-core/gobblin/source/extractor/extract/LongWatermark.html?is-external=true" title="class or interface in gobblin.source.extractor.extract">LongWatermark</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#getExpectedHighWatermark-org.apache.hadoop.hive.ql.metadata.Table-long-">getExpectedHighWatermark</a></span>(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Table</a>&nbsp;table,
long&nbsp;tableProcessTime)</code>
<div class="block">Get the expected high watermark for a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Table</code></a>.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-core/gobblin/source/extractor/extract/LongWatermark.html?is-external=true" title="class or interface in gobblin.source.extractor.extract">LongWatermark</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#getPreviousHighWatermark-org.apache.hadoop.hive.ql.metadata.Partition-">getPreviousHighWatermark</a></span>(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Partition</a>&nbsp;partition)</code>
<div class="block">Return the previous high watermark if found in previous state.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-core/gobblin/source/extractor/extract/LongWatermark.html?is-external=true" title="class or interface in gobblin.source.extractor.extract">LongWatermark</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#getPreviousHighWatermark-org.apache.hadoop.hive.ql.metadata.Table-">getPreviousHighWatermark</a></span>(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Table</a>&nbsp;table)</code>
<div class="block">Delegates to <a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/TableLevelWatermarker.html#getPreviousHighWatermark-org.apache.hadoop.hive.ql.metadata.Table-"><code>TableLevelWatermarker.getPreviousHighWatermark(Table)</code></a>
Get high watermark for a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Table</code></a>.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#onGetWorkunitsEnd-java.util.List-">onGetWorkunitsEnd</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/source/workunit/WorkUnit.html?is-external=true" title="class or interface in gobblin.source.workunit">WorkUnit</a>&gt;&nbsp;workunits)</code>
<div class="block">Adds watermark workunits to <code>workunits</code>.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#onPartitionProcessBegin-org.apache.hadoop.hive.ql.metadata.Partition-long-long-">onPartitionProcessBegin</a></span>(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Partition</a>&nbsp;partition,
long&nbsp;partitionProcessTime,
long&nbsp;partitionUpdateTime)</code>
<div class="block">Adds an expected high watermark for this <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#onTableProcessBegin-org.apache.hadoop.hive.ql.metadata.Table-long-">onTableProcessBegin</a></span>(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Table</a>&nbsp;table,
long&nbsp;tableProcessTime)</code>
<div class="block">Initializes the expected high watermarks for a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Table</code></a>
A callback method that <a href="../../../../../../gobblin/data/management/conversion/hive/source/HiveSource.html" title="class in gobblin.data.management.conversion.hive.source"><code>HiveSource</code></a> executes when workunit creation for a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Table</code></a> is started.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#partitionKey-org.apache.hadoop.hive.ql.metadata.Partition-">partitionKey</a></span>(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Partition</a>&nbsp;partition)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#setActualHighWatermark-gobblin.configuration.WorkUnitState-">setActualHighWatermark</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration">WorkUnitState</a>&nbsp;wus)</code>
<div class="block">Sets the actual high watermark by reading the expected high watermark
Sets the actual high watermark after data has been published by the <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/publisher/DataPublisher.html?is-external=true" title="class or interface in gobblin.publisher"><code>DataPublisher</code></a></div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#tableKey-org.apache.hadoop.hive.ql.metadata.Table-">tableKey</a></span>(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Table</a>&nbsp;table)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></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="IS_WATERMARK_WORKUNIT_KEY">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>IS_WATERMARK_WORKUNIT_KEY</h4>
<pre>public static final&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> IS_WATERMARK_WORKUNIT_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#gobblin.data.management.conversion.hive.watermarker.PartitionLevelWatermarker.IS_WATERMARK_WORKUNIT_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="PartitionLevelWatermarker-gobblin.configuration.State-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>PartitionLevelWatermarker</h4>
<pre>public&nbsp;PartitionLevelWatermarker(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/State.html?is-external=true" title="class or interface in gobblin.configuration">State</a>&nbsp;state)</pre>
<div class="block">Reads and initialized the previous high watermarks from <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/SourceState.html?is-external=true#getPreviousDatasetStatesByUrns--" title="class or interface in gobblin.configuration"><code>SourceState.getPreviousDatasetStatesByUrns()</code></a></div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="onTableProcessBegin-org.apache.hadoop.hive.ql.metadata.Table-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onTableProcessBegin</h4>
<pre>public&nbsp;void&nbsp;onTableProcessBegin(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Table</a>&nbsp;table,
long&nbsp;tableProcessTime)</pre>
<div class="block">Initializes the expected high watermarks for a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Table</code></a>
A callback method that <a href="../../../../../../gobblin/data/management/conversion/hive/source/HiveSource.html" title="class in gobblin.data.management.conversion.hive.source"><code>HiveSource</code></a> executes when workunit creation for a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Table</code></a> is started.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#onTableProcessBegin-org.apache.hadoop.hive.ql.metadata.Table-long-">onTableProcessBegin</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html" title="interface in gobblin.data.management.conversion.hive.watermarker">HiveSourceWatermarker</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>table</code> - for which <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/source/workunit/WorkUnit.html?is-external=true" title="class or interface in gobblin.source.workunit"><code>WorkUnit</code></a>s will be created</dd>
<dd><code>tableProcessTime</code> - time at which this callback was called</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#onTableProcessBegin-org.apache.hadoop.hive.ql.metadata.Table-long-"><code>HiveSourceWatermarker.onTableProcessBegin(org.apache.hadoop.hive.ql.metadata.Table, long)</code></a></dd>
</dl>
</li>
</ul>
<a name="onPartitionProcessBegin-org.apache.hadoop.hive.ql.metadata.Partition-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onPartitionProcessBegin</h4>
<pre>public&nbsp;void&nbsp;onPartitionProcessBegin(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Partition</a>&nbsp;partition,
long&nbsp;partitionProcessTime,
long&nbsp;partitionUpdateTime)</pre>
<div class="block">Adds an expected high watermark for this <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a>. Also removes any watermarks for partitions being replaced.
Replace partitions are read using partition parameter <a href="../../../../../../gobblin/data/management/conversion/hive/converter/AbstractAvroToOrcConverter.html#REPLACED_PARTITIONS_HIVE_METASTORE_KEY"><code>AbstractAvroToOrcConverter.REPLACED_PARTITIONS_HIVE_METASTORE_KEY</code></a>.
Uses the <code>partitionUpdateTime</code> as the high watermark for this <code>partition</code>
A callback method that <a href="../../../../../../gobblin/data/management/conversion/hive/source/HiveSource.html" title="class in gobblin.data.management.conversion.hive.source"><code>HiveSource</code></a> executes when workunit creation for a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a> is started.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#onPartitionProcessBegin-org.apache.hadoop.hive.ql.metadata.Partition-long-long-">onPartitionProcessBegin</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html" title="interface in gobblin.data.management.conversion.hive.watermarker">HiveSourceWatermarker</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>partition</code> - for which <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/source/workunit/WorkUnit.html?is-external=true" title="class or interface in gobblin.source.workunit"><code>WorkUnit</code></a> will be created</dd>
<dd><code>partitionProcessTime</code> - time at which this callback was executed</dd>
<dd><code>partitionUpdateTime</code> - time at which this partition was updated</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#onPartitionProcessBegin-org.apache.hadoop.hive.ql.metadata.Partition-long-long-"><code>HiveSourceWatermarker.onPartitionProcessBegin(org.apache.hadoop.hive.ql.metadata.Partition, long, long)</code></a></dd>
</dl>
</li>
</ul>
<a name="getPreviousHighWatermark-org.apache.hadoop.hive.ql.metadata.Table-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPreviousHighWatermark</h4>
<pre>public&nbsp;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-core/gobblin/source/extractor/extract/LongWatermark.html?is-external=true" title="class or interface in gobblin.source.extractor.extract">LongWatermark</a>&nbsp;getPreviousHighWatermark(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Table</a>&nbsp;table)</pre>
<div class="block">Delegates to <a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/TableLevelWatermarker.html#getPreviousHighWatermark-org.apache.hadoop.hive.ql.metadata.Table-"><code>TableLevelWatermarker.getPreviousHighWatermark(Table)</code></a>
Get high watermark for a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Table</code></a>. This API is used by the <a href="../../../../../../gobblin/data/management/conversion/hive/source/HiveSource.html" title="class in gobblin.data.management.conversion.hive.source"><code>HiveSource</code></a> for Non Partitioned hive tables</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#getPreviousHighWatermark-org.apache.hadoop.hive.ql.metadata.Table-">getPreviousHighWatermark</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html" title="interface in gobblin.data.management.conversion.hive.watermarker">HiveSourceWatermarker</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>table</code> - for which a high watermark needs to be returned</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#getPreviousHighWatermark-org.apache.hadoop.hive.ql.metadata.Table-"><code>HiveSourceWatermarker.getPreviousHighWatermark(org.apache.hadoop.hive.ql.metadata.Table)</code></a></dd>
</dl>
</li>
</ul>
<a name="getPreviousHighWatermark-org.apache.hadoop.hive.ql.metadata.Partition-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPreviousHighWatermark</h4>
<pre>public&nbsp;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-core/gobblin/source/extractor/extract/LongWatermark.html?is-external=true" title="class or interface in gobblin.source.extractor.extract">LongWatermark</a>&nbsp;getPreviousHighWatermark(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Partition</a>&nbsp;partition)</pre>
<div class="block">Return the previous high watermark if found in previous state. Else returns 0
Get high watermark for a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a>. This API is used by the <a href="../../../../../../gobblin/data/management/conversion/hive/source/HiveSource.html" title="class in gobblin.data.management.conversion.hive.source"><code>HiveSource</code></a> for Partitioned hive tables</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#getPreviousHighWatermark-org.apache.hadoop.hive.ql.metadata.Partition-">getPreviousHighWatermark</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html" title="interface in gobblin.data.management.conversion.hive.watermarker">HiveSourceWatermarker</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>partition</code> - for which a high watermark needs to be returned</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#getPreviousHighWatermark-org.apache.hadoop.hive.ql.metadata.Partition-"><code>HiveSourceWatermarker.getPreviousHighWatermark(org.apache.hadoop.hive.ql.metadata.Partition)</code></a></dd>
</dl>
</li>
</ul>
<a name="onGetWorkunitsEnd-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onGetWorkunitsEnd</h4>
<pre>public&nbsp;void&nbsp;onGetWorkunitsEnd(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/source/workunit/WorkUnit.html?is-external=true" title="class or interface in gobblin.source.workunit">WorkUnit</a>&gt;&nbsp;workunits)</pre>
<div class="block">Adds watermark workunits to <code>workunits</code>. A watermark workunit is a dummy workunit that is skipped by extractor/converter/writer.
It stores a map of watermarks. The map has one entry per partition with partition watermark as value.
<ul>
<li>Add one NoOp watermark workunit for each <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Table</code></a>
<li>The workunit has an identifier property <a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html#IS_WATERMARK_WORKUNIT_KEY"><code>IS_WATERMARK_WORKUNIT_KEY</code></a> set to true.
<li>Watermarks for all <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a>s that belong to this <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Table</code></a> are added as <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a>
<li>A maximum of <code>#maxPartitionsPerDataset</code> are persisted. Watermarks are ordered by most recently modified <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a>s
</ul>
A callback method executed before a list of workunits is returned by the
<a href="../../../../../../gobblin/data/management/conversion/hive/source/HiveSource.html#getWorkunits-gobblin.configuration.SourceState-"><code>HiveSource.getWorkunits(gobblin.configuration.SourceState)</code></a> to the caller</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#onGetWorkunitsEnd-java.util.List-">onGetWorkunitsEnd</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html" title="interface in gobblin.data.management.conversion.hive.watermarker">HiveSourceWatermarker</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>workunits</code> - constructed by <a href="../../../../../../gobblin/data/management/conversion/hive/source/HiveSource.html#getWorkunits-gobblin.configuration.SourceState-"><code>HiveSource.getWorkunits(gobblin.configuration.SourceState)</code></a></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#onGetWorkunitsEnd-java.util.List-"><code>HiveSourceWatermarker.onGetWorkunitsEnd(java.util.List)</code></a></dd>
</dl>
</li>
</ul>
<a name="getExpectedHighWatermark-org.apache.hadoop.hive.ql.metadata.Table-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getExpectedHighWatermark</h4>
<pre>public&nbsp;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-core/gobblin/source/extractor/extract/LongWatermark.html?is-external=true" title="class or interface in gobblin.source.extractor.extract">LongWatermark</a>&nbsp;getExpectedHighWatermark(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Table</a>&nbsp;table,
long&nbsp;tableProcessTime)</pre>
<div class="block">Get the expected high watermark for a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Table</code></a>. This API is used by the <a href="../../../../../../gobblin/data/management/conversion/hive/source/HiveSource.html" title="class in gobblin.data.management.conversion.hive.source"><code>HiveSource</code></a> to get Expected
high watermark for Non Partitioned hive tables
Uses the <code>table</code>'s modified time as watermark. The modified time is read using
<a href="../../../../../../gobblin/data/management/conversion/hive/provider/HiveUnitUpdateProvider.html#getUpdateTime-org.apache.hadoop.hive.ql.metadata.Table-"><code>HiveUnitUpdateProvider.getUpdateTime(Table)</code></a></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#getExpectedHighWatermark-org.apache.hadoop.hive.ql.metadata.Table-long-">getExpectedHighWatermark</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html" title="interface in gobblin.data.management.conversion.hive.watermarker">HiveSourceWatermarker</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>table</code> - for which a high watermark needs to be returned</dd>
<dd><code>tableProcessTime</code> - time at which workunit creation started for this table</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../gobblin/data/management/conversion/hive/provider/UpdateNotFoundException.html" title="class in gobblin.data.management.conversion.hive.provider">UpdateNotFoundException</a></code> - if there was an error fetching update time using <a href="../../../../../../gobblin/data/management/conversion/hive/provider/HiveUnitUpdateProvider.html#getUpdateTime-org.apache.hadoop.hive.ql.metadata.Table-"><code>HiveUnitUpdateProvider.getUpdateTime(Table)</code></a></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#getExpectedHighWatermark-org.apache.hadoop.hive.ql.metadata.Table-long-"><code>HiveSourceWatermarker.getExpectedHighWatermark(org.apache.hadoop.hive.ql.metadata.Table, long)</code></a></dd>
</dl>
</li>
</ul>
<a name="getExpectedHighWatermark-org.apache.hadoop.hive.ql.metadata.Partition-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getExpectedHighWatermark</h4>
<pre>public&nbsp;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-core/gobblin/source/extractor/extract/LongWatermark.html?is-external=true" title="class or interface in gobblin.source.extractor.extract">LongWatermark</a>&nbsp;getExpectedHighWatermark(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Partition</a>&nbsp;partition,
long&nbsp;tableProcessTime,
long&nbsp;partitionProcessTime)</pre>
<div class="block">Get the expected high watermark for this partition
Get the expected high watermark for a <a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata"><code>Partition</code></a>.This API is used by the <a href="../../../../../../gobblin/data/management/conversion/hive/source/HiveSource.html" title="class in gobblin.data.management.conversion.hive.source"><code>HiveSource</code></a> for Partitioned hive tables</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#getExpectedHighWatermark-org.apache.hadoop.hive.ql.metadata.Partition-long-long-">getExpectedHighWatermark</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html" title="interface in gobblin.data.management.conversion.hive.watermarker">HiveSourceWatermarker</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>partition</code> - for which a high watermark needs to be returned</dd>
<dd><code>tableProcessTime</code> - time at which workunit creation started for table this partition belongs to</dd>
<dd><code>partitionProcessTime</code> - time at which workunit creation started for this partition</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#getExpectedHighWatermark-org.apache.hadoop.hive.ql.metadata.Partition-long-long-"><code>HiveSourceWatermarker.getExpectedHighWatermark(org.apache.hadoop.hive.ql.metadata.Partition, long, long)</code></a></dd>
</dl>
</li>
</ul>
<a name="setActualHighWatermark-gobblin.configuration.WorkUnitState-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setActualHighWatermark</h4>
<pre>public&nbsp;void&nbsp;setActualHighWatermark(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration">WorkUnitState</a>&nbsp;wus)</pre>
<div class="block">Sets the actual high watermark by reading the expected high watermark
Sets the actual high watermark after data has been published by the <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/publisher/DataPublisher.html?is-external=true" title="class or interface in gobblin.publisher"><code>DataPublisher</code></a></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#setActualHighWatermark-gobblin.configuration.WorkUnitState-">setActualHighWatermark</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html" title="interface in gobblin.data.management.conversion.hive.watermarker">HiveSourceWatermarker</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>wus</code> - to set the watermark</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/HiveSourceWatermarker.html#setActualHighWatermark-gobblin.configuration.WorkUnitState-"><code>HiveSourceWatermarker.setActualHighWatermark(gobblin.configuration.WorkUnitState)</code></a></dd>
</dl>
</li>
</ul>
<a name="tableKey-org.apache.hadoop.hive.ql.metadata.Table-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tableKey</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;tableKey(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Table</a>&nbsp;table)</pre>
</li>
</ul>
<a name="partitionKey-org.apache.hadoop.hive.ql.metadata.Partition-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>partitionKey</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;partitionKey(<a href="https://hive.apache.org/javadocs/r1.0.1/api/org/apache/hadoop/hive/ql/metadata/Partition.html?is-external=true" title="class or interface in org.apache.hadoop.hive.ql.metadata">Partition</a>&nbsp;partition)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/MultiKeyValueLongWatermark.html" title="class in gobblin.data.management.conversion.hive.watermarker"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.Factory.html" title="class in gobblin.data.management.conversion.hive.watermarker"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?gobblin/data/management/conversion/hive/watermarker/PartitionLevelWatermarker.html" target="_top">Frames</a></li>
<li><a href="PartitionLevelWatermarker.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.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&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><a href="#field.detail">Field</a>&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>