blob: 9823f50682ce4faf984abc90ba7476e2f4f4fede [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>
<link rel="canonical" href="https://ignite.apache.org/releases/2.7.6/javadoc/org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.html" />
<META NAME="ROBOTS" CONTENT="NOINDEX">
<!-- Generated by javadoc (1.8.0_212) on Wed Sep 11 22:29:55 MSK 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ComputeUtils (Ignite 2.7.6)</title>
<meta name="date" content="2019-09-11">
<link rel="stylesheet" type="text/css" href="../../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../../script.js"></script>
<link rel='shortcut icon' href='https://ignite.apache.org/favicon.ico'/>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61232409-1', 'auto');
ga('send', 'pageview');
</script></head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ComputeUtils (Ignite 2.7.6)";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":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/ComputeUtils.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>Prev&nbsp;Class</li>
<li><a href="../../../../../../../../org/apache/ignite/ml/dataset/impl/cache/util/DatasetAffinityFunctionWrapper.html" title="class in org.apache.ignite.ml.dataset.impl.cache.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../../index.html?org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.html" target="_top">Frames</a></li>
<li><a href="ComputeUtils.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>Field&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>Field&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">org.apache.ignite.ml.dataset.impl.cache.util</div>
<h2 title="Class ComputeUtils" class="title">Class ComputeUtils</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://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>org.apache.ignite.ml.dataset.impl.cache.util.ComputeUtils</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">ComputeUtils</span>
extends <a href="http://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">Util class that provides common methods to perform computations on top of the Ignite Compute Grid.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== 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="../../../../../../../../org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.html#ComputeUtils--">ComputeUtils</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="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="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static <span class='angle_bracket'>&lt;</span>R<span class='angle_bracket'>&gt;</span>&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'>&lt;</span>R<span class='angle_bracket'>&gt;</span></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.html#affinityCallWithRetries-org.apache.ignite.Ignite-java.util.Collection-org.apache.ignite.ml.math.functions.IgniteFunction-int-">affinityCallWithRetries</a></span>(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'>&lt;</span><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a><span class='angle_bracket'>&gt;</span>&nbsp;cacheNames,
<a href="../../../../../../../../org/apache/ignite/ml/math/functions/IgniteFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteFunction</a><span class='angle_bracket'>&lt;</span><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>,R<span class='angle_bracket'>&gt;</span>&nbsp;fun,
int&nbsp;retries)</code>
<div class="block">Calls the specified <code>fun</code> function on all partitions so that is't guaranteed that partitions with the same
index of all specified caches will be placed on the same node and will not be moved before computation is
finished.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static <span class='angle_bracket'>&lt;</span>R<span class='angle_bracket'>&gt;</span>&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'>&lt;</span>R<span class='angle_bracket'>&gt;</span></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.html#affinityCallWithRetries-org.apache.ignite.Ignite-java.util.Collection-org.apache.ignite.ml.math.functions.IgniteFunction-int-int-">affinityCallWithRetries</a></span>(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'>&lt;</span><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a><span class='angle_bracket'>&gt;</span>&nbsp;cacheNames,
<a href="../../../../../../../../org/apache/ignite/ml/math/functions/IgniteFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteFunction</a><span class='angle_bracket'>&lt;</span><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>,R<span class='angle_bracket'>&gt;</span>&nbsp;fun,
int&nbsp;retries,
int&nbsp;interval)</code>
<div class="block">Calls the specified <code>fun</code> function on all partitions so that is't guaranteed that partitions with the same
index of all specified caches will be placed on the same node and will not be moved before computation is
finished.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <span class='angle_bracket'>&lt;</span>C extends <a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a><span class='angle_bracket'>&gt;</span><br>C</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.html#getContext-org.apache.ignite.Ignite-java.lang.String-int-">getContext</a></span>(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;datasetCacheName,
int&nbsp;part)</code>
<div class="block">Extracts partition <code>context</code> from the Ignite Cache.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static <span class='angle_bracket'>&lt;</span>K,V,C extends <a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>,D extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a><span class='angle_bracket'>&gt;</span><br>D</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.html#getData-org.apache.ignite.Ignite-java.lang.String-org.apache.ignite.lang.IgniteBiPredicate-java.lang.String-java.util.UUID-int-org.apache.ignite.ml.dataset.PartitionDataBuilder-">getData</a></span>(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;upstreamCacheName,
<a href="../../../../../../../../org/apache/ignite/lang/IgniteBiPredicate.html" title="interface in org.apache.ignite.lang">IgniteBiPredicate</a><span class='angle_bracket'>&lt;</span>K,V<span class='angle_bracket'>&gt;</span>&nbsp;filter,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;datasetCacheName,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&nbsp;datasetId,
int&nbsp;part,
<a href="../../../../../../../../org/apache/ignite/ml/dataset/PartitionDataBuilder.html" title="interface in org.apache.ignite.ml.dataset">PartitionDataBuilder</a><span class='angle_bracket'>&lt;</span>K,V,C,D<span class='angle_bracket'>&gt;</span>&nbsp;partDataBuilder)</code>
<div class="block">Extracts partition <code>data</code> from the local storage, if it's not found in local storage recovers this <code>data</code> from a partition <code>upstream</code> and <code>context</code>.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static <span class='angle_bracket'>&lt;</span>K,V,C extends <a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a><span class='angle_bracket'>&gt;</span><br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.html#initContext-org.apache.ignite.Ignite-java.lang.String-org.apache.ignite.lang.IgniteBiPredicate-java.lang.String-org.apache.ignite.ml.dataset.PartitionContextBuilder-int-">initContext</a></span>(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;upstreamCacheName,
<a href="../../../../../../../../org/apache/ignite/lang/IgniteBiPredicate.html" title="interface in org.apache.ignite.lang">IgniteBiPredicate</a><span class='angle_bracket'>&lt;</span>K,V<span class='angle_bracket'>&gt;</span>&nbsp;filter,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;datasetCacheName,
<a href="../../../../../../../../org/apache/ignite/ml/dataset/PartitionContextBuilder.html" title="interface in org.apache.ignite.ml.dataset">PartitionContextBuilder</a><span class='angle_bracket'>&lt;</span>K,V,C<span class='angle_bracket'>&gt;</span>&nbsp;ctxBuilder,
int&nbsp;retries)</code>
<div class="block">Initializes partition <code>context</code> by loading it from a partition <code>upstream</code>.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static <span class='angle_bracket'>&lt;</span>K,V,C extends <a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a><span class='angle_bracket'>&gt;</span><br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.html#initContext-org.apache.ignite.Ignite-java.lang.String-org.apache.ignite.lang.IgniteBiPredicate-java.lang.String-org.apache.ignite.ml.dataset.PartitionContextBuilder-int-int-">initContext</a></span>(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;upstreamCacheName,
<a href="../../../../../../../../org/apache/ignite/lang/IgniteBiPredicate.html" title="interface in org.apache.ignite.lang">IgniteBiPredicate</a><span class='angle_bracket'>&lt;</span>K,V<span class='angle_bracket'>&gt;</span>&nbsp;filter,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;datasetCacheName,
<a href="../../../../../../../../org/apache/ignite/ml/dataset/PartitionContextBuilder.html" title="interface in org.apache.ignite.ml.dataset">PartitionContextBuilder</a><span class='angle_bracket'>&lt;</span>K,V,C<span class='angle_bracket'>&gt;</span>&nbsp;ctxBuilder,
int&nbsp;retries,
int&nbsp;interval)</code>
<div class="block">Initializes partition <code>context</code> by loading it from a partition <code>upstream</code>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.html#removeData-org.apache.ignite.Ignite-java.util.UUID-">removeData</a></span>(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&nbsp;datasetId)</code>
<div class="block">Remove data from local cache by Dataset ID.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static <span class='angle_bracket'>&lt;</span>C extends <a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a><span class='angle_bracket'>&gt;</span><br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.html#saveContext-org.apache.ignite.Ignite-java.lang.String-int-C-">saveContext</a></span>(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;datasetCacheName,
int&nbsp;part,
C&nbsp;ctx)</code>
<div class="block">Saves the specified partition <code>context</code> into the Ignite Cache.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="ComputeUtils--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ComputeUtils</h4>
<pre>public&nbsp;ComputeUtils()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="affinityCallWithRetries-org.apache.ignite.Ignite-java.util.Collection-org.apache.ignite.ml.math.functions.IgniteFunction-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>affinityCallWithRetries</h4>
<pre>public static&nbsp;<span class='angle_bracket'>&lt;</span>R<span class='angle_bracket'>&gt;</span>&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'>&lt;</span>R<span class='angle_bracket'>&gt;</span>&nbsp;affinityCallWithRetries(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'>&lt;</span><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a><span class='angle_bracket'>&gt;</span>&nbsp;cacheNames,
<a href="../../../../../../../../org/apache/ignite/ml/math/functions/IgniteFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteFunction</a><span class='angle_bracket'>&lt;</span><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>,R<span class='angle_bracket'>&gt;</span>&nbsp;fun,
int&nbsp;retries,
int&nbsp;interval)</pre>
<div class="block">Calls the specified <code>fun</code> function on all partitions so that is't guaranteed that partitions with the same
index of all specified caches will be placed on the same node and will not be moved before computation is
finished. If partitions are placed on different nodes then call will be retried, but not more than <code>retries</code> times with <code>interval</code> interval specified in milliseconds.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>R</code> - Type of a result.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ignite</code> - Ignite instance.</dd>
<dd><code>cacheNames</code> - Collection of cache names.</dd>
<dd><code>fun</code> - Function to be applied on all partitions.</dd>
<dd><code>retries</code> - Number of retries for the case when one of partitions not found on the node.</dd>
<dd><code>interval</code> - Interval of retries for the case when one of partitions not found on the node.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Collection of results.</dd>
</dl>
</li>
</ul>
<a name="affinityCallWithRetries-org.apache.ignite.Ignite-java.util.Collection-org.apache.ignite.ml.math.functions.IgniteFunction-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>affinityCallWithRetries</h4>
<pre>public static&nbsp;<span class='angle_bracket'>&lt;</span>R<span class='angle_bracket'>&gt;</span>&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'>&lt;</span>R<span class='angle_bracket'>&gt;</span>&nbsp;affinityCallWithRetries(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'>&lt;</span><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a><span class='angle_bracket'>&gt;</span>&nbsp;cacheNames,
<a href="../../../../../../../../org/apache/ignite/ml/math/functions/IgniteFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteFunction</a><span class='angle_bracket'>&lt;</span><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>,R<span class='angle_bracket'>&gt;</span>&nbsp;fun,
int&nbsp;retries)</pre>
<div class="block">Calls the specified <code>fun</code> function on all partitions so that is't guaranteed that partitions with the same
index of all specified caches will be placed on the same node and will not be moved before computation is
finished. If partitions are placed on different nodes then call will be retried, but not more than <code>retries</code> times.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>R</code> - Type of a result.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ignite</code> - Ignite instance.</dd>
<dd><code>cacheNames</code> - Collection of cache names.</dd>
<dd><code>fun</code> - Function to be applied on all partitions.</dd>
<dd><code>retries</code> - Number of retries for the case when one of partitions not found on the node.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Collection of results.</dd>
</dl>
</li>
</ul>
<a name="getData-org.apache.ignite.Ignite-java.lang.String-org.apache.ignite.lang.IgniteBiPredicate-java.lang.String-java.util.UUID-int-org.apache.ignite.ml.dataset.PartitionDataBuilder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getData</h4>
<pre>public static&nbsp;<span class='angle_bracket'>&lt;</span>K,V,C extends <a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>,D extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a><span class='angle_bracket'>&gt;</span>&nbsp;D&nbsp;getData(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;upstreamCacheName,
<a href="../../../../../../../../org/apache/ignite/lang/IgniteBiPredicate.html" title="interface in org.apache.ignite.lang">IgniteBiPredicate</a><span class='angle_bracket'>&lt;</span>K,V<span class='angle_bracket'>&gt;</span>&nbsp;filter,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;datasetCacheName,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&nbsp;datasetId,
int&nbsp;part,
<a href="../../../../../../../../org/apache/ignite/ml/dataset/PartitionDataBuilder.html" title="interface in org.apache.ignite.ml.dataset">PartitionDataBuilder</a><span class='angle_bracket'>&lt;</span>K,V,C,D<span class='angle_bracket'>&gt;</span>&nbsp;partDataBuilder)</pre>
<div class="block">Extracts partition <code>data</code> from the local storage, if it's not found in local storage recovers this <code>data</code> from a partition <code>upstream</code> and <code>context</code>. Be aware that this method should be called from
the node where partition is placed.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>K</code> - Type of a key in <code>upstream</code> data.</dd>
<dd><code>V</code> - Type of a value in <code>upstream</code> data.</dd>
<dd><code>C</code> - Type of a partition <code>context</code>.</dd>
<dd><code>D</code> - Type of a partition <code>data</code>.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ignite</code> - Ignite instance.</dd>
<dd><code>upstreamCacheName</code> - Name of an <code>upstream</code> cache.</dd>
<dd><code>filter</code> - Filter for <code>upstream</code> data.</dd>
<dd><code>datasetCacheName</code> - Name of a partition <code>context</code> cache.</dd>
<dd><code>datasetId</code> - Dataset ID.</dd>
<dd><code>part</code> - Partition index.</dd>
<dd><code>partDataBuilder</code> - Partition data builder.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Partition <code>data</code>.</dd>
</dl>
</li>
</ul>
<a name="removeData-org.apache.ignite.Ignite-java.util.UUID-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeData</h4>
<pre>public static&nbsp;void&nbsp;removeData(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&nbsp;datasetId)</pre>
<div class="block">Remove data from local cache by Dataset ID.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ignite</code> - Ingnite instance.</dd>
<dd><code>datasetId</code> - Dataset ID.</dd>
</dl>
</li>
</ul>
<a name="initContext-org.apache.ignite.Ignite-java.lang.String-org.apache.ignite.lang.IgniteBiPredicate-java.lang.String-org.apache.ignite.ml.dataset.PartitionContextBuilder-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initContext</h4>
<pre>public static&nbsp;<span class='angle_bracket'>&lt;</span>K,V,C extends <a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a><span class='angle_bracket'>&gt;</span>&nbsp;void&nbsp;initContext(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;upstreamCacheName,
<a href="../../../../../../../../org/apache/ignite/lang/IgniteBiPredicate.html" title="interface in org.apache.ignite.lang">IgniteBiPredicate</a><span class='angle_bracket'>&lt;</span>K,V<span class='angle_bracket'>&gt;</span>&nbsp;filter,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;datasetCacheName,
<a href="../../../../../../../../org/apache/ignite/ml/dataset/PartitionContextBuilder.html" title="interface in org.apache.ignite.ml.dataset">PartitionContextBuilder</a><span class='angle_bracket'>&lt;</span>K,V,C<span class='angle_bracket'>&gt;</span>&nbsp;ctxBuilder,
int&nbsp;retries,
int&nbsp;interval)</pre>
<div class="block">Initializes partition <code>context</code> by loading it from a partition <code>upstream</code>.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>K</code> - Type of a key in <code>upstream</code> data.</dd>
<dd><code>V</code> - Type of a value in <code>upstream</code> data.</dd>
<dd><code>C</code> - Type of a partition <code>context</code>.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ignite</code> - Ignite instance.</dd>
<dd><code>upstreamCacheName</code> - Name of an <code>upstream</code> cache.</dd>
<dd><code>filter</code> - Filter for <code>upstream</code> data.</dd>
<dd><code>datasetCacheName</code> - Name of a partition <code>context</code> cache.</dd>
<dd><code>ctxBuilder</code> - Partition <code>context</code> builder.</dd>
</dl>
</li>
</ul>
<a name="initContext-org.apache.ignite.Ignite-java.lang.String-org.apache.ignite.lang.IgniteBiPredicate-java.lang.String-org.apache.ignite.ml.dataset.PartitionContextBuilder-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initContext</h4>
<pre>public static&nbsp;<span class='angle_bracket'>&lt;</span>K,V,C extends <a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a><span class='angle_bracket'>&gt;</span>&nbsp;void&nbsp;initContext(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;upstreamCacheName,
<a href="../../../../../../../../org/apache/ignite/lang/IgniteBiPredicate.html" title="interface in org.apache.ignite.lang">IgniteBiPredicate</a><span class='angle_bracket'>&lt;</span>K,V<span class='angle_bracket'>&gt;</span>&nbsp;filter,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;datasetCacheName,
<a href="../../../../../../../../org/apache/ignite/ml/dataset/PartitionContextBuilder.html" title="interface in org.apache.ignite.ml.dataset">PartitionContextBuilder</a><span class='angle_bracket'>&lt;</span>K,V,C<span class='angle_bracket'>&gt;</span>&nbsp;ctxBuilder,
int&nbsp;retries)</pre>
<div class="block">Initializes partition <code>context</code> by loading it from a partition <code>upstream</code>.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>K</code> - Type of a key in <code>upstream</code> data.</dd>
<dd><code>V</code> - Type of a value in <code>upstream</code> data.</dd>
<dd><code>C</code> - Type of a partition <code>context</code>.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ignite</code> - Ignite instance.</dd>
<dd><code>upstreamCacheName</code> - Name of an <code>upstream</code> cache.</dd>
<dd><code>filter</code> - Filter for <code>upstream</code> data.</dd>
<dd><code>datasetCacheName</code> - Name of a partition <code>context</code> cache.</dd>
<dd><code>ctxBuilder</code> - Partition <code>context</code> builder.</dd>
<dd><code>retries</code> - Number of retries for the case when one of partitions not found on the node.</dd>
</dl>
</li>
</ul>
<a name="getContext-org.apache.ignite.Ignite-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getContext</h4>
<pre>public static&nbsp;<span class='angle_bracket'>&lt;</span>C extends <a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a><span class='angle_bracket'>&gt;</span>&nbsp;C&nbsp;getContext(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;datasetCacheName,
int&nbsp;part)</pre>
<div class="block">Extracts partition <code>context</code> from the Ignite Cache.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>C</code> - Type of a partition <code>context</code>.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ignite</code> - Ignite instance.</dd>
<dd><code>datasetCacheName</code> - Dataset cache names.</dd>
<dd><code>part</code> - Partition index.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Partition <code>context</code>.</dd>
</dl>
</li>
</ul>
<a name="saveContext-org.apache.ignite.Ignite-java.lang.String-int-java.io.Serializable-">
<!-- -->
</a><a name="saveContext-org.apache.ignite.Ignite-java.lang.String-int-C-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>saveContext</h4>
<pre>public static&nbsp;<span class='angle_bracket'>&lt;</span>C extends <a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a><span class='angle_bracket'>&gt;</span>&nbsp;void&nbsp;saveContext(<a href="../../../../../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a>&nbsp;ignite,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;datasetCacheName,
int&nbsp;part,
C&nbsp;ctx)</pre>
<div class="block">Saves the specified partition <code>context</code> into the Ignite Cache.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>C</code> - Type of a partition <code>context</code>.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ignite</code> - Ignite instance.</dd>
<dd><code>datasetCacheName</code> - Dataset cache name.</dd>
<dd><code>part</code> - Partition index.</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/ComputeUtils.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>Prev&nbsp;Class</li>
<li><a href="../../../../../../../../org/apache/ignite/ml/dataset/impl/cache/util/DatasetAffinityFunctionWrapper.html" title="class in org.apache.ignite.ml.dataset.impl.cache.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../../index.html?org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.html" target="_top">Frames</a></li>
<li><a href="ComputeUtils.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>Field&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>Field&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 ======= -->
<p class="legalCopy"><small><table width="100%" border="0" cellspacing=0 cellpadding=0 style="padding: 5px"> <tr> <td> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <a target=_blank href="https://ignite.apache.org"><nobr>2019 Copyright &#169; Apache Software Foundation</nobr></a> </td> </tr> </tbody> </table> </td> <td width="100%" align="right" valign="center"> <a href="https://twitter.com/ApacheIgnite" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @ApacheIgnite</a> </td> </tr> <tr> <td colspan="2" valign="top" align="left"> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <b>Ignite Database and Caching Platform</b> </td> <td>:&nbsp;&nbsp; ver. <strong>2.7.6</strong> </td> </tr> <tr style="padding: 0; margin: 0"> <td> <b>Release Date</b> </td> <td>:&nbsp;&nbsp; September 11 2019 </td> </tr> </tbody> </table> </td> </tr> </table></small></p>
</body>
</html>