blob: 98f20a15455ff24ca65fb21c567dfd3edef4278d [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>HiveRegister (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="HiveRegister (gobblin-hive-registration 0.11.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":6,"i2":6,"i3":6,"i4":10,"i5":6,"i6":10,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":9,"i13":9,"i14":9,"i15":6,"i16":10,"i17":6,"i18":10,"i19":10,"i20":10,"i21":10,"i22":6};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract 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/HivePartitionComparator.html" title="class in gobblin.hive"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../gobblin/hive/HiveRegisterStep.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/HiveRegister.html" target="_top">Frames</a></li>
<li><a href="HiveRegister.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 HiveRegister" class="title">Class HiveRegister</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.HiveRegister</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="https://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../gobblin/hive/metastore/HiveMetaStoreBasedRegister.html" title="class in gobblin.hive.metastore">HiveMetaStoreBasedRegister</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 abstract class <span class="typeNameLabel">HiveRegister</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="https://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></pre>
<div class="block">A class for registering Hive tables and partitions.</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>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/hive/HiveRegister.html#DEFAULT_HIVE_PARTITION_COMPARATOR_TYPE">DEFAULT_HIVE_PARTITION_COMPARATOR_TYPE</a></span></code>&nbsp;</td>
</tr>
<tr 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/hive/HiveRegister.html#DEFAULT_HIVE_REGISTER_TYPE">DEFAULT_HIVE_REGISTER_TYPE</a></span></code>&nbsp;</td>
</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/hive/HiveRegister.html#DEFAULT_HIVE_TABLE_COMPARATOR_TYPE">DEFAULT_HIVE_TABLE_COMPARATOR_TYPE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/util/concurrent/ListeningExecutorService.html?is-external=true" title="class or interface in com.google.common.util.concurrent">ListeningExecutorService</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#executor">executor</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<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>,<a href="https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Void.html?is-external=true" title="class or interface in java.lang">Void</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#futures">futures</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected 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/hive/HiveRegister.html#HIVE_DB_EXTENSION">HIVE_DB_EXTENSION</a></span></code>&nbsp;</td>
</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/hive/HiveRegister.html#HIVE_PARTITION_COMPARATOR_TYPE">HIVE_PARTITION_COMPARATOR_TYPE</a></span></code>&nbsp;</td>
</tr>
<tr 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/hive/HiveRegister.html#HIVE_REGISTER_TYPE">HIVE_REGISTER_TYPE</a></span></code>&nbsp;</td>
</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/hive/HiveRegister.html#HIVE_TABLE_COMPARATOR_TYPE">HIVE_TABLE_COMPARATOR_TYPE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <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;<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>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#hiveDbRootDir">hiveDbRootDir</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../gobblin/hive/HiveRegProps.html" title="class in gobblin.hive">HiveRegProps</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#props">props</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="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#HiveRegister-gobblin.configuration.State-">HiveRegister</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>&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="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="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract 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>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#addOrAlterPartition-gobblin.hive.HiveTable-gobblin.hive.HivePartition-">addOrAlterPartition</a></span>(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;table,
<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;partition)</code>
<div class="block">Add a partition to a table if not exists, or alter a partition if exists.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#addPartitionIfNotExists-gobblin.hive.HiveTable-gobblin.hive.HivePartition-">addPartitionIfNotExists</a></span>(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;table,
<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;partition)</code>
<div class="block">Add a Hive partition to a table if not exists.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#alterPartition-gobblin.hive.HiveTable-gobblin.hive.HivePartition-">alterPartition</a></span>(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;table,
<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;partition)</code>
<div class="block">Alter the given <a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive"><code>HivePartition</code></a>.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#alterTable-gobblin.hive.HiveTable-">alterTable</a></span>(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;table)</code>
<div class="block">Alter the given <a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive"><code>HiveTable</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/hive/HiveRegister.html#close--">close</a></span>()</code>
<div class="block">Wait till all registration requested submitted via <a href="../../gobblin/hive/HiveRegister.html#register-gobblin.hive.spec.HiveSpec-"><code>register(HiveSpec)</code></a> to finish.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#createDbIfNotExists-java.lang.String-">createDbIfNotExists</a></span>(<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;dbName)</code>
<div class="block">Create a Hive database if not exists.</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/hive/HiveRegister.html#createOrAlterTable-gobblin.hive.HiveTable-">createOrAlterTable</a></span>(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;table)</code>
<div class="block">Create a table if not exists, or alter a table if exists.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#createTableIfNotExists-gobblin.hive.HiveTable-">createTableIfNotExists</a></span>(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;table)</code>
<div class="block">Create a Hive table if not exists.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#dropPartitionIfExists-java.lang.String-java.lang.String-java.util.List-java.util.List-">dropPartitionIfExists</a></span>(<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;dbName,
<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;tableName,
<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="../../gobblin/hive/HiveRegistrationUnit.Column.html" title="class in gobblin.hive">HiveRegistrationUnit.Column</a>&gt;&nbsp;partitionKeys,
<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="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;partitionValues)</code>
<div class="block">Drop a partition if exists.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#dropTableIfExists-java.lang.String-java.lang.String-">dropTableIfExists</a></span>(<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;dbName,
<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;tableName)</code>
<div class="block">Drop a table if exists.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#existsPartition-java.lang.String-java.lang.String-java.util.List-java.util.List-">existsPartition</a></span>(<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;dbName,
<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;tableName,
<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="../../gobblin/hive/HiveRegistrationUnit.Column.html" title="class in gobblin.hive">HiveRegistrationUnit.Column</a>&gt;&nbsp;partitionKeys,
<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="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;partitionValues)</code>
<div class="block">Determines whether a Hive partition exists.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#existsTable-java.lang.String-java.lang.String-">existsTable</a></span>(<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;dbName,
<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;tableName)</code>
<div class="block">Determines whether a Hive table exists.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive">HiveRegister</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#get-gobblin.configuration.State-">get</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;props)</code>
<div class="block">Get an instance of <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive"><code>HiveRegister</code></a>.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive">HiveRegister</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#get-gobblin.configuration.State-com.google.common.base.Optional-">get</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;props,
<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;<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>&gt;&nbsp;metastoreURI)</code>
<div class="block">Get an instance of <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive"><code>HiveRegister</code></a>.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive">HiveRegister</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#get-java.lang.String-gobblin.configuration.State-com.google.common.base.Optional-">get</a></span>(<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;hiveRegisterType,
<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;props,
<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;<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>&gt;&nbsp;metastoreURI)</code>
<div class="block">Get an instance of <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive"><code>HiveRegister</code></a>.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>abstract <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;<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#getPartition-java.lang.String-java.lang.String-java.util.List-java.util.List-">getPartition</a></span>(<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;dbName,
<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;tableName,
<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="../../gobblin/hive/HiveRegistrationUnit.Column.html" title="class in gobblin.hive">HiveRegistrationUnit.Column</a>&gt;&nbsp;partitionKeys,
<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="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;partitionValues)</code>
<div class="block">Get a <a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive"><code>HivePartition</code></a> using the given db name, table name, partition keys and partition values.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>protected <a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="class in gobblin.hive">HiveRegistrationUnitComparator</a>&lt;?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#getPartitionComparator-gobblin.hive.HivePartition-gobblin.hive.HivePartition-">getPartitionComparator</a></span>(<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;existingPartition,
<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;newPartition)</code>&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>abstract <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;<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#getTable-java.lang.String-java.lang.String-">getTable</a></span>(<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;dbName,
<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;tableName)</code>
<div class="block">Get a <a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive"><code>HiveTable</code></a> using the given db name and table name.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>protected <a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="class in gobblin.hive">HiveRegistrationUnitComparator</a>&lt;?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#getTableComparator-gobblin.hive.HiveTable-gobblin.hive.HiveTable-">getTableComparator</a></span>(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;existingTable,
<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;newTable)</code>&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#needToUpdatePartition-gobblin.hive.HivePartition-gobblin.hive.HivePartition-">needToUpdatePartition</a></span>(<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;existingPartition,
<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;newPartition)</code>&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#needToUpdateTable-gobblin.hive.HiveTable-gobblin.hive.HiveTable-">needToUpdateTable</a></span>(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;existingTable,
<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;newTable)</code>&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent">ListenableFuture</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Void.html?is-external=true" title="class or interface in java.lang">Void</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#register-gobblin.hive.spec.HiveSpec-">register</a></span>(<a href="../../gobblin/hive/spec/HiveSpec.html" title="interface in gobblin.hive.spec">HiveSpec</a>&nbsp;spec)</code>
<div class="block">Register a table or partition given a <a href="../../gobblin/hive/spec/HiveSpec.html" title="interface in gobblin.hive.spec"><code>HiveSpec</code></a>.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>protected abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../gobblin/hive/HiveRegister.html#registerPath-gobblin.hive.spec.HiveSpec-">registerPath</a></span>(<a href="../../gobblin/hive/spec/HiveSpec.html" title="interface in gobblin.hive.spec">HiveSpec</a>&nbsp;spec)</code>
<div class="block">Register the path specified in the given <a href="../../gobblin/hive/spec/HiveSpec.html" title="interface in gobblin.hive.spec"><code>HiveSpec</code></a>.</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="HIVE_REGISTER_TYPE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HIVE_REGISTER_TYPE</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> HIVE_REGISTER_TYPE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#gobblin.hive.HiveRegister.HIVE_REGISTER_TYPE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="DEFAULT_HIVE_REGISTER_TYPE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_HIVE_REGISTER_TYPE</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> DEFAULT_HIVE_REGISTER_TYPE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#gobblin.hive.HiveRegister.DEFAULT_HIVE_REGISTER_TYPE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="HIVE_TABLE_COMPARATOR_TYPE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HIVE_TABLE_COMPARATOR_TYPE</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> HIVE_TABLE_COMPARATOR_TYPE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#gobblin.hive.HiveRegister.HIVE_TABLE_COMPARATOR_TYPE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="DEFAULT_HIVE_TABLE_COMPARATOR_TYPE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_HIVE_TABLE_COMPARATOR_TYPE</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> DEFAULT_HIVE_TABLE_COMPARATOR_TYPE</pre>
</li>
</ul>
<a name="HIVE_PARTITION_COMPARATOR_TYPE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HIVE_PARTITION_COMPARATOR_TYPE</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> HIVE_PARTITION_COMPARATOR_TYPE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#gobblin.hive.HiveRegister.HIVE_PARTITION_COMPARATOR_TYPE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="DEFAULT_HIVE_PARTITION_COMPARATOR_TYPE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_HIVE_PARTITION_COMPARATOR_TYPE</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> DEFAULT_HIVE_PARTITION_COMPARATOR_TYPE</pre>
</li>
</ul>
<a name="HIVE_DB_EXTENSION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HIVE_DB_EXTENSION</h4>
<pre>protected 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> HIVE_DB_EXTENSION</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#gobblin.hive.HiveRegister.HIVE_DB_EXTENSION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="props">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>props</h4>
<pre>protected final&nbsp;<a href="../../gobblin/hive/HiveRegProps.html" title="class in gobblin.hive">HiveRegProps</a> props</pre>
</li>
</ul>
<a name="hiveDbRootDir">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hiveDbRootDir</h4>
<pre>protected final&nbsp;<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;<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>&gt; hiveDbRootDir</pre>
</li>
</ul>
<a name="executor">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>executor</h4>
<pre>protected final&nbsp;<a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/util/concurrent/ListeningExecutorService.html?is-external=true" title="class or interface in com.google.common.util.concurrent">ListeningExecutorService</a> executor</pre>
</li>
</ul>
<a name="futures">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>futures</h4>
<pre>protected final&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<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>,<a href="https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Void.html?is-external=true" title="class or interface in java.lang">Void</a>&gt;&gt; futures</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="HiveRegister-gobblin.configuration.State-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>HiveRegister</h4>
<pre>protected&nbsp;HiveRegister(<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>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="register-gobblin.hive.spec.HiveSpec-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>register</h4>
<pre>public&nbsp;<a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent">ListenableFuture</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Void.html?is-external=true" title="class or interface in java.lang">Void</a>&gt;&nbsp;register(<a href="../../gobblin/hive/spec/HiveSpec.html" title="interface in gobblin.hive.spec">HiveSpec</a>&nbsp;spec)</pre>
<div class="block">Register a table or partition given a <a href="../../gobblin/hive/spec/HiveSpec.html" title="interface in gobblin.hive.spec"><code>HiveSpec</code></a>. This method is asynchronous and returns immediately.
This methods evaluates the <a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/base/Predicate.html?is-external=true" title="class or interface in com.google.common.base"><code>Predicate</code></a>s and executes the <a href="../../gobblin/hive/spec/activity/Activity.html" title="interface in gobblin.hive.spec.activity"><code>Activity</code></a>s specified in the
<a href="../../gobblin/hive/spec/HiveSpec.html" title="interface in gobblin.hive.spec"><code>HiveSpec</code></a>. The actual registration happens in <a href="../../gobblin/hive/HiveRegister.html#registerPath-gobblin.hive.spec.HiveSpec-"><code>registerPath(HiveSpec)</code></a>, which subclasses
should implement.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent"><code>ListenableFuture</code></a> for the process of registering the given <a href="../../gobblin/hive/spec/HiveSpec.html" title="interface in gobblin.hive.spec"><code>HiveSpec</code></a>.</dd>
</dl>
</li>
</ul>
<a name="registerPath-gobblin.hive.spec.HiveSpec-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>registerPath</h4>
<pre>protected abstract&nbsp;void&nbsp;registerPath(<a href="../../gobblin/hive/spec/HiveSpec.html" title="interface in gobblin.hive.spec">HiveSpec</a>&nbsp;spec)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Register the path specified in the given <a href="../../gobblin/hive/spec/HiveSpec.html" title="interface in gobblin.hive.spec"><code>HiveSpec</code></a>.
<p>
This method should not evaluate <a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/base/Predicate.html?is-external=true" title="class or interface in com.google.common.base"><code>Predicate</code></a>s or execute <a href="../../gobblin/hive/spec/activity/Activity.html" title="interface in gobblin.hive.spec.activity"><code>Activity</code></a>s associated with
the <a href="../../gobblin/hive/spec/HiveSpec.html" title="interface in gobblin.hive.spec"><code>HiveSpec</code></a>, since these are done in <a href="../../gobblin/hive/HiveRegister.html#register-gobblin.hive.spec.HiveSpec-"><code>register(HiveSpec)</code></a>.
</p></div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="createDbIfNotExists-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createDbIfNotExists</h4>
<pre>public abstract&nbsp;boolean&nbsp;createDbIfNotExists(<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;dbName)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Create a Hive database if not exists.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dbName</code> - the name of the database to be created.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the db is successfully created; false if the db already exists.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="createTableIfNotExists-gobblin.hive.HiveTable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTableIfNotExists</h4>
<pre>public abstract&nbsp;boolean&nbsp;createTableIfNotExists(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;table)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Create a Hive table if not exists.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>table</code> - a <a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive"><code>HiveTable</code></a> to be created.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the table is successfully created; false if the table already exists.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="addPartitionIfNotExists-gobblin.hive.HiveTable-gobblin.hive.HivePartition-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addPartitionIfNotExists</h4>
<pre>public abstract&nbsp;boolean&nbsp;addPartitionIfNotExists(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;table,
<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;partition)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Add a Hive partition to a table if not exists.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>table</code> - the <a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive"><code>HiveTable</code></a> to which the partition should be added.</dd>
<dd><code>partition</code> - a <a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive"><code>HivePartition</code></a> to be added.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the partition is successfully added; false if the partition already exists.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="existsTable-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>existsTable</h4>
<pre>public abstract&nbsp;boolean&nbsp;existsTable(<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;dbName,
<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;tableName)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Determines whether a Hive table exists.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dbName</code> - the database name</dd>
<dd><code>tableName</code> - the table name</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the table exists, false otherwise.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="existsPartition-java.lang.String-java.lang.String-java.util.List-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>existsPartition</h4>
<pre>public abstract&nbsp;boolean&nbsp;existsPartition(<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;dbName,
<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;tableName,
<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="../../gobblin/hive/HiveRegistrationUnit.Column.html" title="class in gobblin.hive">HiveRegistrationUnit.Column</a>&gt;&nbsp;partitionKeys,
<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="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;partitionValues)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Determines whether a Hive partition exists.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dbName</code> - the database name</dd>
<dd><code>tableName</code> - the table name</dd>
<dd><code>partitionKeys</code> - a list of <code>Columns</code> representing the key of the partition</dd>
<dd><code>partitionValues</code> - a list of Strings representing the value of the partition</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the partition exists, false otherwise.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="dropTableIfExists-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dropTableIfExists</h4>
<pre>public abstract&nbsp;void&nbsp;dropTableIfExists(<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;dbName,
<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;tableName)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Drop a table if exists.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dbName</code> - the database name</dd>
<dd><code>tableName</code> - the table name</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="dropPartitionIfExists-java.lang.String-java.lang.String-java.util.List-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dropPartitionIfExists</h4>
<pre>public abstract&nbsp;void&nbsp;dropPartitionIfExists(<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;dbName,
<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;tableName,
<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="../../gobblin/hive/HiveRegistrationUnit.Column.html" title="class in gobblin.hive">HiveRegistrationUnit.Column</a>&gt;&nbsp;partitionKeys,
<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="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;partitionValues)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Drop a partition if exists.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dbName</code> - the database name</dd>
<dd><code>tableName</code> - the table name</dd>
<dd><code>partitionKeys</code> - a list of <code>Columns</code> representing the key of the partition</dd>
<dd><code>partitionValues</code> - a list of Strings representing the value of the partition</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="getTable-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTable</h4>
<pre>public abstract&nbsp;<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;<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&gt;&nbsp;getTable(<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;dbName,
<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;tableName)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Get a <a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive"><code>HiveTable</code></a> using the given db name and table name.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dbName</code> - the database name</dd>
<dd><code>tableName</code> - the table name</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an <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"><code>Optional</code></a> of <a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive"><code>HiveTable</code></a> if the table exists, otherwise <a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/base/Optional.html?is-external=true#absent--" title="class or interface in com.google.common.base"><code>Optional.absent()</code></a>.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="getPartition-java.lang.String-java.lang.String-java.util.List-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPartition</h4>
<pre>public abstract&nbsp;<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;<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&gt;&nbsp;getPartition(<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;dbName,
<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;tableName,
<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="../../gobblin/hive/HiveRegistrationUnit.Column.html" title="class in gobblin.hive">HiveRegistrationUnit.Column</a>&gt;&nbsp;partitionKeys,
<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="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;partitionValues)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Get a <a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive"><code>HivePartition</code></a> using the given db name, table name, partition keys and partition values.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dbName</code> - the database name</dd>
<dd><code>tableName</code> - the table name</dd>
<dd><code>partitionKeys</code> - a list of <code>Columns</code> representing the key of the partition</dd>
<dd><code>partitionValues</code> - a list of Strings representing the value of the partition</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an <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"><code>Optional</code></a> of <a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive"><code>HivePartition</code></a> if the partition exists, otherwise <a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/base/Optional.html?is-external=true#absent--" title="class or interface in com.google.common.base"><code>Optional.absent()</code></a>.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="alterTable-gobblin.hive.HiveTable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>alterTable</h4>
<pre>public abstract&nbsp;void&nbsp;alterTable(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;table)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Alter the given <a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive"><code>HiveTable</code></a>. An Exception should be thrown if the table does not exist.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>table</code> - a <a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive"><code>HiveTable</code></a> to which the existing table should be updated.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="alterPartition-gobblin.hive.HiveTable-gobblin.hive.HivePartition-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>alterPartition</h4>
<pre>public abstract&nbsp;void&nbsp;alterPartition(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;table,
<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;partition)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Alter the given <a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive"><code>HivePartition</code></a>. An Exception should be thrown if the partition does not exist.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>table</code> - the <a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive"><code>HiveTable</code></a> to which the partition belongs.</dd>
<dd><code>partition</code> - a <a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive"><code>HivePartition</code></a> to which the existing partition should be updated.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="createOrAlterTable-gobblin.hive.HiveTable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createOrAlterTable</h4>
<pre>public&nbsp;void&nbsp;createOrAlterTable(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;table)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Create a table if not exists, or alter a table if exists.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>table</code> - a <a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive"><code>HiveTable</code></a> to be created or altered</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="addOrAlterPartition-gobblin.hive.HiveTable-gobblin.hive.HivePartition-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addOrAlterPartition</h4>
<pre>public&nbsp;void&nbsp;addOrAlterPartition(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;table,
<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;partition)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Add a partition to a table if not exists, or alter a partition if exists.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>table</code> - the <a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive"><code>HiveTable</code></a> to which the partition belongs.</dd>
<dd><code>partition</code> - a <a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive"><code>HivePartition</code></a> to which the existing partition should be updated.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="getTableComparator-gobblin.hive.HiveTable-gobblin.hive.HiveTable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTableComparator</h4>
<pre>protected&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="class in gobblin.hive">HiveRegistrationUnitComparator</a>&lt;?&gt;&nbsp;getTableComparator(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;existingTable,
<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;newTable)</pre>
</li>
</ul>
<a name="needToUpdateTable-gobblin.hive.HiveTable-gobblin.hive.HiveTable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>needToUpdateTable</h4>
<pre>protected&nbsp;boolean&nbsp;needToUpdateTable(<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;existingTable,
<a href="../../gobblin/hive/HiveTable.html" title="class in gobblin.hive">HiveTable</a>&nbsp;newTable)</pre>
</li>
</ul>
<a name="getPartitionComparator-gobblin.hive.HivePartition-gobblin.hive.HivePartition-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPartitionComparator</h4>
<pre>protected&nbsp;<a href="../../gobblin/hive/HiveRegistrationUnitComparator.html" title="class in gobblin.hive">HiveRegistrationUnitComparator</a>&lt;?&gt;&nbsp;getPartitionComparator(<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;existingPartition,
<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;newPartition)</pre>
</li>
</ul>
<a name="needToUpdatePartition-gobblin.hive.HivePartition-gobblin.hive.HivePartition-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>needToUpdatePartition</h4>
<pre>protected&nbsp;boolean&nbsp;needToUpdatePartition(<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;existingPartition,
<a href="../../gobblin/hive/HivePartition.html" title="class in gobblin.hive">HivePartition</a>&nbsp;newPartition)</pre>
</li>
</ul>
<a name="close--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>public&nbsp;void&nbsp;close()
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Wait till all registration requested submitted via <a href="../../gobblin/hive/HiveRegister.html#register-gobblin.hive.spec.HiveSpec-"><code>register(HiveSpec)</code></a> to finish.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true#close--" title="class or interface in java.io">close</a></code>&nbsp;in interface&nbsp;<code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true#close--" title="class or interface in java.lang">close</a></code>&nbsp;in interface&nbsp;<code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if any registration failed or was interrupted.</dd>
</dl>
</li>
</ul>
<a name="get-gobblin.configuration.State-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public static&nbsp;<a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive">HiveRegister</a>&nbsp;get(<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;props)</pre>
<div class="block">Get an instance of <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive"><code>HiveRegister</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>props</code> - A <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> object. To get a specific implementation of <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive"><code>HiveRegister</code></a>,
specify property <a href="../../gobblin/hive/HiveRegister.html#HIVE_REGISTER_TYPE"><code>HIVE_REGISTER_TYPE</code></a> as the class name. Otherwise, <a href="../../gobblin/hive/HiveRegister.html#DEFAULT_HIVE_REGISTER_TYPE"><code>DEFAULT_HIVE_REGISTER_TYPE</code></a>
will be returned. This <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> object is also used to instantiate the <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive"><code>HiveRegister</code></a> object.</dd>
</dl>
</li>
</ul>
<a name="get-gobblin.configuration.State-com.google.common.base.Optional-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public static&nbsp;<a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive">HiveRegister</a>&nbsp;get(<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;props,
<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;<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>&gt;&nbsp;metastoreURI)</pre>
<div class="block">Get an instance of <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive"><code>HiveRegister</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>props</code> - A <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> object. To get a specific implementation of <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive"><code>HiveRegister</code></a>,
specify property <a href="../../gobblin/hive/HiveRegister.html#HIVE_REGISTER_TYPE"><code>HIVE_REGISTER_TYPE</code></a> as the class name. Otherwise, <a href="../../gobblin/hive/HiveRegister.html#DEFAULT_HIVE_REGISTER_TYPE"><code>DEFAULT_HIVE_REGISTER_TYPE</code></a>
will be returned. This <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> object is also used to instantiate the <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive"><code>HiveRegister</code></a> object.</dd>
</dl>
</li>
</ul>
<a name="get-java.lang.String-gobblin.configuration.State-com.google.common.base.Optional-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>get</h4>
<pre>public static&nbsp;<a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive">HiveRegister</a>&nbsp;get(<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;hiveRegisterType,
<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;props,
<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;<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>&gt;&nbsp;metastoreURI)</pre>
<div class="block">Get an instance of <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive"><code>HiveRegister</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>hiveRegisterType</code> - The name of a class that implements <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive"><code>HiveRegister</code></a>.</dd>
<dd><code>props</code> - A <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> object used to instantiate the <a href="../../gobblin/hive/HiveRegister.html" title="class in gobblin.hive"><code>HiveRegister</code></a> object.</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/HivePartitionComparator.html" title="class in gobblin.hive"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../gobblin/hive/HiveRegisterStep.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/HiveRegister.html" target="_top">Frames</a></li>
<li><a href="HiveRegister.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>