blob: c1a30b00906e081784e4313fa23379e2bb59a4f9 [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:16:41 PDT 2017 -->
<title>HiveRegistrationUnitComparator (gobblin-hive-registration 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="HiveRegistrationUnitComparator (gobblin-hive-registration 0.11.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":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="../../gobblin/hive/HiveRegistrationUnit.Column.html" title="class in gobblin.hive"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../gobblin/hive/HiveRegProps.html" title="class in gobblin.hive"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?gobblin/hive/HiveRegistrationUnitComparator.html" target="_top">Frames</a></li>
<li><a href="HiveRegistrationUnitComparator.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>Nested&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.hive</div>
<h2 title="Class HiveRegistrationUnitComparator" class="title">Class HiveRegistrationUnitComparator&lt;T extends HiveRegistrationUnitComparator&lt;?&gt;&gt;</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.hive.HiveRegistrationUnitComparator&lt;T&gt;</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../gobblin/hive/HivePartitionComparator.html" title="class in gobblin.hive">HivePartitionComparator</a>, <a href="../../gobblin/hive/HiveTableComparator.html" title="class in gobblin.hive">HiveTableComparator</a></dd>
</dl>
<hr>
<br>
<pre><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/annotation/Alpha.html?is-external=true" title="class or interface in gobblin.annotation">@Alpha</a>
public class <span class="typeNameLabel">HiveRegistrationUnitComparator&lt;T extends HiveRegistrationUnitComparator&lt;?&gt;&gt;</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></pre>
<div class="block">A comparator between an existing <a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive"><code>HiveRegistrationUnit</code></a> and a new <a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive"><code>HiveRegistrationUnit</code></a>. It is
used to determine whether the existing <a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive"><code>HiveRegistrationUnit</code></a> should be altered to match the new
<a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive"><code>HiveRegistrationUnit</code></a>.
<p>
Since altering a Hive table/partition is relatively expensive, when registering a new table/partition, if the
table/partition exists, it is usually beneficial to check whether the existing table/partition needs to be
altered before altering it.
</p>
<p>
This class does <em>not</em> implement <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util"><code>Comparator</code></a> and does not conform to the contract of
<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util"><code>Comparator</code></a>.
</p>
<p>
Sample usage:
<pre> <code>
HiveRegistrationUnitComparator&lt;?&gt; comparator = new HiveRegistrationUnitComparator&lt;&gt;(existingTable, newTable);
boolean needToUpdate = comparator.compareInputFormat().compareOutputFormat().compareNumBuckets()
.compareIsCompressed().compareRawLocation().result();
</code>}
</pre>
Or to compare all fields:
<pre> <code>
HiveRegistrationUnitComparator&lt;?&gt; comparator = new HiveRegistrationUnitComparator&lt;&gt;(existingTable, newTable);
boolean needToUpdate = comparator.compareAll().result();
</code>}
</pre>
</p></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<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>protected <a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive">HiveRegistrationUnit</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#existingUnit">existingUnit</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive">HiveRegistrationUnit</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#newUnit">newUnit</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#result">result</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/hive/HiveRegistrationUnitComparator.html#HiveRegistrationUnitComparator-gobblin.hive.HiveRegistrationUnit-gobblin.hive.HiveRegistrationUnit-">HiveRegistrationUnitComparator</a></span>(<a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive">HiveRegistrationUnit</a>&nbsp;existingUnit,
<a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive">HiveRegistrationUnit</a>&nbsp;newUnit)</code>&nbsp;</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>protected &lt;E&gt;&nbsp;void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#checkExistingIsSuperset-java.util.Set-java.util.Set-">checkExistingIsSuperset</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;E&gt;&nbsp;existingSet,
<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;E&gt;&nbsp;newSet)</code>
<div class="block">Compare an existing state and a new <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><code>Set</code></a> to ensure that the existing <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><code>Set</code></a> contains all entries in the new
<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><code>Set</code></a>, and update <a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#result"><code>result</code></a> accordingly.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#checkExistingIsSuperstate-gobblin.configuration.State-gobblin.configuration.State-">checkExistingIsSuperstate</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;existingState,
<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;newState)</code>
<div class="block">Compare an existing state and a new <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"><code>State</code></a> to ensure that the existing <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"><code>State</code></a> contains all entries in the new
<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"><code>State</code></a>, and update <a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#result"><code>result</code></a> accordingly.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>protected &lt;E&gt;&nbsp;void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#compare-com.google.common.base.Optional-com.google.common.base.Optional-">compare</a></span>(<a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/base/Optional.html?is-external=true" title="class or interface in com.google.common.base">Optional</a>&lt;E&gt;&nbsp;existingValue,
<a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/base/Optional.html?is-external=true" title="class or interface in com.google.common.base">Optional</a>&lt;E&gt;&nbsp;newValue)</code>
<div class="block">Compare an existing value and a new value, and set <a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#result"><code>result</code></a> accordingly.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#compareAll--">compareAll</a></span>()</code>
<div class="block">Compare all parameters.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#compareBucketCols--">compareBucketCols</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#compareInputFormat--">compareInputFormat</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#compareIsCompressed--">compareIsCompressed</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#compareIsStoredAsSubDirs--">compareIsStoredAsSubDirs</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#compareNumBuckets--">compareNumBuckets</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#compareOutputFormat--">compareOutputFormat</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#compareParameters--">compareParameters</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#compareRawLocation--">compareRawLocation</a></span>()</code>
<div class="block">Compare the raw locations (without schema and authority).</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#result--">result</a></span>()</code>
<div class="block">Get the result of comparison.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&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="existingUnit">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>existingUnit</h4>
<pre>protected final&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive">HiveRegistrationUnit</a> existingUnit</pre>
</li>
</ul>
<a name="newUnit">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newUnit</h4>
<pre>protected final&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive">HiveRegistrationUnit</a> newUnit</pre>
</li>
</ul>
<a name="result">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>result</h4>
<pre>protected&nbsp;boolean result</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="HiveRegistrationUnitComparator-gobblin.hive.HiveRegistrationUnit-gobblin.hive.HiveRegistrationUnit-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>HiveRegistrationUnitComparator</h4>
<pre>public&nbsp;HiveRegistrationUnitComparator(<a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive">HiveRegistrationUnit</a>&nbsp;existingUnit,
<a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive">HiveRegistrationUnit</a>&nbsp;newUnit)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="compareRawLocation--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareRawLocation</h4>
<pre>public&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a>&nbsp;compareRawLocation()</pre>
<div class="block">Compare the raw locations (without schema and authority).
<p>
This is useful since existing tables/partitions in the Hive metastore have absolute paths in the location
property, but the new table/partition may have a raw path.
</p></div>
</li>
</ul>
<a name="compareInputFormat--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareInputFormat</h4>
<pre>public&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a>&nbsp;compareInputFormat()</pre>
</li>
</ul>
<a name="compareOutputFormat--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareOutputFormat</h4>
<pre>public&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a>&nbsp;compareOutputFormat()</pre>
</li>
</ul>
<a name="compareIsCompressed--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareIsCompressed</h4>
<pre>public&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a>&nbsp;compareIsCompressed()</pre>
</li>
</ul>
<a name="compareNumBuckets--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareNumBuckets</h4>
<pre>public&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a>&nbsp;compareNumBuckets()</pre>
</li>
</ul>
<a name="compareBucketCols--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareBucketCols</h4>
<pre>public&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a>&nbsp;compareBucketCols()</pre>
</li>
</ul>
<a name="compareIsStoredAsSubDirs--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareIsStoredAsSubDirs</h4>
<pre>public&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a>&nbsp;compareIsStoredAsSubDirs()</pre>
</li>
</ul>
<a name="compareParameters--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareParameters</h4>
<pre>public&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a>&nbsp;compareParameters()</pre>
</li>
</ul>
<a name="compareAll--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareAll</h4>
<pre>public&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="type parameter in HiveRegistrationUnitComparator">T</a>&nbsp;compareAll()</pre>
<div class="block">Compare all parameters.</div>
</li>
</ul>
<a name="compare-com.google.common.base.Optional-com.google.common.base.Optional-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compare</h4>
<pre>protected&nbsp;&lt;E&gt;&nbsp;void&nbsp;compare(<a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/base/Optional.html?is-external=true" title="class or interface in com.google.common.base">Optional</a>&lt;E&gt;&nbsp;existingValue,
<a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/base/Optional.html?is-external=true" title="class or interface in com.google.common.base">Optional</a>&lt;E&gt;&nbsp;newValue)</pre>
<div class="block">Compare an existing value and a new value, and set <a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#result"><code>result</code></a> accordingly.
<p>
This method returns false if newValue is absent (i.e., the existing value doesn't need to be updated).
This is because when adding a table/partition to Hive, Hive automatically sets default values for
some of the unspecified parameters. Therefore existingValue being present and newValue being absent
doesn't mean the existing value needs to be updated.
</p></div>
</li>
</ul>
<a name="checkExistingIsSuperstate-gobblin.configuration.State-gobblin.configuration.State-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkExistingIsSuperstate</h4>
<pre>protected&nbsp;void&nbsp;checkExistingIsSuperstate(<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;existingState,
<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;newState)</pre>
<div class="block">Compare an existing state and a new <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"><code>State</code></a> to ensure that the existing <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"><code>State</code></a> contains all entries in the new
<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"><code>State</code></a>, and update <a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#result"><code>result</code></a> accordingly.</div>
</li>
</ul>
<a name="checkExistingIsSuperset-java.util.Set-java.util.Set-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkExistingIsSuperset</h4>
<pre>protected&nbsp;&lt;E&gt;&nbsp;void&nbsp;checkExistingIsSuperset(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;E&gt;&nbsp;existingSet,
<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;E&gt;&nbsp;newSet)</pre>
<div class="block">Compare an existing state and a new <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><code>Set</code></a> to ensure that the existing <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><code>Set</code></a> contains all entries in the new
<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><code>Set</code></a>, and update <a href="../../gobblin/hive/HiveRegistrationUnitComparator.html#result"><code>result</code></a> accordingly.</div>
</li>
</ul>
<a name="result--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>result</h4>
<pre>public&nbsp;boolean&nbsp;result()</pre>
<div class="block">Get the result of comparison.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the existing <a href="../../gobblin/hive/HiveRegistrationUnit.html" title="class in gobblin.hive"><code>HiveRegistrationUnit</code></a> needs to be altered, false otherwise.</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="../../gobblin/hive/HiveRegistrationUnit.Column.html" title="class in gobblin.hive"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../gobblin/hive/HiveRegProps.html" title="class in gobblin.hive"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?gobblin/hive/HiveRegistrationUnitComparator.html" target="_top">Frames</a></li>
<li><a href="HiveRegistrationUnitComparator.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>Nested&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>