| <!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_162) on Thu Feb 01 21:39:09 KST 2018 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>DataUtil (Coral Project 0.1-SNAPSHOT API)</title> |
| <meta name="date" content="2018-02-01"> |
| <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="DataUtil (Coral Project 0.1-SNAPSHOT API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":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"; |
| </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="class-use/DataUtil.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"> |
| <li><a href="../../../../../../edu/snu/coral/runtime/executor/data/CoderManager.html" title="class in edu.snu.coral.runtime.executor.data"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../edu/snu/coral/runtime/executor/data/DataUtil.InputStreamIterator.html" title="class in edu.snu.coral.runtime.executor.data"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?edu/snu/coral/runtime/executor/data/DataUtil.html" target="_top">Frames</a></li> |
| <li><a href="DataUtil.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../../allclasses-noframe.html">All 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: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </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">edu.snu.coral.runtime.executor.data</div> |
| <h2 title="Class DataUtil" class="title">Class DataUtil</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/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>edu.snu.coral.runtime.executor.data.DataUtil</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public final class <span class="typeNameLabel">DataUtil</span> |
| extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block">Utility methods for data handling (e.g., (de)serialization).</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Class and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../edu/snu/coral/runtime/executor/data/DataUtil.InputStreamIterator.html" title="class in edu.snu.coral.runtime.executor.data">DataUtil.InputStreamIterator</a><<a href="../../../../../../edu/snu/coral/runtime/executor/data/DataUtil.InputStreamIterator.html" title="type parameter in DataUtil.InputStreamIterator">T</a>></span></code> |
| <div class="block">An iterator that emits objects from <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a> using the corresponding <a href="../../../../../../edu/snu/coral/common/coder/Coder.html" title="interface in edu.snu.coral.common.coder"><code>Coder</code></a>.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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>static <a href="https://docs.oracle.com/javase/8/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="../../../../../../edu/snu/coral/runtime/executor/data/DataUtil.html#blockIdToFilePath-java.lang.String-java.lang.String-">blockIdToFilePath</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> blockId, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fileDirectory)</code> |
| <div class="block">Converts a block id to the corresponding file path.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/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="../../../../../../edu/snu/coral/runtime/executor/data/DataUtil.html#blockIdToMetaFilePath-java.lang.String-java.lang.String-">blockIdToMetaFilePath</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> blockId, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fileDirectory)</code> |
| <div class="block">Converts a block id to the corresponding metadata file path.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../edu/snu/coral/runtime/executor/data/DataUtil.html#concatNonSerPartitions-java.lang.Iterable-">concatNonSerPartitions</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../edu/snu/coral/runtime/executor/data/NonSerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">NonSerializedPartition</a>> partitionsToConcat)</code> |
| <div class="block">Concatenates an iterable of non-serialized <a href="../../../../../../edu/snu/coral/runtime/executor/data/Partition.html" title="interface in edu.snu.coral.runtime.executor.data"><code>Partition</code></a>s into a single iterable of elements.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static <K extends <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>><br><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../edu/snu/coral/runtime/executor/data/NonSerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">NonSerializedPartition</a><K>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../edu/snu/coral/runtime/executor/data/DataUtil.html#convertToNonSerPartitions-edu.snu.coral.common.coder.Coder-java.lang.Iterable-">convertToNonSerPartitions</a></span>(<a href="../../../../../../edu/snu/coral/common/coder/Coder.html" title="interface in edu.snu.coral.common.coder">Coder</a> coder, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../edu/snu/coral/runtime/executor/data/SerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">SerializedPartition</a><K>> partitionsToConvert)</code> |
| <div class="block">Converts the serialized <a href="../../../../../../edu/snu/coral/runtime/executor/data/Partition.html" title="interface in edu.snu.coral.runtime.executor.data"><code>Partition</code></a>s in an iterable to non-serialized <a href="../../../../../../edu/snu/coral/runtime/executor/data/Partition.html" title="interface in edu.snu.coral.runtime.executor.data"><code>Partition</code></a>s.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <K extends <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>><br><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../edu/snu/coral/runtime/executor/data/SerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">SerializedPartition</a><K>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../edu/snu/coral/runtime/executor/data/DataUtil.html#convertToSerPartitions-edu.snu.coral.common.coder.Coder-java.lang.Iterable-">convertToSerPartitions</a></span>(<a href="../../../../../../edu/snu/coral/common/coder/Coder.html" title="interface in edu.snu.coral.common.coder">Coder</a> coder, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../edu/snu/coral/runtime/executor/data/NonSerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">NonSerializedPartition</a><K>> partitionsToConvert)</code> |
| <div class="block">Converts the non-serialized <a href="../../../../../../edu/snu/coral/runtime/executor/data/Partition.html" title="interface in edu.snu.coral.runtime.executor.data"><code>Partition</code></a>s in an iterable to serialized <a href="../../../../../../edu/snu/coral/runtime/executor/data/Partition.html" title="interface in edu.snu.coral.runtime.executor.data"><code>Partition</code></a>s.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <K extends <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>><br><a href="../../../../../../edu/snu/coral/runtime/executor/data/NonSerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">NonSerializedPartition</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../edu/snu/coral/runtime/executor/data/DataUtil.html#deserializePartition-long-edu.snu.coral.common.coder.Coder-K-java.io.InputStream-">deserializePartition</a></span>(long elementsInPartition, |
| <a href="../../../../../../edu/snu/coral/common/coder/Coder.html" title="interface in edu.snu.coral.common.coder">Coder</a> coder, |
| K key, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> inputStream)</code> |
| <div class="block">Reads the data of a partition from an input stream and deserializes it.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../edu/snu/coral/runtime/executor/data/DataUtil.html#serializePartition-edu.snu.coral.common.coder.Coder-edu.snu.coral.runtime.executor.data.NonSerializedPartition-java.io.ByteArrayOutputStream-">serializePartition</a></span>(<a href="../../../../../../edu/snu/coral/common/coder/Coder.html" title="interface in edu.snu.coral.common.coder">Coder</a> coder, |
| <a href="../../../../../../edu/snu/coral/runtime/executor/data/NonSerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">NonSerializedPartition</a> nonSerializedPartition, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/io/ByteArrayOutputStream.html?is-external=true" title="class or interface in java.io">ByteArrayOutputStream</a> bytesOutputStream)</code> |
| <div class="block">Serializes the elements in a non-serialized partition into an output stream.</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 java.lang.<a href="https://docs.oracle.com/javase/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="serializePartition-edu.snu.coral.common.coder.Coder-edu.snu.coral.runtime.executor.data.NonSerializedPartition-java.io.ByteArrayOutputStream-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>serializePartition</h4> |
| <pre>public static long serializePartition(<a href="../../../../../../edu/snu/coral/common/coder/Coder.html" title="interface in edu.snu.coral.common.coder">Coder</a> coder, |
| <a href="../../../../../../edu/snu/coral/runtime/executor/data/NonSerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">NonSerializedPartition</a> nonSerializedPartition, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/io/ByteArrayOutputStream.html?is-external=true" title="class or interface in java.io">ByteArrayOutputStream</a> bytesOutputStream) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block">Serializes the elements in a non-serialized partition into an output stream.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>coder</code> - the coder to encode the elements.</dd> |
| <dd><code>nonSerializedPartition</code> - the non-serialized partition to serialize.</dd> |
| <dd><code>bytesOutputStream</code> - the output stream to write.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>total number of elements in the partition.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if fail to serialize.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="deserializePartition-long-edu.snu.coral.common.coder.Coder-java.io.Serializable-java.io.InputStream-"> |
| <!-- --> |
| </a><a name="deserializePartition-long-edu.snu.coral.common.coder.Coder-K-java.io.InputStream-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>deserializePartition</h4> |
| <pre>public static <K extends <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>> <a href="../../../../../../edu/snu/coral/runtime/executor/data/NonSerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">NonSerializedPartition</a> deserializePartition(long elementsInPartition, |
| <a href="../../../../../../edu/snu/coral/common/coder/Coder.html" title="interface in edu.snu.coral.common.coder">Coder</a> coder, |
| K key, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> inputStream) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block">Reads the data of a partition from an input stream and deserializes it.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>K</code> - the key type of the partitions.</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>elementsInPartition</code> - the number of elements in this partition.</dd> |
| <dd><code>coder</code> - the coder to decode the bytes.</dd> |
| <dd><code>key</code> - the key value of the result partition.</dd> |
| <dd><code>inputStream</code> - the input stream which will return the data in the partition as bytes.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the list of deserialized elements.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if fail to deserialize.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="convertToSerPartitions-edu.snu.coral.common.coder.Coder-java.lang.Iterable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>convertToSerPartitions</h4> |
| <pre>public static <K extends <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>> <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../edu/snu/coral/runtime/executor/data/SerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">SerializedPartition</a><K>> convertToSerPartitions(<a href="../../../../../../edu/snu/coral/common/coder/Coder.html" title="interface in edu.snu.coral.common.coder">Coder</a> coder, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../edu/snu/coral/runtime/executor/data/NonSerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">NonSerializedPartition</a><K>> partitionsToConvert) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block">Converts the non-serialized <a href="../../../../../../edu/snu/coral/runtime/executor/data/Partition.html" title="interface in edu.snu.coral.runtime.executor.data"><code>Partition</code></a>s in an iterable to serialized <a href="../../../../../../edu/snu/coral/runtime/executor/data/Partition.html" title="interface in edu.snu.coral.runtime.executor.data"><code>Partition</code></a>s.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>K</code> - the key type of the partitions.</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>coder</code> - the coder for serialization.</dd> |
| <dd><code>partitionsToConvert</code> - the partitions to convert.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the converted <a href="../../../../../../edu/snu/coral/runtime/executor/data/SerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data"><code>SerializedPartition</code></a>s.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if fail to convert.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="convertToNonSerPartitions-edu.snu.coral.common.coder.Coder-java.lang.Iterable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>convertToNonSerPartitions</h4> |
| <pre>public static <K extends <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>> <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../edu/snu/coral/runtime/executor/data/NonSerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">NonSerializedPartition</a><K>> convertToNonSerPartitions(<a href="../../../../../../edu/snu/coral/common/coder/Coder.html" title="interface in edu.snu.coral.common.coder">Coder</a> coder, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../edu/snu/coral/runtime/executor/data/SerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">SerializedPartition</a><K>> partitionsToConvert) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block">Converts the serialized <a href="../../../../../../edu/snu/coral/runtime/executor/data/Partition.html" title="interface in edu.snu.coral.runtime.executor.data"><code>Partition</code></a>s in an iterable to non-serialized <a href="../../../../../../edu/snu/coral/runtime/executor/data/Partition.html" title="interface in edu.snu.coral.runtime.executor.data"><code>Partition</code></a>s.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>K</code> - the key type of the partitions.</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>coder</code> - the coder for deserialization.</dd> |
| <dd><code>partitionsToConvert</code> - the partitions to convert.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the converted <a href="../../../../../../edu/snu/coral/runtime/executor/data/NonSerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data"><code>NonSerializedPartition</code></a>s.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if fail to convert.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="blockIdToFilePath-java.lang.String-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>blockIdToFilePath</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> blockIdToFilePath(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> blockId, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fileDirectory)</pre> |
| <div class="block">Converts a block id to the corresponding file path.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>blockId</code> - the ID of the block.</dd> |
| <dd><code>fileDirectory</code> - the directory of the target block file.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the file path of the partition.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="blockIdToMetaFilePath-java.lang.String-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>blockIdToMetaFilePath</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> blockIdToMetaFilePath(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> blockId, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fileDirectory)</pre> |
| <div class="block">Converts a block id to the corresponding metadata file path.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>blockId</code> - the ID of the block.</dd> |
| <dd><code>fileDirectory</code> - the directory of the target block file.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the metadata file path of the partition.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="concatNonSerPartitions-java.lang.Iterable-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>concatNonSerPartitions</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a> concatNonSerPartitions(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../edu/snu/coral/runtime/executor/data/NonSerializedPartition.html" title="class in edu.snu.coral.runtime.executor.data">NonSerializedPartition</a>> partitionsToConcat) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block">Concatenates an iterable of non-serialized <a href="../../../../../../edu/snu/coral/runtime/executor/data/Partition.html" title="interface in edu.snu.coral.runtime.executor.data"><code>Partition</code></a>s into a single iterable of elements.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>partitionsToConcat</code> - the partitions to concatenate.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the concatenated iterable of all elements.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if fail to concatenate.</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="class-use/DataUtil.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"> |
| <li><a href="../../../../../../edu/snu/coral/runtime/executor/data/CoderManager.html" title="class in edu.snu.coral.runtime.executor.data"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../edu/snu/coral/runtime/executor/data/DataUtil.InputStreamIterator.html" title="class in edu.snu.coral.runtime.executor.data"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?edu/snu/coral/runtime/executor/data/DataUtil.html" target="_top">Frames</a></li> |
| <li><a href="DataUtil.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../../allclasses-noframe.html">All 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: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2018. All rights reserved.</small></p> |
| </body> |
| </html> |