blob: 609d1a9ff7ac9334efcfd3a12414af773136da84 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.9.1) on Fri Sep 09 19:30:40 KST 2022 -->
<title>Util (Nemo Project 0.4 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2022-09-09">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Util (Nemo Project 0.4 API)";
}
}
catch(err) {
}
//-->
var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Util.html">Use</a></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" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.nemo.common</a></div>
<h2 title="Class Util" class="title">Class Util</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.nemo.common.Util</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public final class <span class="typeNameLabel">Util</span>
extends java.lang.Object</pre>
<div class="block">Class to hold the utility methods.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<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="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="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#checkEqualityOfIntPredicates(java.util.function.IntPredicate,java.util.function.IntPredicate,int)">checkEqualityOfIntPredicates</a></span>&#8203;(java.util.function.IntPredicate&nbsp;firstPredicate,
java.util.function.IntPredicate&nbsp;secondPredicate,
int&nbsp;noOfTimes)</code></th>
<td class="colLast">
<div class="block">Check the equality of two intPredicates.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static <a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#cloneEdge(org.apache.nemo.common.ir.edge.executionproperty.CommunicationPatternProperty.Value,org.apache.nemo.common.ir.edge.IREdge,org.apache.nemo.common.ir.vertex.IRVertex,org.apache.nemo.common.ir.vertex.IRVertex)">cloneEdge</a></span>&#8203;(<a href="ir/edge/executionproperty/CommunicationPatternProperty.Value.html" title="enum in org.apache.nemo.common.ir.edge.executionproperty">CommunicationPatternProperty.Value</a>&nbsp;commPattern,
<a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a>&nbsp;edgeToClone,
<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;newSrc,
<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;newDst)</code></th>
<td class="colLast">
<div class="block">Creates a new edge with several execution properties same as the given edge.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#cloneEdge(org.apache.nemo.common.ir.edge.IREdge,org.apache.nemo.common.ir.vertex.IRVertex,org.apache.nemo.common.ir.vertex.IRVertex)">cloneEdge</a></span>&#8203;(<a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a>&nbsp;edgeToClone,
<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;newSrc,
<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;newDst)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static <a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createControlEdge(org.apache.nemo.common.ir.vertex.IRVertex,org.apache.nemo.common.ir.vertex.IRVertex)">createControlEdge</a></span>&#8203;(<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;src,
<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;dst)</code></th>
<td class="colLast">
<div class="block">A control edge enforces an execution ordering between the source vertex and the destination vertex.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fetchProjectRootPath()">fetchProjectRootPath</a></span>()</code></th>
<td class="colLast">
<div class="block">Finds the project root path.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getObjectSize(java.lang.Object)">getObjectSize</a></span>&#8203;(java.lang.Object&nbsp;o)</code></th>
<td class="colLast">
<div class="block">Get the object byte size.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isControlEdge(org.apache.nemo.common.ir.edge.IREdge)">isControlEdge</a></span>&#8203;(<a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a>&nbsp;edge)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isUtilityVertex(org.apache.nemo.common.ir.vertex.IRVertex)">isUtilityVertex</a></span>&#8203;(<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;v)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static java.util.List&lt;<a href="Pair.html" title="class in org.apache.nemo.common">Pair</a>&lt;java.lang.Integer,&#8203;<a href="ir/executionproperty/ResourceSpecification.html" title="class in org.apache.nemo.common.ir.executionproperty">ResourceSpecification</a>&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#parseResourceSpecificationString(java.lang.String)">parseResourceSpecificationString</a></span>&#8203;(java.lang.String&nbsp;resourceSpecificationString)</code></th>
<td class="colLast">
<div class="block">Utility method for parsing the resource specification string.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#premain(java.lang.String,java.lang.instrument.Instrumentation)">premain</a></span>&#8203;(java.lang.String&nbsp;args,
java.lang.instrument.Instrumentation&nbsp;inst)</code></th>
<td class="colLast">
<div class="block">Method for the instrumentation: for getting the object size.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#restoreEdgeId(java.lang.Integer)">restoreEdgeId</a></span>&#8203;(java.lang.Integer&nbsp;numericId)</code></th>
<td class="colLast">
<div class="block">Method to restore String ID from the numeric ID.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#restoreVertexId(java.lang.Integer)">restoreVertexId</a></span>&#8203;(java.lang.Integer&nbsp;numericId)</code></th>
<td class="colLast">
<div class="block">Method to restore String ID from the numeric ID.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stringifyIREdgeIds(java.util.Collection)">stringifyIREdgeIds</a></span>&#8203;(java.util.Collection&lt;<a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a>&gt;&nbsp;edges)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stringifyIRVertexIds(java.util.Collection)">stringifyIRVertexIds</a></span>&#8203;(java.util.Collection&lt;<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&gt;&nbsp;vertices)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="fetchProjectRootPath()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fetchProjectRootPath</h4>
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;fetchProjectRootPath()</pre>
<div class="block">Finds the project root path.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the project root path.</dd>
</dl>
</li>
</ul>
<a id="checkEqualityOfIntPredicates(java.util.function.IntPredicate,java.util.function.IntPredicate,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkEqualityOfIntPredicates</h4>
<pre class="methodSignature">public static&nbsp;boolean&nbsp;checkEqualityOfIntPredicates&#8203;(java.util.function.IntPredicate&nbsp;firstPredicate,
java.util.function.IntPredicate&nbsp;secondPredicate,
int&nbsp;noOfTimes)</pre>
<div class="block">Check the equality of two intPredicates.
Check if the both the predicates either passes together or fails together for each
integer in the range [0,noOfTimes]</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>firstPredicate</code> - the first IntPredicate.</dd>
<dd><code>secondPredicate</code> - the second IntPredicate.</dd>
<dd><code>noOfTimes</code> - Number to check the IntPredicates from.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>whether or not we can say that they are equal.</dd>
</dl>
</li>
</ul>
<a id="cloneEdge(org.apache.nemo.common.ir.edge.IREdge,org.apache.nemo.common.ir.vertex.IRVertex,org.apache.nemo.common.ir.vertex.IRVertex)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cloneEdge</h4>
<pre class="methodSignature">public static&nbsp;<a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a>&nbsp;cloneEdge&#8203;(<a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a>&nbsp;edgeToClone,
<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;newSrc,
<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;newDst)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>edgeToClone</code> - to copy execution properties from.</dd>
<dd><code>newSrc</code> - of the new edge.</dd>
<dd><code>newDst</code> - of the new edge.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the new edge.</dd>
</dl>
</li>
</ul>
<a id="cloneEdge(org.apache.nemo.common.ir.edge.executionproperty.CommunicationPatternProperty.Value,org.apache.nemo.common.ir.edge.IREdge,org.apache.nemo.common.ir.vertex.IRVertex,org.apache.nemo.common.ir.vertex.IRVertex)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cloneEdge</h4>
<pre class="methodSignature">public static&nbsp;<a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a>&nbsp;cloneEdge&#8203;(<a href="ir/edge/executionproperty/CommunicationPatternProperty.Value.html" title="enum in org.apache.nemo.common.ir.edge.executionproperty">CommunicationPatternProperty.Value</a>&nbsp;commPattern,
<a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a>&nbsp;edgeToClone,
<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;newSrc,
<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;newDst)</pre>
<div class="block">Creates a new edge with several execution properties same as the given edge.
The copied execution properties include those minimally required for execution, such as encoder/decoders.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>commPattern</code> - to use.</dd>
<dd><code>edgeToClone</code> - to copy execution properties from.</dd>
<dd><code>newSrc</code> - of the new edge.</dd>
<dd><code>newDst</code> - of the new edge.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the new edge.</dd>
</dl>
</li>
</ul>
<a id="createControlEdge(org.apache.nemo.common.ir.vertex.IRVertex,org.apache.nemo.common.ir.vertex.IRVertex)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createControlEdge</h4>
<pre class="methodSignature">public static&nbsp;<a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a>&nbsp;createControlEdge&#8203;(<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;src,
<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;dst)</pre>
<div class="block">A control edge enforces an execution ordering between the source vertex and the destination vertex.
The additional output tag property of control edges is set such that no actual data element is transferred
via the edges. This minimizes the run-time overhead of executing control edges.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>src</code> - vertex.</dd>
<dd><code>dst</code> - vertex.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the control edge.</dd>
</dl>
</li>
</ul>
<a id="isControlEdge(org.apache.nemo.common.ir.edge.IREdge)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isControlEdge</h4>
<pre class="methodSignature">public static&nbsp;boolean&nbsp;isControlEdge&#8203;(<a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a>&nbsp;edge)</pre>
</li>
</ul>
<a id="isUtilityVertex(org.apache.nemo.common.ir.vertex.IRVertex)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUtilityVertex</h4>
<pre class="methodSignature">public static&nbsp;boolean&nbsp;isUtilityVertex&#8203;(<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&nbsp;v)</pre>
</li>
</ul>
<a id="stringifyIRVertexIds(java.util.Collection)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stringifyIRVertexIds</h4>
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;stringifyIRVertexIds&#8203;(java.util.Collection&lt;<a href="ir/vertex/IRVertex.html" title="class in org.apache.nemo.common.ir.vertex">IRVertex</a>&gt;&nbsp;vertices)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vertices</code> - to stringify ids of.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the string of ids.</dd>
</dl>
</li>
</ul>
<a id="stringifyIREdgeIds(java.util.Collection)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stringifyIREdgeIds</h4>
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;stringifyIREdgeIds&#8203;(java.util.Collection&lt;<a href="ir/edge/IREdge.html" title="class in org.apache.nemo.common.ir.edge">IREdge</a>&gt;&nbsp;edges)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>edges</code> - to stringify ids of.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the string of ids.</dd>
</dl>
</li>
</ul>
<a id="restoreVertexId(java.lang.Integer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>restoreVertexId</h4>
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;restoreVertexId&#8203;(java.lang.Integer&nbsp;numericId)</pre>
<div class="block">Method to restore String ID from the numeric ID.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>numericId</code> - the numeric id.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the restored string ID.</dd>
</dl>
</li>
</ul>
<a id="restoreEdgeId(java.lang.Integer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>restoreEdgeId</h4>
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;restoreEdgeId&#8203;(java.lang.Integer&nbsp;numericId)</pre>
<div class="block">Method to restore String ID from the numeric ID.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>numericId</code> - the numeric id.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the restored string ID.</dd>
</dl>
</li>
</ul>
<a id="parseResourceSpecificationString(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseResourceSpecificationString</h4>
<pre class="methodSignature">public static&nbsp;java.util.List&lt;<a href="Pair.html" title="class in org.apache.nemo.common">Pair</a>&lt;java.lang.Integer,&#8203;<a href="ir/executionproperty/ResourceSpecification.html" title="class in org.apache.nemo.common.ir.executionproperty">ResourceSpecification</a>&gt;&gt;&nbsp;parseResourceSpecificationString&#8203;(java.lang.String&nbsp;resourceSpecificationString)</pre>
<div class="block">Utility method for parsing the resource specification string.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>resourceSpecificationString</code> - the input resource specification string.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the parsed list of resource specifications. The Integer indicates how many of the specified nodes are
required, followed by the ResourceSpecification that indicates the specifications of the nodes.</dd>
</dl>
</li>
</ul>
<a id="premain(java.lang.String,java.lang.instrument.Instrumentation)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>premain</h4>
<pre class="methodSignature">public static&nbsp;void&nbsp;premain&#8203;(java.lang.String&nbsp;args,
java.lang.instrument.Instrumentation&nbsp;inst)</pre>
<div class="block">Method for the instrumentation: for getting the object size.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>args</code> - arguments.</dd>
<dd><code>inst</code> - the instrumentation.</dd>
</dl>
</li>
</ul>
<a id="getObjectSize(java.lang.Object)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getObjectSize</h4>
<pre class="methodSignature">public static&nbsp;long&nbsp;getObjectSize&#8203;(java.lang.Object&nbsp;o)</pre>
<div class="block">Get the object byte size.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>o</code> - object to measure.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the bytes of the object.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Util.html">Use</a></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" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2020 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>