blob: 65c71a63442950e86259fad72f6ab3f7a066f84c [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:18 PDT 2017 -->
<title>InstrumentedConverter (gobblin-core-base 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="InstrumentedConverter (gobblin-core-base 0.11.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":6,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10};
var tabs = {65535:["t0","All 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>Prev&nbsp;Class</li>
<li><a href="../../../gobblin/instrumented/converter/InstrumentedConverterDecorator.html" title="class in gobblin.instrumented.converter"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?gobblin/instrumented/converter/InstrumentedConverter.html" target="_top">Frames</a></li>
<li><a href="InstrumentedConverter.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.instrumented.converter</div>
<h2 title="Class InstrumentedConverter" class="title">Class InstrumentedConverter&lt;SI,SO,DI,DO&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><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true" title="class or interface in gobblin.converter">gobblin.converter.Converter</a>&lt;SI,SO,DI,DO&gt;</li>
<li>
<ul class="inheritance">
<li>gobblin.instrumented.converter.InstrumentedConverter&lt;SI,SO,DI,DO&gt;</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented">Instrumentable</a>, <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/records/RecordStreamProcessor.html?is-external=true" title="class or interface in gobblin.records">RecordStreamProcessor</a>&lt;SI,SO,DI,DO&gt;, <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/util/FinalState.html?is-external=true" title="class or interface in gobblin.util">FinalState</a>, <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>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">InstrumentedConverter&lt;SI,SO,DI,DO&gt;</span>
extends <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true" title="class or interface in gobblin.converter">Converter</a>&lt;SI,SO,DI,DO&gt;</pre>
<div class="block">Instrumented converter that automatically captures certain metrics.
Subclasses should implement convertRecordImpl instead of convertRecord.
See <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true" title="class or interface in gobblin.converter"><code>Converter</code></a>.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.gobblin.records.RecordStreamProcessor">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;gobblin.records.<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/records/RecordStreamProcessor.html?is-external=true" title="class or interface in gobblin.records">RecordStreamProcessor</a></h3>
<code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/records/RecordStreamProcessor.StreamProcessingException.html?is-external=true" title="class or interface in gobblin.records">RecordStreamProcessor.StreamProcessingException</a></code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/io/Closer.html?is-external=true" title="class or interface in com.google.common.io">Closer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#closer">closer</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/instrumented/converter/InstrumentedConverter.html#InstrumentedConverter--">InstrumentedConverter</a></span>()</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="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/instrumented/converter/InstrumentedConverter.html#afterConvert-java.lang.Iterable-long-">afterConvert</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DO</a>&gt;&nbsp;iterable,
long&nbsp;startTimeNanos)</code>
<div class="block">Called after conversion.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#beforeConvert-SO-DI-gobblin.configuration.WorkUnitState-">beforeConvert</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SO</a>&nbsp;outputSchema,
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DI</a>&nbsp;inputRecord,
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration">WorkUnitState</a>&nbsp;workUnit)</code>
<div class="block">Called before conversion.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#close--">close</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html" title="type parameter in InstrumentedConverter">DO</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#convertRecord-SO-DI-gobblin.configuration.WorkUnitState-">convertRecord</a></span>(<a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html" title="type parameter in InstrumentedConverter">SO</a>&nbsp;outputSchema,
<a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html" title="type parameter in InstrumentedConverter">DI</a>&nbsp;inputRecord,
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration">WorkUnitState</a>&nbsp;workUnit)</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DO</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#convertRecordImpl-SO-DI-gobblin.configuration.WorkUnitState-">convertRecordImpl</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SO</a>&nbsp;outputSchema,
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DI</a>&nbsp;inputRecord,
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration">WorkUnitState</a>&nbsp;workUnit)</code>
<div class="block">Subclasses should implement this method instead of convertRecord.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics">Tag</a>&lt;?&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#generateTags-gobblin.configuration.State-">generateTags</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/State.html?is-external=true" title="class or interface in gobblin.configuration">State</a>&nbsp;state)</code>
<div class="block">Default with no additional tags</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics">MetricContext</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#getMetricContext--">getMetricContext</a></span>()</code>
<div class="block">Get <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> containing metrics related to this Instrumentable.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true" title="class or interface in gobblin.converter">Converter</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SI</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SO</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DI</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DO</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#init-gobblin.configuration.WorkUnitState-">init</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration">WorkUnitState</a>&nbsp;workUnit)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>protected <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true" title="class or interface in gobblin.converter">Converter</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SI</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SO</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DI</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DO</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#init-gobblin.configuration.WorkUnitState-java.lang.Class-">init</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration">WorkUnitState</a>&nbsp;workUnit,
<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;classTag)</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#isInstrumentationEnabled--">isInstrumentationEnabled</a></span>()</code>
<div class="block">Returns true if instrumentation is activated.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#onException-java.lang.Exception-">onException</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a>&nbsp;exception)</code>
<div class="block">Called when converter throws an exception.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#onIterableNext-DO-">onIterableNext</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DO</a>&nbsp;next)</code>
<div class="block">Called every time next() method in iterable is called.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#regenerateMetrics--">regenerateMetrics</a></span>()</code>
<div class="block">Generates metrics for the instrumentation of this class.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#switchMetricContext-java.util.List-">switchMetricContext</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics">Tag</a>&lt;?&gt;&gt;&nbsp;tags)</code>
<div class="block">Generate a new <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> replacing old <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics"><code>Tag</code></a> with input
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics"><code>Tag</code></a> (only tags with the same keys will be replaced),
and recreate all metrics in this new context.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html#switchMetricContext-gobblin.metrics.MetricContext-">switchMetricContext</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics">MetricContext</a>&nbsp;context)</code>
<div class="block">Switches the existing <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> with the supplied metric context and regenerates
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Metric.html?is-external=true" title="class or interface in gobblin.metrics"><code>Metric</code></a>.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.gobblin.converter.Converter">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;gobblin.converter.<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true" title="class or interface in gobblin.converter">Converter</a></h3>
<code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true#convertSchema-SI-gobblin.configuration.WorkUnitState-" title="class or interface in gobblin.converter">convertSchema</a>, <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true#getFinalState--" title="class or interface in gobblin.converter">getFinalState</a>, <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true#getInitializer-gobblin.configuration.State-gobblin.source.workunit.WorkUnitStream-int-int-" title="class or interface in gobblin.converter">getInitializer</a>, <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true#getMessageHandler--" title="class or interface in gobblin.converter">getMessageHandler</a>, <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true#processStream-gobblin.records.RecordStreamWithMetadata-gobblin.configuration.WorkUnitState-" title="class or interface in gobblin.converter">processStream</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<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="closer">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>closer</h4>
<pre>protected final&nbsp;<a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/io/Closer.html?is-external=true" title="class or interface in com.google.common.io">Closer</a> closer</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="InstrumentedConverter--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>InstrumentedConverter</h4>
<pre>public&nbsp;InstrumentedConverter()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="convertRecord-java.lang.Object-java.lang.Object-gobblin.configuration.WorkUnitState-">
<!-- -->
</a><a name="convertRecord-SO-DI-gobblin.configuration.WorkUnitState-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>convertRecord</h4>
<pre>public final&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html" title="type parameter in InstrumentedConverter">DO</a>&gt;&nbsp;convertRecord(<a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html" title="type parameter in InstrumentedConverter">SO</a>&nbsp;outputSchema,
<a href="../../../gobblin/instrumented/converter/InstrumentedConverter.html" title="type parameter in InstrumentedConverter">DI</a>&nbsp;inputRecord,
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration">WorkUnitState</a>&nbsp;workUnit)
throws <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/DataConversionException.html?is-external=true" title="class or interface in gobblin.converter">DataConversionException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/DataConversionException.html?is-external=true" title="class or interface in gobblin.converter">DataConversionException</a></code></dd>
</dl>
</li>
</ul>
<a name="init-gobblin.configuration.WorkUnitState-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public&nbsp;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true" title="class or interface in gobblin.converter">Converter</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SI</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SO</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DI</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DO</a>&gt;&nbsp;init(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration">WorkUnitState</a>&nbsp;workUnit)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true#init-gobblin.configuration.WorkUnitState-" title="class or interface in gobblin.converter">init</a></code>&nbsp;in class&nbsp;<code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true" title="class or interface in gobblin.converter">Converter</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SI</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SO</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DI</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DO</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="init-gobblin.configuration.WorkUnitState-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>protected&nbsp;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true" title="class or interface in gobblin.converter">Converter</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SI</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SO</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DI</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DO</a>&gt;&nbsp;init(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration">WorkUnitState</a>&nbsp;workUnit,
<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;classTag)</pre>
</li>
</ul>
<a name="switchMetricContext-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>switchMetricContext</h4>
<pre>public&nbsp;void&nbsp;switchMetricContext(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics">Tag</a>&lt;?&gt;&gt;&nbsp;tags)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html#switchMetricContext-java.util.List-">Instrumentable</a></code></span></div>
<div class="block">Generate a new <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> replacing old <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics"><code>Tag</code></a> with input
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics"><code>Tag</code></a> (only tags with the same keys will be replaced),
and recreate all metrics in this new context.
<p>
This method is useful when the state of the <a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented"><code>Instrumentable</code></a> changes and the user
wants that state change to be reflected in the tags of the instrumentation.
</p>
<p>
Notice that this method creates a brand new <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> and <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Metric.html?is-external=true" title="class or interface in gobblin.metrics"><code>Metric</code></a>
every time it is called,
with the associated processing and memory overhead. Use sparingly only for state changes that must be visible in
emitted metrics.
</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../gobblin/instrumented/Instrumentable.html#switchMetricContext-java.util.List-">switchMetricContext</a></code>&nbsp;in interface&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented">Instrumentable</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>tags</code> - additional <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics"><code>Tag</code></a>.</dd>
</dl>
</li>
</ul>
<a name="switchMetricContext-gobblin.metrics.MetricContext-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>switchMetricContext</h4>
<pre>public&nbsp;void&nbsp;switchMetricContext(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics">MetricContext</a>&nbsp;context)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html#switchMetricContext-gobblin.metrics.MetricContext-">Instrumentable</a></code></span></div>
<div class="block">Switches the existing <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> with the supplied metric context and regenerates
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Metric.html?is-external=true" title="class or interface in gobblin.metrics"><code>Metric</code></a>.
<p>
This method is useful when the state of the <a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented"><code>Instrumentable</code></a> changes and the user
wants that state change to be reflected in the set of <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics"><code>Tag</code></a> of the instrumentation.
</p>
<p>
This method is an alternative to <a href="../../../gobblin/instrumented/Instrumentable.html#switchMetricContext-java.util.List-"><code>Instrumentable.switchMetricContext(List)</code></a> when metric context switching is done
often between a small set of contexts. The subclass should keep a list of previously generated contexts as a cache,
and call this method to simply switch between the different contexts,
avoiding the overhead of generating a brand new context every time a metric context switch is required.
</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../gobblin/instrumented/Instrumentable.html#switchMetricContext-gobblin.metrics.MetricContext-">switchMetricContext</a></code>&nbsp;in interface&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented">Instrumentable</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>context</code> - new <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a>.</dd>
</dl>
</li>
</ul>
<a name="regenerateMetrics--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>regenerateMetrics</h4>
<pre>protected&nbsp;void&nbsp;regenerateMetrics()</pre>
<div class="block">Generates metrics for the instrumentation of this class.</div>
</li>
</ul>
<a name="generateTags-gobblin.configuration.State-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>generateTags</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics">Tag</a>&lt;?&gt;&gt;&nbsp;generateTags(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/State.html?is-external=true" title="class or interface in gobblin.configuration">State</a>&nbsp;state)</pre>
<div class="block">Default with no additional tags</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../gobblin/instrumented/Instrumentable.html#generateTags-gobblin.configuration.State-">generateTags</a></code>&nbsp;in interface&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented">Instrumentable</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>List of tags to add to <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a>.</dd>
</dl>
</li>
</ul>
<a name="isInstrumentationEnabled--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInstrumentationEnabled</h4>
<pre>public&nbsp;boolean&nbsp;isInstrumentationEnabled()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html#isInstrumentationEnabled--">Instrumentable</a></code></span></div>
<div class="block">Returns true if instrumentation is activated.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../gobblin/instrumented/Instrumentable.html#isInstrumentationEnabled--">isInstrumentationEnabled</a></code>&nbsp;in interface&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented">Instrumentable</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if instrumentation is enabled, false otherwise.</dd>
</dl>
</li>
</ul>
<a name="beforeConvert-java.lang.Object-java.lang.Object-gobblin.configuration.WorkUnitState-">
<!-- -->
</a><a name="beforeConvert-SO-DI-gobblin.configuration.WorkUnitState-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>beforeConvert</h4>
<pre>public&nbsp;void&nbsp;beforeConvert(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SO</a>&nbsp;outputSchema,
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DI</a>&nbsp;inputRecord,
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration">WorkUnitState</a>&nbsp;workUnit)</pre>
<div class="block">Called before conversion.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>outputSchema</code> - output schema of the <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true#convertSchema-SI-gobblin.configuration.WorkUnitState-" title="class or interface in gobblin.converter"><code>Converter.convertSchema(Object, WorkUnitState)</code></a> method</dd>
<dd><code>inputRecord</code> - an input data record</dd>
<dd><code>workUnit</code> - a <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration"><code>WorkUnitState</code></a> instance</dd>
</dl>
</li>
</ul>
<a name="afterConvert-java.lang.Iterable-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>afterConvert</h4>
<pre>public&nbsp;void&nbsp;afterConvert(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DO</a>&gt;&nbsp;iterable,
long&nbsp;startTimeNanos)</pre>
<div class="block">Called after conversion.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>iterable</code> - conversion result.</dd>
<dd><code>startTimeNanos</code> - start time of conversion.</dd>
</dl>
</li>
</ul>
<a name="onIterableNext-java.lang.Object-">
<!-- -->
</a><a name="onIterableNext-DO-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onIterableNext</h4>
<pre>public&nbsp;void&nbsp;onIterableNext(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DO</a>&nbsp;next)</pre>
<div class="block">Called every time next() method in iterable is called.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>next</code> - next value in iterable.</dd>
</dl>
</li>
</ul>
<a name="onException-java.lang.Exception-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onException</h4>
<pre>public&nbsp;void&nbsp;onException(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a>&nbsp;exception)</pre>
<div class="block">Called when converter throws an exception.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>exception</code> - exception thrown.</dd>
</dl>
</li>
</ul>
<a name="convertRecordImpl-java.lang.Object-java.lang.Object-gobblin.configuration.WorkUnitState-">
<!-- -->
</a><a name="convertRecordImpl-SO-DI-gobblin.configuration.WorkUnitState-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>convertRecordImpl</h4>
<pre>public abstract&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DO</a>&gt;&nbsp;convertRecordImpl(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SO</a>&nbsp;outputSchema,
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DI</a>&nbsp;inputRecord,
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/WorkUnitState.html?is-external=true" title="class or interface in gobblin.configuration">WorkUnitState</a>&nbsp;workUnit)
throws <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/DataConversionException.html?is-external=true" title="class or interface in gobblin.converter">DataConversionException</a></pre>
<div class="block">Subclasses should implement this method instead of convertRecord.
See <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true#convertRecord-SO-DI-gobblin.configuration.WorkUnitState-" title="class or interface in gobblin.converter"><code>Converter.convertRecord(SO, DI, gobblin.configuration.WorkUnitState)</code></a>.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/DataConversionException.html?is-external=true" title="class or interface in gobblin.converter">DataConversionException</a></code></dd>
</dl>
</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>
<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="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true#close--" title="class or interface in gobblin.converter">close</a></code>&nbsp;in class&nbsp;<code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/converter/Converter.html?is-external=true" title="class or interface in gobblin.converter">Converter</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SI</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">SO</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DI</a>,<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/instrumented.converter.InstrumentedConverterBase.html?is-external=true" title="class or interface in gobblin">DO</a>&gt;</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></dd>
</dl>
</li>
</ul>
<a name="getMetricContext--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getMetricContext</h4>
<pre>public&nbsp;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics">MetricContext</a>&nbsp;getMetricContext()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html#getMetricContext--">Instrumentable</a></code></span></div>
<div class="block">Get <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> containing metrics related to this Instrumentable.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../gobblin/instrumented/Instrumentable.html#getMetricContext--">getMetricContext</a></code>&nbsp;in interface&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented">Instrumentable</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an instance of <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a>.</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>Prev&nbsp;Class</li>
<li><a href="../../../gobblin/instrumented/converter/InstrumentedConverterDecorator.html" title="class in gobblin.instrumented.converter"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?gobblin/instrumented/converter/InstrumentedConverter.html" target="_top">Frames</a></li>
<li><a href="InstrumentedConverter.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>