blob: e267e0682321a37e758fdb3f0ab96f5a29e2c4c4 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_121) on Sun Jul 09 07:41:28 CEST 2017 -->
<title>org.apache.gearpump.streaming.partitioner</title>
<meta name="date" content="2017-07-09">
<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="org.apache.gearpump.streaming.partitioner";
}
}
catch(err) {
}
//-->
</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 class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/gearpump/streaming/monoid/package-summary.html">Prev&nbsp;Package</a></li>
<li><a href="../../../../../org/apache/gearpump/streaming/sink/package-summary.html">Next&nbsp;Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/gearpump/streaming/partitioner/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.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>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package&nbsp;org.apache.gearpump.streaming.partitioner</h1>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation">
<caption><span>Interface Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Interface</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/MulticastPartitioner.html" title="interface in org.apache.gearpump.streaming.partitioner">MulticastPartitioner</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/Partitioner.html" title="interface in org.apache.gearpump.streaming.partitioner">Partitioner</a></td>
<td class="colLast">
<div class="block">For processor chain: A (3 tasks) -&gt; B (3 tasks), partitioner decide how ONE task
of upstream processor A send to several tasks of downstream processor B.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/PartitionerFactory.html" title="interface in org.apache.gearpump.streaming.partitioner">PartitionerFactory</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/UnicastPartitioner.html" title="interface in org.apache.gearpump.streaming.partitioner">UnicastPartitioner</a></td>
<td class="colLast">
<div class="block">For processor chain: A (3 tasks) -&gt; B (3 tasks), UnicastPartitioner does
ONE-task -&gt; ONE-task mapping.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/BroadcastPartitioner.html" title="class in org.apache.gearpump.streaming.partitioner">BroadcastPartitioner</a></td>
<td class="colLast">
<div class="block">Used by storm module to broadcast message to all downstream tasks</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/CoLocationPartitioner.html" title="class in org.apache.gearpump.streaming.partitioner">CoLocationPartitioner</a></td>
<td class="colLast">
<div class="block">Will have the same parallelism with last processor
And each task in current processor will co-locate with task of last processor</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/GroupByPartitioner.html" title="class in org.apache.gearpump.streaming.partitioner">GroupByPartitioner</a>&lt;T,GROUP&gt;</td>
<td class="colLast">
<div class="block">Partition messages by applying group by function first.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/GroupByPartitionerSpec.html" title="class in org.apache.gearpump.streaming.partitioner">GroupByPartitionerSpec</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/GroupByPartitionerSpec.People.html" title="class in org.apache.gearpump.streaming.partitioner">GroupByPartitionerSpec.People</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/GroupByPartitionerSpec.People$.html" title="class in org.apache.gearpump.streaming.partitioner">GroupByPartitionerSpec.People$</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/HashPartitioner.html" title="class in org.apache.gearpump.streaming.partitioner">HashPartitioner</a></td>
<td class="colLast">
<div class="block">Only make sense when the message has implemented the hashCode()
Otherwise, it will use Object.hashCode(), which will not return
same hash code after serialization and deserialization.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/PartitionerByClassName.html" title="class in org.apache.gearpump.streaming.partitioner">PartitionerByClassName</a></td>
<td class="colLast">
<div class="block">Store the partitioner in class Name, the user need to instantiate a new class</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/PartitionerDescription.html" title="class in org.apache.gearpump.streaming.partitioner">PartitionerDescription</a></td>
<td class="colLast">
<div class="block">param: partitionerFactory How we construct a Partitioner.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/PartitionerObject.html" title="class in org.apache.gearpump.streaming.partitioner">PartitionerObject</a></td>
<td class="colLast">
<div class="block">Stores the Partitioner in an object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/PartitionerSpec.html" title="class in org.apache.gearpump.streaming.partitioner">PartitionerSpec</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/ShuffleGroupingPartitioner.html" title="class in org.apache.gearpump.streaming.partitioner">ShuffleGroupingPartitioner</a></td>
<td class="colLast">
<div class="block">The idea of ShuffleGroupingPartitioner is derived from Storm.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/gearpump/streaming/partitioner/ShufflePartitioner.html" title="class in org.apache.gearpump.streaming.partitioner">ShufflePartitioner</a></td>
<td class="colLast">
<div class="block">Round Robin partition the data to downstream processor tasks.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= 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 class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/gearpump/streaming/monoid/package-summary.html">Prev&nbsp;Package</a></li>
<li><a href="../../../../../org/apache/gearpump/streaming/sink/package-summary.html">Next&nbsp;Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/gearpump/streaming/partitioner/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.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>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>