You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafu.apache.org by mh...@apache.org on 2018/01/29 19:01:47 UTC

svn commit: r1822555 [15/49] - in /incubator/datafu/site/docs: datafu/1.3.3/ datafu/1.3.3/datafu/ datafu/1.3.3/datafu/pig/ datafu/1.3.3/datafu/pig/bags/ datafu/1.3.3/datafu/pig/geo/ datafu/1.3.3/datafu/pig/hash/ datafu/1.3.3/datafu/pig/hash/lsh/ datafu...

Added: incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Intermediate.html
URL: http://svn.apache.org/viewvc/incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Intermediate.html?rev=1822555&view=auto
==============================================================================
--- incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Intermediate.html (added)
+++ incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Intermediate.html Mon Jan 29 19:01:43 2018
@@ -0,0 +1,306 @@
+<!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 (version 1.7.0_79) on Mon Jan 29 10:58:36 PST 2018 -->
+<title>SimpleRandomSampleWithReplacementElect.Intermediate (datafu-pig 1.3.3 API)</title>
+<meta name="date" content="2018-01-29">
+<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
+</head>
+<body>
+<script type="text/javascript"><!--
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="SimpleRandomSampleWithReplacementElect.Intermediate (datafu-pig 1.3.3 API)";
+    }
+//-->
+</script>
+<noscript>
+<div>JavaScript is disabled on your browser.</div>
+</noscript>
+<!-- ========= START OF TOP NAVBAR ======= -->
+<div class="topNav"><a name="navbar_top">
+<!--   -->
+</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
+<!--   -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../index-all.html">Index</a></li>
+<li><a href="../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Initial.html" title="class in datafu.pig.sampling"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html" title="class in datafu.pig.sampling"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../index.html?datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Intermediate.html" target="_top">Frames</a></li>
+<li><a href="SimpleRandomSampleWithReplacementElect.Intermediate.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:&nbsp;</li>
+<li><a href="#nested_classes_inherited_from_class_org.apache.pig.EvalFunc">Nested</a>&nbsp;|&nbsp;</li>
+<li><a href="#fields_inherited_from_class_org.apache.pig.EvalFunc">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li>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">datafu.pig.sampling</div>
+<h2 title="Class SimpleRandomSampleWithReplacementElect.Intermediate" class="title">Class SimpleRandomSampleWithReplacementElect.Intermediate</h2>
+</div>
+<div class="contentContainer">
+<ul class="inheritance">
+<li>java.lang.Object</li>
+<li>
+<ul class="inheritance">
+<li>org.apache.pig.EvalFunc&lt;org.apache.pig.data.Tuple&gt;</li>
+<li>
+<ul class="inheritance">
+<li>datafu.pig.sampling.SimpleRandomSampleWithReplacementElect.Intermediate</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+<div class="description">
+<ul class="blockList">
+<li class="blockList">
+<dl>
+<dt>Enclosing class:</dt>
+<dd><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html" title="class in datafu.pig.sampling">SimpleRandomSampleWithReplacementElect</a></dd>
+</dl>
+<hr>
+<br>
+<pre>public static class <span class="strong">SimpleRandomSampleWithReplacementElect.Intermediate</span>
+extends org.apache.pig.EvalFunc&lt;org.apache.pig.data.Tuple&gt;</pre>
+</li>
+</ul>
+</div>
+<div class="summary">
+<ul class="blockList">
+<li class="blockList">
+<!-- ======== NESTED CLASS SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="nested_class_summary">
+<!--   -->
+</a>
+<h3>Nested Class Summary</h3>
+<ul class="blockList">
+<li class="blockList"><a name="nested_classes_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Nested classes/interfaces inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>org.apache.pig.EvalFunc.SchemaType</code></li>
+</ul>
+</li>
+</ul>
+<!-- =========== FIELD SUMMARY =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="field_summary">
+<!--   -->
+</a>
+<h3>Field Summary</h3>
+<ul class="blockList">
+<li class="blockList"><a name="fields_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Fields inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>log, pigLogger, reporter, returnType</code></li>
+</ul>
+</li>
+</ul>
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="constructor_summary">
+<!--   -->
+</a>
+<h3>Constructor Summary</h3>
+<table class="overviewSummary" 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><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Intermediate.html#SimpleRandomSampleWithReplacementElect.Intermediate()">SimpleRandomSampleWithReplacementElect.Intermediate</a></strong>()</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="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
+<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
+<tr>
+<th class="colFirst" scope="col">Modifier and Type</th>
+<th class="colLast" scope="col">Method and Description</th>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>org.apache.pig.data.Tuple</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Intermediate.html#exec(org.apache.pig.data.Tuple)">exec</a></strong>(org.apache.pig.data.Tuple&nbsp;tuple)</code>&nbsp;</td>
+</tr>
+</table>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, outputSchema, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn</code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
+<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</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="SimpleRandomSampleWithReplacementElect.Intermediate()">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>SimpleRandomSampleWithReplacementElect.Intermediate</h4>
+<pre>public&nbsp;SimpleRandomSampleWithReplacementElect.Intermediate()</pre>
+</li>
+</ul>
+</li>
+</ul>
+<!-- ============ METHOD DETAIL ========== -->
+<ul class="blockList">
+<li class="blockList"><a name="method_detail">
+<!--   -->
+</a>
+<h3>Method Detail</h3>
+<a name="exec(org.apache.pig.data.Tuple)">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>exec</h4>
+<pre>public&nbsp;org.apache.pig.data.Tuple&nbsp;exec(org.apache.pig.data.Tuple&nbsp;tuple)
+                               throws java.io.IOException</pre>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code>exec</code>&nbsp;in class&nbsp;<code>org.apache.pig.EvalFunc&lt;org.apache.pig.data.Tuple&gt;</code></dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code>java.io.IOException</code></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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
+<!--   -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../index-all.html">Index</a></li>
+<li><a href="../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Initial.html" title="class in datafu.pig.sampling"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html" title="class in datafu.pig.sampling"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../index.html?datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Intermediate.html" target="_top">Frames</a></li>
+<li><a href="SimpleRandomSampleWithReplacementElect.Intermediate.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:&nbsp;</li>
+<li><a href="#nested_classes_inherited_from_class_org.apache.pig.EvalFunc">Nested</a>&nbsp;|&nbsp;</li>
+<li><a href="#fields_inherited_from_class_org.apache.pig.EvalFunc">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li>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 ======= -->
+</body>
+</html>

Added: incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html
URL: http://svn.apache.org/viewvc/incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html?rev=1822555&view=auto
==============================================================================
--- incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html (added)
+++ incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html Mon Jan 29 19:01:43 2018
@@ -0,0 +1,465 @@
+<!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 (version 1.7.0_79) on Mon Jan 29 10:58:36 PST 2018 -->
+<title>SimpleRandomSampleWithReplacementElect (datafu-pig 1.3.3 API)</title>
+<meta name="date" content="2018-01-29">
+<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
+</head>
+<body>
+<script type="text/javascript"><!--
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="SimpleRandomSampleWithReplacementElect (datafu-pig 1.3.3 API)";
+    }
+//-->
+</script>
+<noscript>
+<div>JavaScript is disabled on your browser.</div>
+</noscript>
+<!-- ========= START OF TOP NAVBAR ======= -->
+<div class="topNav"><a name="navbar_top">
+<!--   -->
+</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
+<!--   -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../index-all.html">Index</a></li>
+<li><a href="../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a href="../../../datafu/pig/sampling/SimpleRandomSample.Intermediate.html" title="class in datafu.pig.sampling"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Final.html" title="class in datafu.pig.sampling"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../index.html?datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html" target="_top">Frames</a></li>
+<li><a href="SimpleRandomSampleWithReplacementElect.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:&nbsp;</li>
+<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
+<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_detail">Method</a></li>
+</ul>
+</div>
+<a name="skip-navbar_top">
+<!--   -->
+</a></div>
+<!-- ========= END OF TOP NAVBAR ========= -->
+<!-- ======== START OF CLASS DATA ======== -->
+<div class="header">
+<div class="subTitle">datafu.pig.sampling</div>
+<h2 title="Class SimpleRandomSampleWithReplacementElect" class="title">Class SimpleRandomSampleWithReplacementElect</h2>
+</div>
+<div class="contentContainer">
+<ul class="inheritance">
+<li>java.lang.Object</li>
+<li>
+<ul class="inheritance">
+<li>org.apache.pig.EvalFunc&lt;T&gt;</li>
+<li>
+<ul class="inheritance">
+<li>org.apache.pig.AccumulatorEvalFunc&lt;T&gt;</li>
+<li>
+<ul class="inheritance">
+<li>org.apache.pig.AlgebraicEvalFunc&lt;org.apache.pig.data.DataBag&gt;</li>
+<li>
+<ul class="inheritance">
+<li>datafu.pig.sampling.SimpleRandomSampleWithReplacementElect</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+<div class="description">
+<ul class="blockList">
+<li class="blockList">
+<dl>
+<dt>All Implemented Interfaces:</dt>
+<dd>org.apache.pig.Accumulator&lt;org.apache.pig.data.DataBag&gt;, org.apache.pig.Algebraic</dd>
+</dl>
+<hr>
+<br>
+<pre>public class <span class="strong">SimpleRandomSampleWithReplacementElect</span>
+extends org.apache.pig.AlgebraicEvalFunc&lt;org.apache.pig.data.DataBag&gt;</pre>
+<div class="block">Select the candidate with the smallest score for each position from the candidates
+ proposed by <a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html" title="class in datafu.pig.sampling"><code>SimpleRandomSampleWithReplacementVote</code></a>.</div>
+<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html" title="class in datafu.pig.sampling"><code>SimpleRandomSampleWithReplacementVote</code></a></dd></dl>
+</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="overviewSummary" 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">&nbsp;</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&nbsp;</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Final.html" title="class in datafu.pig.sampling">SimpleRandomSampleWithReplacementElect.Final</a></strong></code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>static class&nbsp;</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Initial.html" title="class in datafu.pig.sampling">SimpleRandomSampleWithReplacementElect.Initial</a></strong></code>&nbsp;</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static class&nbsp;</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Intermediate.html" title="class in datafu.pig.sampling">SimpleRandomSampleWithReplacementElect.Intermediate</a></strong></code>&nbsp;</td>
+</tr>
+</table>
+<ul class="blockList">
+<li class="blockList"><a name="nested_classes_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Nested classes/interfaces inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>org.apache.pig.EvalFunc.SchemaType</code></li>
+</ul>
+</li>
+</ul>
+<!-- =========== FIELD SUMMARY =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="field_summary">
+<!--   -->
+</a>
+<h3>Field Summary</h3>
+<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
+<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
+<tr>
+<th class="colFirst" scope="col">Modifier and Type</th>
+<th class="colLast" scope="col">Field and Description</th>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static org.apache.pig.data.BagFactory</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html#bagFactory">bagFactory</a></strong></code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>static java.lang.String</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html#OUTPUT_BAG_NAME_PREFIX">OUTPUT_BAG_NAME_PREFIX</a></strong></code>
+<div class="block">Prefix for the output bag name.</div>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static org.apache.pig.data.TupleFactory</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html#tupleFactory">tupleFactory</a></strong></code>&nbsp;</td>
+</tr>
+</table>
+<ul class="blockList">
+<li class="blockList"><a name="fields_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Fields inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>log, pigLogger, reporter, returnType</code></li>
+</ul>
+</li>
+</ul>
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="constructor_summary">
+<!--   -->
+</a>
+<h3>Constructor Summary</h3>
+<table class="overviewSummary" 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><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html#SimpleRandomSampleWithReplacementElect()">SimpleRandomSampleWithReplacementElect</a></strong>()</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="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
+<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
+<tr>
+<th class="colFirst" scope="col">Modifier and Type</th>
+<th class="colLast" scope="col">Method and Description</th>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>java.lang.String</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html#getFinal()">getFinal</a></strong>()</code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>java.lang.String</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html#getInitial()">getInitial</a></strong>()</code>&nbsp;</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>java.lang.String</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html#getIntermed()">getIntermed</a></strong>()</code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>org.apache.pig.impl.logicalLayer.schema.Schema</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html#outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema)">outputSchema</a></strong>(org.apache.pig.impl.logicalLayer.schema.Schema&nbsp;input)</code>&nbsp;</td>
+</tr>
+</table>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_org.apache.pig.AlgebraicEvalFunc">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;org.apache.pig.AlgebraicEvalFunc</h3>
+<code>accumulate, cleanup, getValue</code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_org.apache.pig.AccumulatorEvalFunc">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;org.apache.pig.AccumulatorEvalFunc</h3>
+<code>exec</code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn</code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
+<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</div>
+<div class="details">
+<ul class="blockList">
+<li class="blockList">
+<!-- ============ FIELD DETAIL =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="field_detail">
+<!--   -->
+</a>
+<h3>Field Detail</h3>
+<a name="OUTPUT_BAG_NAME_PREFIX">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>OUTPUT_BAG_NAME_PREFIX</h4>
+<pre>public static final&nbsp;java.lang.String OUTPUT_BAG_NAME_PREFIX</pre>
+<div class="block">Prefix for the output bag name.</div>
+<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#datafu.pig.sampling.SimpleRandomSampleWithReplacementElect.OUTPUT_BAG_NAME_PREFIX">Constant Field Values</a></dd></dl>
+</li>
+</ul>
+<a name="tupleFactory">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>tupleFactory</h4>
+<pre>public static final&nbsp;org.apache.pig.data.TupleFactory tupleFactory</pre>
+</li>
+</ul>
+<a name="bagFactory">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>bagFactory</h4>
+<pre>public static final&nbsp;org.apache.pig.data.BagFactory bagFactory</pre>
+</li>
+</ul>
+</li>
+</ul>
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="constructor_detail">
+<!--   -->
+</a>
+<h3>Constructor Detail</h3>
+<a name="SimpleRandomSampleWithReplacementElect()">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>SimpleRandomSampleWithReplacementElect</h4>
+<pre>public&nbsp;SimpleRandomSampleWithReplacementElect()</pre>
+</li>
+</ul>
+</li>
+</ul>
+<!-- ============ METHOD DETAIL ========== -->
+<ul class="blockList">
+<li class="blockList"><a name="method_detail">
+<!--   -->
+</a>
+<h3>Method Detail</h3>
+<a name="getInitial()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getInitial</h4>
+<pre>public&nbsp;java.lang.String&nbsp;getInitial()</pre>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code>getInitial</code>&nbsp;in interface&nbsp;<code>org.apache.pig.Algebraic</code></dd>
+<dt><strong>Specified by:</strong></dt>
+<dd><code>getInitial</code>&nbsp;in class&nbsp;<code>org.apache.pig.AlgebraicEvalFunc&lt;org.apache.pig.data.DataBag&gt;</code></dd>
+</dl>
+</li>
+</ul>
+<a name="getIntermed()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getIntermed</h4>
+<pre>public&nbsp;java.lang.String&nbsp;getIntermed()</pre>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code>getIntermed</code>&nbsp;in interface&nbsp;<code>org.apache.pig.Algebraic</code></dd>
+<dt><strong>Specified by:</strong></dt>
+<dd><code>getIntermed</code>&nbsp;in class&nbsp;<code>org.apache.pig.AlgebraicEvalFunc&lt;org.apache.pig.data.DataBag&gt;</code></dd>
+</dl>
+</li>
+</ul>
+<a name="getFinal()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getFinal</h4>
+<pre>public&nbsp;java.lang.String&nbsp;getFinal()</pre>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code>getFinal</code>&nbsp;in interface&nbsp;<code>org.apache.pig.Algebraic</code></dd>
+<dt><strong>Specified by:</strong></dt>
+<dd><code>getFinal</code>&nbsp;in class&nbsp;<code>org.apache.pig.AlgebraicEvalFunc&lt;org.apache.pig.data.DataBag&gt;</code></dd>
+</dl>
+</li>
+</ul>
+<a name="outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema)">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>outputSchema</h4>
+<pre>public&nbsp;org.apache.pig.impl.logicalLayer.schema.Schema&nbsp;outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema&nbsp;input)</pre>
+<dl>
+<dt><strong>Overrides:</strong></dt>
+<dd><code>outputSchema</code>&nbsp;in class&nbsp;<code>org.apache.pig.EvalFunc&lt;org.apache.pig.data.DataBag&gt;</code></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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
+<!--   -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../index-all.html">Index</a></li>
+<li><a href="../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a href="../../../datafu/pig/sampling/SimpleRandomSample.Intermediate.html" title="class in datafu.pig.sampling"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Final.html" title="class in datafu.pig.sampling"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../index.html?datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html" target="_top">Frames</a></li>
+<li><a href="SimpleRandomSampleWithReplacementElect.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:&nbsp;</li>
+<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
+<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_detail">Method</a></li>
+</ul>
+</div>
+<a name="skip-navbar_bottom">
+<!--   -->
+</a></div>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+</body>
+</html>

Added: incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html
URL: http://svn.apache.org/viewvc/incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html?rev=1822555&view=auto
==============================================================================
--- incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html (added)
+++ incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html Mon Jan 29 19:01:43 2018
@@ -0,0 +1,523 @@
+<!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 (version 1.7.0_79) on Mon Jan 29 10:58:36 PST 2018 -->
+<title>SimpleRandomSampleWithReplacementVote (datafu-pig 1.3.3 API)</title>
+<meta name="date" content="2018-01-29">
+<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
+</head>
+<body>
+<script type="text/javascript"><!--
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="SimpleRandomSampleWithReplacementVote (datafu-pig 1.3.3 API)";
+    }
+//-->
+</script>
+<noscript>
+<div>JavaScript is disabled on your browser.</div>
+</noscript>
+<!-- ========= START OF TOP NAVBAR ======= -->
+<div class="topNav"><a name="navbar_top">
+<!--   -->
+</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
+<!--   -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../index-all.html">Index</a></li>
+<li><a href="../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Intermediate.html" title="class in datafu.pig.sampling"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../datafu/pig/sampling/WeightedReservoirSample.html" title="class in datafu.pig.sampling"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../index.html?datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html" target="_top">Frames</a></li>
+<li><a href="SimpleRandomSampleWithReplacementVote.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:&nbsp;</li>
+<li><a href="#nested_classes_inherited_from_class_org.apache.pig.EvalFunc">Nested</a>&nbsp;|&nbsp;</li>
+<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_detail">Method</a></li>
+</ul>
+</div>
+<a name="skip-navbar_top">
+<!--   -->
+</a></div>
+<!-- ========= END OF TOP NAVBAR ========= -->
+<!-- ======== START OF CLASS DATA ======== -->
+<div class="header">
+<div class="subTitle">datafu.pig.sampling</div>
+<h2 title="Class SimpleRandomSampleWithReplacementVote" class="title">Class SimpleRandomSampleWithReplacementVote</h2>
+</div>
+<div class="contentContainer">
+<ul class="inheritance">
+<li>java.lang.Object</li>
+<li>
+<ul class="inheritance">
+<li>org.apache.pig.EvalFunc&lt;org.apache.pig.data.DataBag&gt;</li>
+<li>
+<ul class="inheritance">
+<li>datafu.pig.sampling.SimpleRandomSampleWithReplacementVote</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+<div class="description">
+<ul class="blockList">
+<li class="blockList">
+<hr>
+<br>
+<pre>public class <span class="strong">SimpleRandomSampleWithReplacementVote</span>
+extends org.apache.pig.EvalFunc&lt;org.apache.pig.data.DataBag&gt;</pre>
+<div class="block">Scalable simple random sampling with replacement (ScaSRSWR).
+
+ <p>
+ This UDF together with <a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html" title="class in datafu.pig.sampling"><code>SimpleRandomSampleWithReplacementElect</code></a> implement a
+ scalable algorithm for simple random sampling with replacement (SRSWR), which is a
+ randomized algorithm with a failure rate less than <a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html#FAILURE_RATE">1.0E-4</a>.
+ </p>
+
+ <p>
+ Let s be the desired sample size. To compute an SRSWR sample of size s, for each output
+ position in {0, 1, ..., s-1}, we want to select an item from the population uniformly
+ at random. This algorithm consists of two stages: vote and election. In the vote stage,
+ this UDF <a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html" title="class in datafu.pig.sampling"><code>SimpleRandomSampleWithReplacementVote</code></a> votes items, called candidates,
+ for each position. In the election stage, the paired UDF
+ <a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html" title="class in datafu.pig.sampling"><code>SimpleRandomSampleWithReplacementElect</code></a> elects one candidate for each position.
+ The algorithm succeeds if we have at least one candidate for each position.
+ </p>
+
+ <p>
+ To use this UDF pair, user needs to provide: 1) the desired sample size, 2) a good
+ lower bound of the population size or the exact size. The input to the vote UDF
+ <a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html" title="class in datafu.pig.sampling"><code>SimpleRandomSampleWithReplacementVote</code></a> is a tuple that consists of a bag of
+ items, the desired sample size (int), and the population size (long) or a good lower
+ bound of it, where the latter two must be scalars. The output from the vote UDF is a
+ tuple that consists of position:int, score:double, and candidate. The input to the
+ elect UDF <a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html" title="class in datafu.pig.sampling"><code>SimpleRandomSampleWithReplacementElect</code></a> is a tuple that contains all
+ candidates voted by the vote UDF for some positions. The output from the elect UDF is a
+ bag of sampled items.
+ </p>
+
+ <p>
+ For example, the following script generates a sample of size 100000 with replacement:
+ </p>
+
+ <pre>
+ DEFINE SRSWR_VOTE  datafu.pig.sampling.SimpleRandomSampleWithReplacementVote();
+ DEFINE SRSWR_ELECT datafu.pig.sampling.SimpleRandomSampleWithReplacementElect();
+
+ item       = LOAD 'input' AS (x:double);
+ summary    = FOREACH (GROUP item ALL) GENERATE COUNT(item) AS count;
+ candidates = FOREACH item GENERATE FLATTEN(SRSWR_VOTE(TOBAG(x), 100000, summary.count));
+ sampled    = FOREACH (GROUP candidates BY position PARALLEL 10) GENERATE FLATTEN(SRSWR_ELECT(candidates));
+ </pre>
+
+ <p>
+ Because for election we only need to group candidates voted for the same position, this
+ algorithm can use many reducers to consume the candidates. See the "PARALLEL 10"
+ statement above. If the item to sample is the entire row, use TOBAG(TOTUPLE(*)).
+ </p>
+
+ <p>
+ SRSWR is heavily used in bootstrapping. Bootstrapping can be done easily with this UDF
+ pair. For example, the following script generates 100 bootstrap samples, computes the
+ mean value for each sample, and then outputs the bootstrap estimates.
+ </p>
+
+ <pre>
+ summary    = FOREACH (GROUP item ALL) GENERATE AVG(item.x) AS mean, COUNT(item) AS count;
+ candidates = FOREACH item GENERATE FLATTEN(SRSWR_VOTE(TOBAG(x), summary.count*100, summary.count));
+ sampled    = FOREACH (GROUP candidates BY (position % 100) PARALLEL 10) GENERATE AVG(SRSWR_ELECT(candidates)) AS mean;
+ bootstrap  = FOREACH (GROUP sampled ALL) GENERATE summary.mean AS mean, sampled.mean AS bootstrapMeans;
+ </pre>
+
+ <p>
+ Another usage of this UDF pair is to generate random pairs or tuples without computing
+ the cross product, where each pair or tuple consist of items from different input
+ sources. Let s be the number of random tuples we want to generate. For each input
+ source, simply use the vote UDF to propose candidates, then join the candidates from
+ different sources by their positions and for each position use the elect UDF to select
+ one candidate from each source to form the pair or tuple for that position.
+ </p>
+
+ <p>
+ The algorithm is a simple extension to the work
+ </p>
+
+ <pre>
+ X. Meng, Scalable Simple Random Sampling and Stratified Sampling, ICML 2013.
+ </pre>
+
+ <p>
+ Basically, for each output position, it performs a random sort on the population
+ (associates each item with a random score independently drawn from the uniform
+ distribution and then sorts items based on the scores), and picks the one that has the
+ smallest score. However, a probabilistic threshold is used to avoid sorting the entire
+ population. For example, if the population size is one billion and the random score
+ generated for an item is 0.9, very likely it won't become the smallest and hence we do
+ not need to propose it as a candidate.
+ </p>
+
+ <p>
+ More precisely, let n be the population size, n1 be a good lower bound of n, s be the
+ sample size, delta be the failure rate, and q be the threshold. For each output
+ position the probability of all random scores being greater than q is (1-q)^n. Thus, if
+ we throw away items with associated scores greater than q, with probability at least 1
+ - s*(1-q)^n, we can still capture the item with the smallest score for each position.
+ Fix delta = s*(1-q)^n and solve for q, we get q = 1-exp(log(delta/s)/n), Note that
+ replacing n by n1 &lt; n can only decrease the failure rate, though at the cost of
+ increased number of candidates. The expected number of candidates is (1 -
+ exp(log(delta/s)/n1)*s*n. When n1 equals n, this number is approximately
+ s*log(s/delta).
+ </p>
+
+ <p>
+ Generating a random score for each (item, position) pair is very expensive and
+ unnecessary. For each item, the number of positions for which it gets voted follows a
+ binomial distribution B(s,q). We can simply draw a number from this distribution,
+ determine the positions by sampling without replacement, and then generate random
+ scores for those positions. This reduces the running time significantly.
+ </p>
+
+ <p>
+ Since for each position we only need the candidate with the smallest score, we
+ implement a combiner to reduce the size of intermediate data in the elect UDF
+ </p>
+
+ <a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html" title="class in datafu.pig.sampling"><code>SimpleRandomSampleWithReplacementElect</code></a>.</div>
+<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.html" title="class in datafu.pig.sampling"><code>SimpleRandomSampleWithReplacementElect</code></a>, 
+<a href="http://en.wikipedia.org/wiki/Bootstrapping_(statistics)" target="_blank">Boostrapping (Wikipedia)</a></dd></dl>
+</li>
+</ul>
+</div>
+<div class="summary">
+<ul class="blockList">
+<li class="blockList">
+<!-- ======== NESTED CLASS SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="nested_class_summary">
+<!--   -->
+</a>
+<h3>Nested Class Summary</h3>
+<ul class="blockList">
+<li class="blockList"><a name="nested_classes_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Nested classes/interfaces inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>org.apache.pig.EvalFunc.SchemaType</code></li>
+</ul>
+</li>
+</ul>
+<!-- =========== FIELD SUMMARY =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="field_summary">
+<!--   -->
+</a>
+<h3>Field Summary</h3>
+<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
+<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
+<tr>
+<th class="colFirst" scope="col">Modifier and Type</th>
+<th class="colLast" scope="col">Field and Description</th>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static java.lang.String</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html#CANDIDATE_FIELD_NAME">CANDIDATE_FIELD_NAME</a></strong></code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>static double</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html#FAILURE_RATE">FAILURE_RATE</a></strong></code>&nbsp;</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static java.lang.String</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html#OUTPUT_BAG_NAME_PREFIX">OUTPUT_BAG_NAME_PREFIX</a></strong></code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>static java.lang.String</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html#POSITION_FIELD_NAME">POSITION_FIELD_NAME</a></strong></code>&nbsp;</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static java.lang.String</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html#SCORE_FIELD_NAME">SCORE_FIELD_NAME</a></strong></code>&nbsp;</td>
+</tr>
+</table>
+<ul class="blockList">
+<li class="blockList"><a name="fields_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Fields inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>log, pigLogger, reporter, returnType</code></li>
+</ul>
+</li>
+</ul>
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="constructor_summary">
+<!--   -->
+</a>
+<h3>Constructor Summary</h3>
+<table class="overviewSummary" 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><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html#SimpleRandomSampleWithReplacementVote()">SimpleRandomSampleWithReplacementVote</a></strong>()</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="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
+<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
+<tr>
+<th class="colFirst" scope="col">Modifier and Type</th>
+<th class="colLast" scope="col">Method and Description</th>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>org.apache.pig.data.DataBag</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html#exec(org.apache.pig.data.Tuple)">exec</a></strong>(org.apache.pig.data.Tuple&nbsp;tuple)</code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>org.apache.pig.impl.logicalLayer.schema.Schema</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html#outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema)">outputSchema</a></strong>(org.apache.pig.impl.logicalLayer.schema.Schema&nbsp;input)</code>&nbsp;</td>
+</tr>
+</table>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn</code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
+<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</div>
+<div class="details">
+<ul class="blockList">
+<li class="blockList">
+<!-- ============ FIELD DETAIL =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="field_detail">
+<!--   -->
+</a>
+<h3>Field Detail</h3>
+<a name="OUTPUT_BAG_NAME_PREFIX">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>OUTPUT_BAG_NAME_PREFIX</h4>
+<pre>public static final&nbsp;java.lang.String OUTPUT_BAG_NAME_PREFIX</pre>
+<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#datafu.pig.sampling.SimpleRandomSampleWithReplacementVote.OUTPUT_BAG_NAME_PREFIX">Constant Field Values</a></dd></dl>
+</li>
+</ul>
+<a name="CANDIDATE_FIELD_NAME">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>CANDIDATE_FIELD_NAME</h4>
+<pre>public static final&nbsp;java.lang.String CANDIDATE_FIELD_NAME</pre>
+<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#datafu.pig.sampling.SimpleRandomSampleWithReplacementVote.CANDIDATE_FIELD_NAME">Constant Field Values</a></dd></dl>
+</li>
+</ul>
+<a name="POSITION_FIELD_NAME">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>POSITION_FIELD_NAME</h4>
+<pre>public static final&nbsp;java.lang.String POSITION_FIELD_NAME</pre>
+<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#datafu.pig.sampling.SimpleRandomSampleWithReplacementVote.POSITION_FIELD_NAME">Constant Field Values</a></dd></dl>
+</li>
+</ul>
+<a name="SCORE_FIELD_NAME">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>SCORE_FIELD_NAME</h4>
+<pre>public static final&nbsp;java.lang.String SCORE_FIELD_NAME</pre>
+<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#datafu.pig.sampling.SimpleRandomSampleWithReplacementVote.SCORE_FIELD_NAME">Constant Field Values</a></dd></dl>
+</li>
+</ul>
+<a name="FAILURE_RATE">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>FAILURE_RATE</h4>
+<pre>public static final&nbsp;double FAILURE_RATE</pre>
+<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#datafu.pig.sampling.SimpleRandomSampleWithReplacementVote.FAILURE_RATE">Constant Field Values</a></dd></dl>
+</li>
+</ul>
+</li>
+</ul>
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="constructor_detail">
+<!--   -->
+</a>
+<h3>Constructor Detail</h3>
+<a name="SimpleRandomSampleWithReplacementVote()">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>SimpleRandomSampleWithReplacementVote</h4>
+<pre>public&nbsp;SimpleRandomSampleWithReplacementVote()</pre>
+</li>
+</ul>
+</li>
+</ul>
+<!-- ============ METHOD DETAIL ========== -->
+<ul class="blockList">
+<li class="blockList"><a name="method_detail">
+<!--   -->
+</a>
+<h3>Method Detail</h3>
+<a name="exec(org.apache.pig.data.Tuple)">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>exec</h4>
+<pre>public&nbsp;org.apache.pig.data.DataBag&nbsp;exec(org.apache.pig.data.Tuple&nbsp;tuple)
+                                 throws java.io.IOException</pre>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code>exec</code>&nbsp;in class&nbsp;<code>org.apache.pig.EvalFunc&lt;org.apache.pig.data.DataBag&gt;</code></dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code>java.io.IOException</code></dd></dl>
+</li>
+</ul>
+<a name="outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema)">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>outputSchema</h4>
+<pre>public&nbsp;org.apache.pig.impl.logicalLayer.schema.Schema&nbsp;outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema&nbsp;input)</pre>
+<dl>
+<dt><strong>Overrides:</strong></dt>
+<dd><code>outputSchema</code>&nbsp;in class&nbsp;<code>org.apache.pig.EvalFunc&lt;org.apache.pig.data.DataBag&gt;</code></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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
+<!--   -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../index-all.html">Index</a></li>
+<li><a href="../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a href="../../../datafu/pig/sampling/SimpleRandomSampleWithReplacementElect.Intermediate.html" title="class in datafu.pig.sampling"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../datafu/pig/sampling/WeightedReservoirSample.html" title="class in datafu.pig.sampling"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../index.html?datafu/pig/sampling/SimpleRandomSampleWithReplacementVote.html" target="_top">Frames</a></li>
+<li><a href="SimpleRandomSampleWithReplacementVote.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:&nbsp;</li>
+<li><a href="#nested_classes_inherited_from_class_org.apache.pig.EvalFunc">Nested</a>&nbsp;|&nbsp;</li>
+<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_detail">Method</a></li>
+</ul>
+</div>
+<a name="skip-navbar_bottom">
+<!--   -->
+</a></div>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+</body>
+</html>

Added: incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/WeightedReservoirSample.Final.html
URL: http://svn.apache.org/viewvc/incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/WeightedReservoirSample.Final.html?rev=1822555&view=auto
==============================================================================
--- incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/WeightedReservoirSample.Final.html (added)
+++ incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/WeightedReservoirSample.Final.html Mon Jan 29 19:01:43 2018
@@ -0,0 +1,298 @@
+<!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 (version 1.7.0_79) on Mon Jan 29 10:58:36 PST 2018 -->
+<title>WeightedReservoirSample.Final (datafu-pig 1.3.3 API)</title>
+<meta name="date" content="2018-01-29">
+<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
+</head>
+<body>
+<script type="text/javascript"><!--
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="WeightedReservoirSample.Final (datafu-pig 1.3.3 API)";
+    }
+//-->
+</script>
+<noscript>
+<div>JavaScript is disabled on your browser.</div>
+</noscript>
+<!-- ========= START OF TOP NAVBAR ======= -->
+<div class="topNav"><a name="navbar_top">
+<!--   -->
+</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
+<!--   -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../index-all.html">Index</a></li>
+<li><a href="../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a href="../../../datafu/pig/sampling/WeightedReservoirSample.html" title="class in datafu.pig.sampling"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../datafu/pig/sampling/WeightedReservoirSample.Initial.html" title="class in datafu.pig.sampling"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../index.html?datafu/pig/sampling/WeightedReservoirSample.Final.html" target="_top">Frames</a></li>
+<li><a href="WeightedReservoirSample.Final.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:&nbsp;</li>
+<li><a href="#nested_classes_inherited_from_class_org.apache.pig.EvalFunc">Nested</a>&nbsp;|&nbsp;</li>
+<li><a href="#fields_inherited_from_class_org.apache.pig.EvalFunc">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#methods_inherited_from_class_datafu.pig.sampling.ReservoirSample.Final">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>Method</li>
+</ul>
+</div>
+<a name="skip-navbar_top">
+<!--   -->
+</a></div>
+<!-- ========= END OF TOP NAVBAR ========= -->
+<!-- ======== START OF CLASS DATA ======== -->
+<div class="header">
+<div class="subTitle">datafu.pig.sampling</div>
+<h2 title="Class WeightedReservoirSample.Final" class="title">Class WeightedReservoirSample.Final</h2>
+</div>
+<div class="contentContainer">
+<ul class="inheritance">
+<li>java.lang.Object</li>
+<li>
+<ul class="inheritance">
+<li>org.apache.pig.EvalFunc&lt;org.apache.pig.data.DataBag&gt;</li>
+<li>
+<ul class="inheritance">
+<li><a href="../../../datafu/pig/sampling/ReservoirSample.Final.html" title="class in datafu.pig.sampling">datafu.pig.sampling.ReservoirSample.Final</a></li>
+<li>
+<ul class="inheritance">
+<li>datafu.pig.sampling.WeightedReservoirSample.Final</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+<div class="description">
+<ul class="blockList">
+<li class="blockList">
+<dl>
+<dt>Enclosing class:</dt>
+<dd><a href="../../../datafu/pig/sampling/WeightedReservoirSample.html" title="class in datafu.pig.sampling">WeightedReservoirSample</a></dd>
+</dl>
+<hr>
+<br>
+<pre>public static class <span class="strong">WeightedReservoirSample.Final</span>
+extends <a href="../../../datafu/pig/sampling/ReservoirSample.Final.html" title="class in datafu.pig.sampling">ReservoirSample.Final</a></pre>
+</li>
+</ul>
+</div>
+<div class="summary">
+<ul class="blockList">
+<li class="blockList">
+<!-- ======== NESTED CLASS SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="nested_class_summary">
+<!--   -->
+</a>
+<h3>Nested Class Summary</h3>
+<ul class="blockList">
+<li class="blockList"><a name="nested_classes_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Nested classes/interfaces inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>org.apache.pig.EvalFunc.SchemaType</code></li>
+</ul>
+</li>
+</ul>
+<!-- =========== FIELD SUMMARY =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="field_summary">
+<!--   -->
+</a>
+<h3>Field Summary</h3>
+<ul class="blockList">
+<li class="blockList"><a name="fields_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Fields inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>log, pigLogger, reporter, returnType</code></li>
+</ul>
+</li>
+</ul>
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="constructor_summary">
+<!--   -->
+</a>
+<h3>Constructor Summary</h3>
+<table class="overviewSummary" 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><strong><a href="../../../datafu/pig/sampling/WeightedReservoirSample.Final.html#WeightedReservoirSample.Final()">WeightedReservoirSample.Final</a></strong>()</code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colOne"><code><strong><a href="../../../datafu/pig/sampling/WeightedReservoirSample.Final.html#WeightedReservoirSample.Final(java.lang.String,%20java.lang.String)">WeightedReservoirSample.Final</a></strong>(java.lang.String&nbsp;strNumSamples,
+                             java.lang.String&nbsp;strWeightIdx)</code>&nbsp;</td>
+</tr>
+</table>
+</li>
+</ul>
+<!-- ========== METHOD SUMMARY =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="method_summary">
+<!--   -->
+</a>
+<h3>Method Summary</h3>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_datafu.pig.sampling.ReservoirSample.Final">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;datafu.pig.sampling.<a href="../../../datafu/pig/sampling/ReservoirSample.Final.html" title="class in datafu.pig.sampling">ReservoirSample.Final</a></h3>
+<code><a href="../../../datafu/pig/sampling/ReservoirSample.Final.html#exec(org.apache.pig.data.Tuple)">exec</a></code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, outputSchema, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn</code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
+<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</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="WeightedReservoirSample.Final()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>WeightedReservoirSample.Final</h4>
+<pre>public&nbsp;WeightedReservoirSample.Final()</pre>
+</li>
+</ul>
+<a name="WeightedReservoirSample.Final(java.lang.String, java.lang.String)">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>WeightedReservoirSample.Final</h4>
+<pre>public&nbsp;WeightedReservoirSample.Final(java.lang.String&nbsp;strNumSamples,
+                             java.lang.String&nbsp;strWeightIdx)</pre>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</div>
+</div>
+<!-- ========= END OF CLASS DATA ========= -->
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<div class="bottomNav"><a name="navbar_bottom">
+<!--   -->
+</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
+<!--   -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../index-all.html">Index</a></li>
+<li><a href="../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a href="../../../datafu/pig/sampling/WeightedReservoirSample.html" title="class in datafu.pig.sampling"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../datafu/pig/sampling/WeightedReservoirSample.Initial.html" title="class in datafu.pig.sampling"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../index.html?datafu/pig/sampling/WeightedReservoirSample.Final.html" target="_top">Frames</a></li>
+<li><a href="WeightedReservoirSample.Final.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:&nbsp;</li>
+<li><a href="#nested_classes_inherited_from_class_org.apache.pig.EvalFunc">Nested</a>&nbsp;|&nbsp;</li>
+<li><a href="#fields_inherited_from_class_org.apache.pig.EvalFunc">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#methods_inherited_from_class_datafu.pig.sampling.ReservoirSample.Final">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>Method</li>
+</ul>
+</div>
+<a name="skip-navbar_bottom">
+<!--   -->
+</a></div>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+</body>
+</html>

Added: incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/WeightedReservoirSample.Initial.html
URL: http://svn.apache.org/viewvc/incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/WeightedReservoirSample.Initial.html?rev=1822555&view=auto
==============================================================================
--- incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/WeightedReservoirSample.Initial.html (added)
+++ incubator/datafu/site/docs/datafu/1.3.3/datafu/pig/sampling/WeightedReservoirSample.Initial.html Mon Jan 29 19:01:43 2018
@@ -0,0 +1,337 @@
+<!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 (version 1.7.0_79) on Mon Jan 29 10:58:36 PST 2018 -->
+<title>WeightedReservoirSample.Initial (datafu-pig 1.3.3 API)</title>
+<meta name="date" content="2018-01-29">
+<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
+</head>
+<body>
+<script type="text/javascript"><!--
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="WeightedReservoirSample.Initial (datafu-pig 1.3.3 API)";
+    }
+//-->
+</script>
+<noscript>
+<div>JavaScript is disabled on your browser.</div>
+</noscript>
+<!-- ========= START OF TOP NAVBAR ======= -->
+<div class="topNav"><a name="navbar_top">
+<!--   -->
+</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
+<!--   -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../index-all.html">Index</a></li>
+<li><a href="../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a href="../../../datafu/pig/sampling/WeightedReservoirSample.Final.html" title="class in datafu.pig.sampling"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../datafu/pig/sampling/WeightedReservoirSample.Intermediate.html" title="class in datafu.pig.sampling"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../index.html?datafu/pig/sampling/WeightedReservoirSample.Initial.html" target="_top">Frames</a></li>
+<li><a href="WeightedReservoirSample.Initial.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:&nbsp;</li>
+<li><a href="#nested_classes_inherited_from_class_org.apache.pig.EvalFunc">Nested</a>&nbsp;|&nbsp;</li>
+<li><a href="#fields_inherited_from_class_datafu.pig.sampling.ReservoirSample.Initial">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li>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">datafu.pig.sampling</div>
+<h2 title="Class WeightedReservoirSample.Initial" class="title">Class WeightedReservoirSample.Initial</h2>
+</div>
+<div class="contentContainer">
+<ul class="inheritance">
+<li>java.lang.Object</li>
+<li>
+<ul class="inheritance">
+<li>org.apache.pig.EvalFunc&lt;org.apache.pig.data.Tuple&gt;</li>
+<li>
+<ul class="inheritance">
+<li><a href="../../../datafu/pig/sampling/ReservoirSample.Initial.html" title="class in datafu.pig.sampling">datafu.pig.sampling.ReservoirSample.Initial</a></li>
+<li>
+<ul class="inheritance">
+<li>datafu.pig.sampling.WeightedReservoirSample.Initial</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+<div class="description">
+<ul class="blockList">
+<li class="blockList">
+<dl>
+<dt>Enclosing class:</dt>
+<dd><a href="../../../datafu/pig/sampling/WeightedReservoirSample.html" title="class in datafu.pig.sampling">WeightedReservoirSample</a></dd>
+</dl>
+<hr>
+<br>
+<pre>public static class <span class="strong">WeightedReservoirSample.Initial</span>
+extends <a href="../../../datafu/pig/sampling/ReservoirSample.Initial.html" title="class in datafu.pig.sampling">ReservoirSample.Initial</a></pre>
+</li>
+</ul>
+</div>
+<div class="summary">
+<ul class="blockList">
+<li class="blockList">
+<!-- ======== NESTED CLASS SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="nested_class_summary">
+<!--   -->
+</a>
+<h3>Nested Class Summary</h3>
+<ul class="blockList">
+<li class="blockList"><a name="nested_classes_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Nested classes/interfaces inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>org.apache.pig.EvalFunc.SchemaType</code></li>
+</ul>
+</li>
+</ul>
+<!-- =========== FIELD SUMMARY =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="field_summary">
+<!--   -->
+</a>
+<h3>Field Summary</h3>
+<ul class="blockList">
+<li class="blockList"><a name="fields_inherited_from_class_datafu.pig.sampling.ReservoirSample.Initial">
+<!--   -->
+</a>
+<h3>Fields inherited from class&nbsp;datafu.pig.sampling.<a href="../../../datafu/pig/sampling/ReservoirSample.Initial.html" title="class in datafu.pig.sampling">ReservoirSample.Initial</a></h3>
+<code><a href="../../../datafu/pig/sampling/ReservoirSample.Initial.html#scoreGen">scoreGen</a></code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="fields_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Fields inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>log, pigLogger, reporter, returnType</code></li>
+</ul>
+</li>
+</ul>
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="constructor_summary">
+<!--   -->
+</a>
+<h3>Constructor Summary</h3>
+<table class="overviewSummary" 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><strong><a href="../../../datafu/pig/sampling/WeightedReservoirSample.Initial.html#WeightedReservoirSample.Initial()">WeightedReservoirSample.Initial</a></strong>()</code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colOne"><code><strong><a href="../../../datafu/pig/sampling/WeightedReservoirSample.Initial.html#WeightedReservoirSample.Initial(java.lang.String,%20java.lang.String)">WeightedReservoirSample.Initial</a></strong>(java.lang.String&nbsp;strNumSamples,
+                               java.lang.String&nbsp;strWeightIdx)</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="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
+<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
+<tr>
+<th class="colFirst" scope="col">Modifier and Type</th>
+<th class="colLast" scope="col">Method and Description</th>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>protected datafu.pig.sampling.ScoredTuple.ScoreGenerator</code></td>
+<td class="colLast"><code><strong><a href="../../../datafu/pig/sampling/WeightedReservoirSample.Initial.html#getScoreGenerator()">getScoreGenerator</a></strong>()</code>&nbsp;</td>
+</tr>
+</table>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_datafu.pig.sampling.ReservoirSample.Initial">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;datafu.pig.sampling.<a href="../../../datafu/pig/sampling/ReservoirSample.Initial.html" title="class in datafu.pig.sampling">ReservoirSample.Initial</a></h3>
+<code><a href="../../../datafu/pig/sampling/ReservoirSample.Initial.html#exec(org.apache.pig.data.Tuple)">exec</a></code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_org.apache.pig.EvalFunc">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;org.apache.pig.EvalFunc</h3>
+<code>allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, outputSchema, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn</code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
+<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</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="WeightedReservoirSample.Initial()">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>WeightedReservoirSample.Initial</h4>
+<pre>public&nbsp;WeightedReservoirSample.Initial()</pre>
+</li>
+</ul>
+<a name="WeightedReservoirSample.Initial(java.lang.String, java.lang.String)">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>WeightedReservoirSample.Initial</h4>
+<pre>public&nbsp;WeightedReservoirSample.Initial(java.lang.String&nbsp;strNumSamples,
+                               java.lang.String&nbsp;strWeightIdx)</pre>
+</li>
+</ul>
+</li>
+</ul>
+<!-- ============ METHOD DETAIL ========== -->
+<ul class="blockList">
+<li class="blockList"><a name="method_detail">
+<!--   -->
+</a>
+<h3>Method Detail</h3>
+<a name="getScoreGenerator()">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>getScoreGenerator</h4>
+<pre>protected&nbsp;datafu.pig.sampling.ScoredTuple.ScoreGenerator&nbsp;getScoreGenerator()</pre>
+<dl>
+<dt><strong>Overrides:</strong></dt>
+<dd><code><a href="../../../datafu/pig/sampling/ReservoirSample.Initial.html#getScoreGenerator()">getScoreGenerator</a></code>&nbsp;in class&nbsp;<code><a href="../../../datafu/pig/sampling/ReservoirSample.Initial.html" title="class in datafu.pig.sampling">ReservoirSample.Initial</a></code></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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
+<!--   -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../index-all.html">Index</a></li>
+<li><a href="../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a href="../../../datafu/pig/sampling/WeightedReservoirSample.Final.html" title="class in datafu.pig.sampling"><span class="strong">Prev Class</span></a></li>
+<li><a href="../../../datafu/pig/sampling/WeightedReservoirSample.Intermediate.html" title="class in datafu.pig.sampling"><span class="strong">Next Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../index.html?datafu/pig/sampling/WeightedReservoirSample.Initial.html" target="_top">Frames</a></li>
+<li><a href="WeightedReservoirSample.Initial.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:&nbsp;</li>
+<li><a href="#nested_classes_inherited_from_class_org.apache.pig.EvalFunc">Nested</a>&nbsp;|&nbsp;</li>
+<li><a href="#fields_inherited_from_class_datafu.pig.sampling.ReservoirSample.Initial">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method_summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li>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 ======= -->
+</body>
+</html>