accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r863067 [4/7] - in /websites/staging/accumulo/trunk/content: ./ 1.5/ 1.5/examples/ 1.5/images/ downloads/
Date Sat, 25 May 2013 02:56:29 GMT
Added: websites/staging/accumulo/trunk/content/1.5/examples/client.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/client.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/client.html Sat May 25 02:56:29 2013
@@ -0,0 +1,165 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo Client Examples</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo Client Examples</h1>
+    <p>This documents how you run the simplest java examples.</p>
+<p>Using the accumulo command, you can run the simple client examples by providing their 
+class name, and enough arguments to find your accumulo instance.  For example,
+the Flush class will flush a table:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">PACKAGE</span><span class="o">=</span><span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">client</span>
+<span class="nv">$</span> <span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="nv">$PACKAGE</span><span class="o">.</span><span class="n">Flush</span> <span class="o">-</span><span class="n">u</span> <span class="n">root</span> <span class="o">-</span><span class="n">p</span> <span class="n">mypassword</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeeper</span> <span class="o">-</span><span class="n">t</span> <span class="n">trace</span>
+</pre></div>
+
+
+<p>The very simple RowOperations class demonstrates how to read and write rows using the BatchWriter
+and Scanner:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="nv">$PACKAGE</span><span class="o">.</span><span class="n">RowOperations</span> <span class="o">-</span><span class="n">u</span> <span class="n">root</span> <span class="o">-</span><span class="n">p</span> <span class="n">mypassword</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeeper</span> 
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">738</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">everything</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">744</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row1</span> <span class="n">column:1</span> <span class="o">[]</span> <span class="mi">1358192724640</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">744</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row1</span> <span class="n">column:2</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">744</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row1</span> <span class="n">column:3</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">744</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row1</span> <span class="n">column:4</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">746</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row2</span> <span class="n">column:1</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">746</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row2</span> <span class="n">column:2</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">746</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row2</span> <span class="n">column:3</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">746</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row2</span> <span class="n">column:4</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">747</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row3</span> <span class="n">column:1</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">747</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row3</span> <span class="n">column:2</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">747</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row3</span> <span class="n">column:3</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">747</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row3</span> <span class="n">column:4</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">756</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">row1</span> <span class="ow">and</span> <span class="n">row3</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">757</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row1</span> <span class="n">column:1</span> <span class="o">[]</span> <span class="mi">1358192724640</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">757</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row1</span> <span class="n">column:2</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">757</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row1</span> <span class="n">column:3</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">757</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row1</span> <span class="n">column:4</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">761</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row3</span> <span class="n">column:1</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">761</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row3</span> <span class="n">column:2</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">761</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row3</span> <span class="n">column:3</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">761</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row3</span> <span class="n">column:4</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">765</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">just</span> <span class="n">row3</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">769</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row3</span> <span class="n">column:1</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">770</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row3</span> <span class="n">column:2</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">770</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row3</span> <span class="n">column:3</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">14</span> <span class="mi">14</span><span class="p">:</span><span class="mi">45</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">770</span> <span class="p">[</span><span class="n">client</span><span class="o">.</span><span class="n">RowOperations</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Key:</span> <span class="n">row3</span> <span class="n">column:4</span> <span class="o">[]</span> <span class="mi">1358192724642</span> <span class="n">false</span> <span class="n">Value:</span> <span class="n">This</span> <span class="n">is</span> <span class="n">the</span> <span class="n">value</span> <span class="k">for</span> <span class="n">this</span> <span class="n">key</span>
+</pre></div>
+
+
+<p>To create a table, write to it and read from it:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="nv">$PACKAGE</span><span class="o">.</span><span class="n">ReadWriteExample</span> <span class="o">-</span><span class="n">u</span> <span class="n">root</span> <span class="o">-</span><span class="n">p</span> <span class="n">mypassword</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeeper</span> <span class="o">--</span><span class="n">createtable</span> <span class="o">--</span><span class="n">create</span> <span class="o">--</span><span class="nb">read</span> 
+<span class="n">hello</span><span class="nv">%00</span><span class="p">;</span> <span class="n">datatypes:xml</span> <span class="p">[</span><span class="n">LEVEL1</span><span class="o">|</span><span class="n">GROUP1</span><span class="p">]</span> <span class="mi">1358192329450</span> <span class="n">false</span> <span class="o">-&gt;</span> <span class="n">world</span>
+<span class="n">hello</span><span class="nv">%01</span><span class="p">;</span> <span class="n">datatypes:xml</span> <span class="p">[</span><span class="n">LEVEL1</span><span class="o">|</span><span class="n">GROUP1</span><span class="p">]</span> <span class="mi">1358192329450</span> <span class="n">false</span> <span class="o">-&gt;</span> <span class="n">world</span>
+<span class="n">hello</span><span class="nv">%02</span><span class="p">;</span> <span class="n">datatypes:xml</span> <span class="p">[</span><span class="n">LEVEL1</span><span class="o">|</span><span class="n">GROUP1</span><span class="p">]</span> <span class="mi">1358192329450</span> <span class="n">false</span> <span class="o">-&gt;</span> <span class="n">world</span>
+<span class="n">hello</span><span class="nv">%03</span><span class="p">;</span> <span class="n">datatypes:xml</span> <span class="p">[</span><span class="n">LEVEL1</span><span class="o">|</span><span class="n">GROUP1</span><span class="p">]</span> <span class="mi">1358192329450</span> <span class="n">false</span> <span class="o">-&gt;</span> <span class="n">world</span>
+<span class="n">hello</span><span class="nv">%04</span><span class="p">;</span> <span class="n">datatypes:xml</span> <span class="p">[</span><span class="n">LEVEL1</span><span class="o">|</span><span class="n">GROUP1</span><span class="p">]</span> <span class="mi">1358192329450</span> <span class="n">false</span> <span class="o">-&gt;</span> <span class="n">world</span>
+<span class="n">hello</span><span class="nv">%05</span><span class="p">;</span> <span class="n">datatypes:xml</span> <span class="p">[</span><span class="n">LEVEL1</span><span class="o">|</span><span class="n">GROUP1</span><span class="p">]</span> <span class="mi">1358192329450</span> <span class="n">false</span> <span class="o">-&gt;</span> <span class="n">world</span>
+<span class="n">hello</span><span class="nv">%06</span><span class="p">;</span> <span class="n">datatypes:xml</span> <span class="p">[</span><span class="n">LEVEL1</span><span class="o">|</span><span class="n">GROUP1</span><span class="p">]</span> <span class="mi">1358192329450</span> <span class="n">false</span> <span class="o">-&gt;</span> <span class="n">world</span>
+<span class="n">hello</span><span class="nv">%07</span><span class="p">;</span> <span class="n">datatypes:xml</span> <span class="p">[</span><span class="n">LEVEL1</span><span class="o">|</span><span class="n">GROUP1</span><span class="p">]</span> <span class="mi">1358192329450</span> <span class="n">false</span> <span class="o">-&gt;</span> <span class="n">world</span>
+<span class="n">hello</span><span class="nv">%08</span><span class="p">;</span> <span class="n">datatypes:xml</span> <span class="p">[</span><span class="n">LEVEL1</span><span class="o">|</span><span class="n">GROUP1</span><span class="p">]</span> <span class="mi">1358192329450</span> <span class="n">false</span> <span class="o">-&gt;</span> <span class="n">world</span>
+<span class="n">hello</span><span class="nv">%09</span><span class="p">;</span> <span class="n">datatypes:xml</span> <span class="p">[</span><span class="n">LEVEL1</span><span class="o">|</span><span class="n">GROUP1</span><span class="p">]</span> <span class="mi">1358192329450</span> <span class="n">false</span> <span class="o">-&gt;</span> <span class="n">world</span>
+</pre></div>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/combiner.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/combiner.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/combiner.html Sat May 25 02:56:29 2013
@@ -0,0 +1,163 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo Combiner Example</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo Combiner Example</h1>
+    <p>This tutorial uses the following Java class, which can be found in org.apache.accumulo.examples.simple.combiner in the simple-examples module:</p>
+<ul>
+<li>StatsCombiner.java - a combiner that calculates max, min, sum, and count</li>
+</ul>
+<p>This is a simple combiner example.  To build this example run maven and then
+copy the produced jar into the accumulo lib dir.  This is already done in the
+tar distribution.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">shell</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span>
+<span class="n">Enter</span> <span class="n">current</span> <span class="n">password</span> <span class="k">for</span> <span class="s">&#39;username&#39;</span><span class="nv">@</span><span class="err">&#39;</span><span class="nv">instance</span><span class="s">&#39;: ***</span>
+
+<span class="s">Shell - Apache Accumulo Interactive Shell</span>
+<span class="s">- </span>
+<span class="s">- version: 1.5.0</span>
+<span class="s">- instance name: instance</span>
+<span class="s">- instance id: 00000000-0000-0000-0000-000000000000</span>
+<span class="s">- </span>
+<span class="s">- type &#39;</span><span class="n">help</span><span class="err">&#39;</span> <span class="k">for</span> <span class="n">a</span> <span class="n">list</span> <span class="n">of</span> <span class="n">available</span> <span class="n">commands</span>
+<span class="o">-</span> 
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">runners</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">runners</span><span class="o">&gt;</span> <span class="n">setiter</span> <span class="o">-</span><span class="n">t</span> <span class="n">runners</span> <span class="o">-</span><span class="n">p</span> <span class="mi">10</span> <span class="o">-</span><span class="n">scan</span> <span class="o">-</span><span class="n">minc</span> <span class="o">-</span><span class="n">majc</span> <span class="o">-</span><span class="n">n</span> <span class="n">decStats</span> <span class="o">-</span><span class="n">class</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">combiner</span><span class="o">.</span><span class="n">StatsCombiner</span>
+<span class="n">Combiner</span> <span class="n">that</span> <span class="n">keeps</span> <span class="n">track</span> <span class="n">of</span> <span class="n">min</span><span class="p">,</span> <span class="n">max</span><span class="p">,</span> <span class="n">sum</span><span class="p">,</span> <span class="ow">and</span> <span class="n">count</span>
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">StatsCombiner</span> <span class="n">parameter</span> <span class="n">all</span><span class="p">,</span> <span class="n">set</span> <span class="n">to</span> <span class="n">true</span> <span class="n">to</span> <span class="n">apply</span> <span class="n">Combiner</span> <span class="n">to</span> <span class="n">every</span> <span class="n">column</span><span class="p">,</span> <span class="n">otherwise</span> <span class="n">leave</span> <span class="n">blank</span><span class="o">.</span> <span class="k">if</span> <span class="n">true</span><span class="p">,</span> <span class="n">columns</span> <span class="n">option</span> <span class="n">will</span> <span class="n">be</span> <span class="n">ignored</span><span class="o">.</span><span class="p">:</span> 
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">StatsCombiner</span> <span class="n">parameter</span> <span class="n">columns</span><span class="p">,</span> <span class="o">&lt;</span><span class="n">col</span> <span class="n">fam</span><span class="o">&gt;</span><span class="p">[:</span><span class="o">&lt;</span><span class="n">col</span> <span class="n">qual</span><span class="o">&gt;</span><span class="p">]{,</span><span class="o">&lt;</span><span class="n">col</span> <span class="n">fam</span><span class="o">&gt;</span><span class="p">[:</span><span class="o">&lt;</span><span class="n">col</span> <span class="n">qual</span><span class="o">&gt;</span><span class="p">]}</span> <span class="n">escape</span> <span class="n">non</span> <span class="n">aplhanum</span> <span class="n">chars</span> <span class="n">using</span> <span class="nv">%</span><span class="err">&lt;</span><span class="nv">hex</span><span class="o">&gt;.</span><span class
 ="p">:</span> <span class="nb">stat</span>
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">StatsCombiner</span> <span class="n">parameter</span> <span class="n">radix</span><span class="p">,</span> <span class="n">radix</span><span class="o">/</span><span class="n">base</span> <span class="n">of</span> <span class="n">the</span> <span class="n">numbers:</span> <span class="mi">10</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">runners</span><span class="o">&gt;</span> <span class="n">setiter</span> <span class="o">-</span><span class="n">t</span> <span class="n">runners</span> <span class="o">-</span><span class="n">p</span> <span class="mi">11</span> <span class="o">-</span><span class="n">scan</span> <span class="o">-</span><span class="n">minc</span> <span class="o">-</span><span class="n">majc</span> <span class="o">-</span><span class="n">n</span> <span class="n">hexStats</span> <span class="o">-</span><span class="n">class</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">combiner</span><span class="o">.</span><span class="n">StatsCombiner</span>
+<span class="n">Combiner</span> <span class="n">that</span> <span class="n">keeps</span> <span class="n">track</span> <span class="n">of</span> <span class="n">min</span><span class="p">,</span> <span class="n">max</span><span class="p">,</span> <span class="n">sum</span><span class="p">,</span> <span class="ow">and</span> <span class="n">count</span>
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">StatsCombiner</span> <span class="n">parameter</span> <span class="n">all</span><span class="p">,</span> <span class="n">set</span> <span class="n">to</span> <span class="n">true</span> <span class="n">to</span> <span class="n">apply</span> <span class="n">Combiner</span> <span class="n">to</span> <span class="n">every</span> <span class="n">column</span><span class="p">,</span> <span class="n">otherwise</span> <span class="n">leave</span> <span class="n">blank</span><span class="o">.</span> <span class="k">if</span> <span class="n">true</span><span class="p">,</span> <span class="n">columns</span> <span class="n">option</span> <span class="n">will</span> <span class="n">be</span> <span class="n">ignored</span><span class="o">.</span><span class="p">:</span> 
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">StatsCombiner</span> <span class="n">parameter</span> <span class="n">columns</span><span class="p">,</span> <span class="o">&lt;</span><span class="n">col</span> <span class="n">fam</span><span class="o">&gt;</span><span class="p">[:</span><span class="o">&lt;</span><span class="n">col</span> <span class="n">qual</span><span class="o">&gt;</span><span class="p">]{,</span><span class="o">&lt;</span><span class="n">col</span> <span class="n">fam</span><span class="o">&gt;</span><span class="p">[:</span><span class="o">&lt;</span><span class="n">col</span> <span class="n">qual</span><span class="o">&gt;</span><span class="p">]}</span> <span class="n">escape</span> <span class="n">non</span> <span class="n">aplhanum</span> <span class="n">chars</span> <span class="n">using</span> <span class="nv">%</span><span class="err">&lt;</span><span class="nv">hex</span><span class="o">&gt;.</span><span class
 ="p">:</span> <span class="n">hstat</span>
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">StatsCombiner</span> <span class="n">parameter</span> <span class="n">radix</span><span class="p">,</span> <span class="n">radix</span><span class="o">/</span><span class="n">base</span> <span class="n">of</span> <span class="n">the</span> <span class="n">numbers:</span> <span class="mi">16</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">runners</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="mi">123456</span> <span class="n">name</span> <span class="n">first</span> <span class="n">Joe</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">runners</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="mi">123456</span> <span class="nb">stat</span> <span class="n">marathon</span> <span class="mi">240</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">runners</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="mi">123456</span> <span class="n">name:first</span> <span class="o">[]</span>    <span class="n">Joe</span>
+<span class="mi">123456</span> <span class="nb">stat</span><span class="p">:</span><span class="n">marathon</span> <span class="o">[]</span>    <span class="mi">240</span><span class="p">,</span><span class="mi">240</span><span class="p">,</span><span class="mi">240</span><span class="p">,</span><span class="mi">1</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">runners</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="mi">123456</span> <span class="nb">stat</span> <span class="n">marathon</span> <span class="mi">230</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">runners</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="mi">123456</span> <span class="nb">stat</span> <span class="n">marathon</span> <span class="mi">220</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">runners</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="mi">123456</span> <span class="n">name:first</span> <span class="o">[]</span>    <span class="n">Joe</span>
+<span class="mi">123456</span> <span class="nb">stat</span><span class="p">:</span><span class="n">marathon</span> <span class="o">[]</span>    <span class="mi">220</span><span class="p">,</span><span class="mi">240</span><span class="p">,</span><span class="mi">690</span><span class="p">,</span><span class="mi">3</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">runners</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="mi">123456</span> <span class="n">hstat</span> <span class="n">virtualMarathon</span> <span class="mi">6</span><span class="n">a</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">runners</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="mi">123456</span> <span class="n">hstat</span> <span class="n">virtualMarathon</span> <span class="mi">6</span><span class="n">b</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">runners</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="mi">123456</span> <span class="n">hstat:virtualMarathon</span> <span class="o">[]</span>    <span class="mi">6</span><span class="n">a</span><span class="p">,</span><span class="mi">6</span><span class="n">b</span><span class="p">,</span><span class="n">d5</span><span class="p">,</span><span class="mi">2</span>
+<span class="mi">123456</span> <span class="n">name:first</span> <span class="o">[]</span>    <span class="n">Joe</span>
+<span class="mi">123456</span> <span class="nb">stat</span><span class="p">:</span><span class="n">marathon</span> <span class="o">[]</span>    <span class="mi">220</span><span class="p">,</span><span class="mi">240</span><span class="p">,</span><span class="mi">690</span><span class="p">,</span><span class="mi">3</span>
+</pre></div>
+
+
+<p>In this example a table is created and the example stats combiner is applied to
+the column family stat and hstat.  The stats combiner computes min,max,sum, and
+count.  It can be configured to use a different base or radix.  In the example
+above the column family stat is configured for base 10 and the column family
+hstat is configured for base 16.</p>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/constraints.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/constraints.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/constraints.html Sat May 25 02:56:29 2013
@@ -0,0 +1,145 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo Constraints Example</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo Constraints Example</h1>
+    <p>This tutorial uses the following Java classes, which can be found in org.apache.accumulo.examples.simple.constraints in the simple-examples module:</p>
+<ul>
+<li>AlphaNumKeyConstraint.java - a constraint that requires alphanumeric keys</li>
+<li>NumericValueConstraint.java - a constraint that requires numeric string values</li>
+</ul>
+<p>This an example of how to create a table with constraints. Below a table is
+created with two example constraints.  One constraints does not allow non alpha
+numeric keys.  The other constraint does not allow non numeric values. Two
+inserts that violate these constraints are attempted and denied.  The scan at
+the end shows the inserts were not allowed. </p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">shell</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span>
+
+<span class="n">Shell</span> <span class="o">-</span> <span class="n">Apache</span> <span class="n">Accumulo</span> <span class="n">Interactive</span> <span class="n">Shell</span>
+<span class="o">-</span> 
+<span class="o">-</span> <span class="n">version:</span> <span class="mf">1.5.0</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">name:</span> <span class="n">instance</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">id:</span> <span class="mo">00000000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">000000000000</span>
+<span class="o">-</span> 
+<span class="o">-</span> <span class="n">type</span> <span class="s">&#39;help&#39;</span> <span class="k">for</span> <span class="n">a</span> <span class="n">list</span> <span class="n">of</span> <span class="n">available</span> <span class="n">commands</span>
+<span class="o">-</span> 
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">testConstraints</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span> <span class="n">constraint</span> <span class="o">-</span><span class="n">a</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">constraints</span><span class="o">.</span><span class="n">NumericValueConstraint</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span> <span class="n">constraint</span> <span class="o">-</span><span class="n">a</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">constraints</span><span class="o">.</span><span class="n">AlphaNumKeyConstraint</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">r1</span> <span class="n">cf1</span> <span class="n">cq1</span> <span class="mi">1111</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">r1</span> <span class="n">cf1</span> <span class="n">cq1</span> <span class="n">ABC</span>
+  <span class="n">Constraint</span> <span class="n">Failures:</span>
+      <span class="n">ConstraintViolationSummary</span><span class="p">(</span><span class="n">constrainClass:org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">constraints</span><span class="o">.</span><span class="n">NumericValueConstraint</span><span class="p">,</span> <span class="n">violationCode:1</span><span class="p">,</span> <span class="n">violationDescription:Value</span> <span class="n">is</span> <span class="ow">not</span> <span class="n">numeric</span><span class="p">,</span> <span class="n">numberOfViolatingMutations:1</span><span class="p">)</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">r1</span><span class="o">!</span> <span class="n">cf1</span> <span class="n">cq1</span> <span class="n">ABC</span> 
+  <span class="n">Constraint</span> <span class="n">Failures:</span>
+      <span class="n">ConstraintViolationSummary</span><span class="p">(</span><span class="n">constrainClass:org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">constraints</span><span class="o">.</span><span class="n">NumericValueConstraint</span><span class="p">,</span> <span class="n">violationCode:1</span><span class="p">,</span> <span class="n">violationDescription:Value</span> <span class="n">is</span> <span class="ow">not</span> <span class="n">numeric</span><span class="p">,</span> <span class="n">numberOfViolatingMutations:1</span><span class="p">)</span>
+      <span class="n">ConstraintViolationSummary</span><span class="p">(</span><span class="n">constrainClass:org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">constraints</span><span class="o">.</span><span class="n">AlphaNumKeyConstraint</span><span class="p">,</span> <span class="n">violationCode:1</span><span class="p">,</span> <span class="n">violationDescription:Row</span> <span class="n">was</span> <span class="ow">not</span> <span class="n">alpha</span> <span class="n">numeric</span><span class="p">,</span> <span class="n">numberOfViolatingMutations:1</span><span class="p">)</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="n">r1</span> <span class="n">cf1:cq1</span> <span class="o">[]</span>    <span class="mi">1111</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span>
+</pre></div>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/dirlist.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/dirlist.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/dirlist.html Sat May 25 02:56:29 2013
@@ -0,0 +1,209 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo File System Archive</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo File System Archive</h1>
+    <p>This example stores filesystem information in accumulo.  The example stores the information in the following three tables.  More information about the table structures can be found at the end of README.dirlist.</p>
+<ul>
+<li>directory table : This table stores information about the filesystem directory structure.</li>
+<li>index table     : This table stores a file name index.  It can be used to quickly find files with given name, suffix, or prefix.</li>
+<li>data table      : This table stores the file data.  File with duplicate data are only stored once.<br />
+</li>
+</ul>
+<p>This example shows how to use Accumulo to store a file system history.  It has the following classes:</p>
+<ul>
+<li>Ingest.java - Recursively lists the files and directories under a given path, ingests their names and file info into one Accumulo table, indexes the file names in a separate table, and the file data into a third table.</li>
+<li>QueryUtil.java - Provides utility methods for getting the info for a file, listing the contents of a directory, and performing single wild card searches on file or directory names.</li>
+<li>Viewer.java - Provides a GUI for browsing the file system information stored in Accumulo.</li>
+<li>FileCount.java - Computes recursive counts over file system information and stores them back into the same Accumulo table.</li>
+</ul>
+<p>To begin, ingest some data with Ingest.java.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="sr">/accumulo org.apache.accumulo.examples.simple.dirlist.Ingest -i instance -z zookeepers -u username -p password --vis exampleVis --chunkSize 100000 /</span><span class="nb">local</span><span class="sr">/username/</span><span class="n">workspace</span>
+</pre></div>
+
+
+<p>This may take some time if there are large files in the /local/username/workspace directory.  If you use 0 instead of 100000 on the command line, the ingest will run much faster, but it will not put any file data into Accumulo (the dataTable will be empty).
+Note that running this example will create tables dirTable, indexTable, and dataTable in Accumulo that you should delete when you have completed the example.
+If you modify a file or add new files in the directory ingested (e.g. /local/username/workspace), you can run Ingest again to add new information into the Accumulo tables.</p>
+<p>To browse the data ingested, use Viewer.java.  Be sure to give the "username" user the authorizations to see the data (in this case, run</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">shell</span> <span class="o">-</span><span class="n">u</span> <span class="n">root</span> <span class="o">-</span><span class="n">e</span> <span class="s">&#39;setauths -u username -s exampleVis&#39;</span>
+</pre></div>
+
+
+<p>then run the Viewer:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="sr">/accumulo org.apache.accumulo.examples.simple.dirlist.Viewer -i instance -z zookeepers -u username -p password -t dirTable --dataTable dataTable --auths exampleVis --path /</span><span class="nb">local</span><span class="sr">/username/</span><span class="n">workspace</span>
+</pre></div>
+
+
+<p>To list the contents of specific directories, use QueryUtil.java.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="sr">/accumulo org.apache.accumulo.examples.simple.dirlist.QueryUtil -i instance -z zookeepers -u username -p password -t dirTable --auths exampleVis --path /</span><span class="nb">local</span><span class="o">/</span><span class="n">username</span>
+<span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="sr">/accumulo org.apache.accumulo.examples.simple.dirlist.QueryUtil -i instance -z zookeepers -u username -p password -t dirTable --auths exampleVis --path /</span><span class="nb">local</span><span class="sr">/username/</span><span class="n">workspace</span>
+</pre></div>
+
+
+<p>To perform searches on file or directory names, also use QueryUtil.java.  Search terms must contain no more than one wild card and cannot contain "/".
+<em>Note</em> these queries run on the <em>indexTable</em> table instead of the dirTable table.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">dirlist</span><span class="o">.</span><span class="n">QueryUtil</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span> <span class="o">-</span><span class="n">t</span> <span class="n">indexTable</span> <span class="o">--</span><span class="n">auths</span> <span cl
 ass="n">exampleVis</span> <span class="o">--</span><span class="n">path</span> <span class="n">filename</span> <span class="o">--</span><span class="n">search</span>
+<span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">dirlist</span><span class="o">.</span><span class="n">QueryUtil</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span> <span class="o">-</span><span class="n">t</span> <span class="n">indexTable</span> <span class="o">--</span><span class="n">auths</span> <span class="n">exampleVis</span> <sp
 an class="o">--</span><span class="n">path</span> <span class="s">&#39;filename*&#39;</span> <span class="o">--</span><span class="n">search</span>
+<span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">dirlist</span><span class="o">.</span><span class="n">QueryUtil</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span> <span class="o">-</span><span class="n">t</span> <span class="n">indexTable</span> <span class="o">--</span><span class="n">auths</span> <span class="n">exampleVis</span> <sp
 an class="o">--</span><span class="n">path</span> <span class="s">&#39;*jar&#39;</span> <span class="o">--</span><span class="n">search</span>
+<span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">dirlist</span><span class="o">.</span><span class="n">QueryUtil</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span> <span class="o">-</span><span class="n">t</span> <span class="n">indexTable</span> <span class="o">--</span><span class="n">auths</span> <span class="n">exampleVis</span> <sp
 an class="n">iipath</span> <span class="s">&#39;filename*jar&#39;</span> <span class="o">--</span><span class="n">search</span>
+</pre></div>
+
+
+<p>To count the number of direct children (directories and files) and descendants (children and children's descendants, directories and files), run the FileCount over the dirTable table.
+The results are written back to the same table.  FileCount reads from and writes to Accumulo.  This requires scan authorizations for the read and a visibility for the data written.
+In this example, the authorizations and visibility are set to the same value, exampleVis.  See README.visibility for more information on visibility and authorizations.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">dirlist</span><span class="o">.</span><span class="n">FileCount</span> <span class="n">instance</span> <span class="n">zookeepers</span> <span class="n">username</span> <span class="n">password</span> <span class="n">dirTable</span> <span class="n">exampleVis</span> <span class="n">exampleVis</span>
+</pre></div>
+
+
+<h2 id="directory-table">Directory Table</h2>
+<p>Here is a illustration of what data looks like in the directory table:</p>
+<div class="codehilite"><pre><span class="n">row</span> <span class="n">colf:colq</span> <span class="p">[</span><span class="n">vis</span><span class="p">]</span> <span class="n">value</span>
+<span class="mo">000</span> <span class="n">dir:exec</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">true</span>
+<span class="mo">000</span> <span class="n">dir:hidden</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">false</span>
+<span class="mo">000</span> <span class="n">dir:lastmod</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">1291996886000</span>
+<span class="mo">000</span> <span class="n">dir:length</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">1666</span>
+<span class="mo">001</span><span class="o">/</span><span class="nb">local</span> <span class="n">dir:exec</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">true</span>
+<span class="mo">001</span><span class="o">/</span><span class="nb">local</span> <span class="n">dir:hidden</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">false</span>
+<span class="mo">001</span><span class="o">/</span><span class="nb">local</span> <span class="n">dir:lastmod</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">1304945270000</span>
+<span class="mo">001</span><span class="o">/</span><span class="nb">local</span> <span class="n">dir:length</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">272</span>
+<span class="mo">002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="o">\</span><span class="n">x7F</span><span class="o">\</span><span class="n">xFF</span><span class="o">\</span><span class="n">xFE</span><span class="o">\</span><span class="n">xCFH</span><span class="o">\</span><span class="n">xA1</span><span class="o">\</span><span class="n">x82</span><span class="o">\</span><span class="n">x97:exec</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">false</span>
+<span class="mo">002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="o">\</span><span class="n">x7F</span><span class="o">\</span><span class="n">xFF</span><span class="o">\</span><span class="n">xFE</span><span class="o">\</span><span class="n">xCFH</span><span class="o">\</span><span class="n">xA1</span><span class="o">\</span><span class="n">x82</span><span class="o">\</span><span class="n">x97:hidden</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">false</span>
+<span class="mo">002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="o">\</span><span class="n">x7F</span><span class="o">\</span><span class="n">xFF</span><span class="o">\</span><span class="n">xFE</span><span class="o">\</span><span class="n">xCFH</span><span class="o">\</span><span class="n">xA1</span><span class="o">\</span><span class="n">x82</span><span class="o">\</span><span class="n">x97:lastmod</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">1308746481000</span>
+<span class="mo">002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="o">\</span><span class="n">x7F</span><span class="o">\</span><span class="n">xFF</span><span class="o">\</span><span class="n">xFE</span><span class="o">\</span><span class="n">xCFH</span><span class="o">\</span><span class="n">xA1</span><span class="o">\</span><span class="n">x82</span><span class="o">\</span><span class="n">x97:length</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">9192</span>
+<span class="mo">002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="o">\</span><span class="n">x7F</span><span class="o">\</span><span class="n">xFF</span><span class="o">\</span><span class="n">xFE</span><span class="o">\</span><span class="n">xCFH</span><span class="o">\</span><span class="n">xA1</span><span class="o">\</span><span class="n">x82</span><span class="o">\</span><span class="n">x97:md5</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">274</span><span class="n">af6419a3c4c4a259260ac7017cbf1</span>
+</pre></div>
+
+
+<p>The rows are of the form depth + path, where depth is the number of slashes ("/") in the path padded to 3 digits.  This is so that all the children of a directory appear as consecutive keys in Accumulo; without the depth, you would for example see all the subdirectories of /local before you saw /usr.
+For directories the column family is "dir".  For files the column family is Long.MAX_VALUE - lastModified in bytes rather than string format so that newer versions sort earlier.</p>
+<h2 id="index-table">Index Table</h2>
+<p>Here is an illustration of what data looks like in the index table:</p>
+<div class="codehilite"><pre><span class="n">row</span> <span class="n">colf:colq</span> <span class="p">[</span><span class="n">vis</span><span class="p">]</span>
+<span class="n">fAccumulo</span><span class="o">.</span><span class="n">README</span> <span class="n">i:002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>
+<span class="n">flocal</span> <span class="n">i:001</span><span class="o">/</span><span class="nb">local</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>
+<span class="n">rEMDAER</span><span class="o">.</span><span class="n">olumuccA</span> <span class="n">i:002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>
+<span class="n">rlacol</span> <span class="n">i:001</span><span class="o">/</span><span class="nb">local</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>
+</pre></div>
+
+
+<p>The values of the index table are null.  The rows are of the form "f" + filename or "r" + reverse file name.  This is to enable searches with wildcards at the beginning, middle, or end.</p>
+<h2 id="data-table">Data Table</h2>
+<p>Here is an illustration of what data looks like in the data table:</p>
+<div class="codehilite"><pre><span class="n">row</span> <span class="n">colf:colq</span> <span class="p">[</span><span class="n">vis</span><span class="p">]</span> <span class="n">value</span>
+<span class="mi">274</span><span class="n">af6419a3c4c4a259260ac7017cbf1</span> <span class="n">refs:e77276a2b56e5c15b540eaae32b12c69</span><span class="o">\</span><span class="n">x00filext</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">README</span>
+<span class="mi">274</span><span class="n">af6419a3c4c4a259260ac7017cbf1</span> <span class="n">refs:e77276a2b56e5c15b540eaae32b12c69</span><span class="o">\</span><span class="n">x00name</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span>
+<span class="mi">274</span><span class="n">af6419a3c4c4a259260ac7017cbf1</span> <span class="o">~</span><span class="n">chunk:</span><span class="o">\</span><span class="n">x00</span><span class="o">\</span><span class="n">x0FB</span><span class="nv">@</span><span class="err">\</span><span class="nv">x00</span><span class="o">\</span><span class="n">x00</span><span class="o">\</span><span class="n">x00</span><span class="o">\</span><span class="n">x00</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="o">*******************************************************************************\</span><span class="n">x0A1</span><span class="o">.</span> <span class="n">Building</span><span class="o">\</span><span class="n">x0A</span><span class="o">\</span><span class="n">x0AIn</span> <span class="n">the</span> <span class="n">normal</span> <span class="n">tarball</span> <span class="ow">or</span> <span class="n">RPM</span> <span clas
 s="n">release</span> <span class="n">of</span> <span class="n">accumulo</span><span class="p">,</span> <span class="p">[</span><span class="n">truncated</span><span class="p">]</span>
+<span class="mi">274</span><span class="n">af6419a3c4c4a259260ac7017cbf1</span> <span class="o">~</span><span class="n">chunk:</span><span class="o">\</span><span class="n">x00</span><span class="o">\</span><span class="n">x0FB</span><span class="nv">@</span><span class="err">\</span><span class="nv">x00</span><span class="o">\</span><span class="n">x00</span><span class="o">\</span><span class="n">x00</span><span class="o">\</span><span class="n">x01</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>
+</pre></div>
+
+
+<p>The rows are the md5 hash of the file.  Some column family : column qualifier pairs are "refs" : hash of file name + null byte + property name, in which case the value is property value.  There can be multiple references to the same file which are distinguished by the hash of the file name.
+Other column family : column qualifier pairs are "~chunk" : chunk size in bytes + chunk number in bytes, in which case the value is the bytes for that chunk of the file.  There is an end of file data marker whose chunk number is the number of chunks for the file and whose value is empty.</p>
+<p>There may exist multiple copies of the same file (with the same md5 hash) with different chunk sizes or different visibilities.  There is an iterator that can be set on the data table that combines these copies into a single copy with a visibility taken from the visibilities of the file references, e.g. (vis from ref1)|(vis from ref2). </p>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>



Mime
View raw message