You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@omid.apache.org by fp...@apache.org on 2016/04/21 00:17:35 UTC

[48/51] [partial] incubator-omid-site git commit: [wagon-git] commit to branch asf-site 4/20/16 3:16 PM

http://git-wip-us.apache.org/repos/asf/incubator-omid-site/blob/78ce5362/cpd.html
----------------------------------------------------------------------
diff --git a/cpd.html b/cpd.html
new file mode 100644
index 0000000..e944208
--- /dev/null
+++ b/cpd.html
@@ -0,0 +1,323 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia Site Renderer 1.7 at 2016-04-20 
+ | Rendered using Apache Maven Fluido Skin 1.5
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20160420" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache Omid &#x2013; CPD Results</title>
+    <link rel="stylesheet" href="./css/apache-maven-fluido-1.5.min.css" />
+    <link rel="stylesheet" href="./css/site.css" />
+    <link rel="stylesheet" href="./css/print.css" media="print" />
+
+      
+    <script type="text/javascript" src="./js/apache-maven-fluido-1.5.min.js"></script>
+
+                      </head>
+        <body class="topBarEnabled">
+          
+                        
+                    
+                
+
+    <div id="topbar" class="navbar navbar-fixed-top ">
+      <div class="navbar-inner">
+                                  <div class="container" style="width: 100%;"><div class="nav-collapse">
+            
+                
+                                <ul class="nav">
+                          <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="index.html"  title="Overview">Overview</a>
+</li>
+                  
+                      <li>      <a href="license.html"  title="License">License</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Download <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="https://github.com/yahoo/omid"  title="Omid Sources">Omid Sources</a>
+</li>
+                  
+                      <li>      <a href="https://bintray.com/yahoo/maven/omid/_latestVersion"  title="Bintray Repository">Bintray Repository</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">User Guide & API <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="quickstart.html"  title="Quickstart">Quickstart</a>
+</li>
+                  
+                      <li>      <a href="basic-examples.html"  title="API and Code Examples">API and Code Examples</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Technical Docs <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="basic-concepts.html"  title="Basic Concepts">Basic Concepts</a>
+</li>
+                  
+                      <li>      <a href="omid-components.html"  title="Omid Components">Omid Components</a>
+</li>
+                  
+                      <li>      <a href="basic-algorithm.html"  title="Basic Algorithm">Basic Algorithm</a>
+</li>
+                  
+                      <li>      <a href="client-failure-management.html"  title="Management of Client Failures">Management of Client Failures</a>
+</li>
+                  
+                      <li>      <a href="http://yahoohadoop.tumblr.com/tagged/HBase"  title="Blog Entries">Blog Entries</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Contribute <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="https://git-wip-us.apache.org/repos/asf/incubator-omid.git"  title="Source Code">Source Code</a>
+</li>
+                  
+                      <li>      <a href="https://issues.apache.org/jira/browse/Omid"  title="JIRA">JIRA</a>
+</li>
+                  
+                      <li>      <a href="mailing-lists.html"  title="Mailing Lists">Mailing Lists</a>
+</li>
+                  
+                      <li>      <a href="coding-guide-and-style.html"  title="Coding Guide and Style">Coding Guide and Style</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Project Reports <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li class="dropdown-submenu">
+                                      <a href="project-info.html"  title="Project Information">Project Information</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="dependency-convergence.html"  title="Dependency Convergence">Dependency Convergence</a>
+</li>
+                                  <li>      <a href="dependency-info.html"  title="Dependency Information">Dependency Information</a>
+</li>
+                                  <li>      <a href="dependency-management.html"  title="Dependency Management">Dependency Management</a>
+</li>
+                                  <li>      <a href="distribution-management.html"  title="Distribution Management">Distribution Management</a>
+</li>
+                                  <li>      <a href="index.html"  title="About">About</a>
+</li>
+                                  <li>      <a href="license.html"  title="Licenses">Licenses</a>
+</li>
+                                  <li>      <a href="modules.html"  title="Project Modules">Project Modules</a>
+</li>
+                                  <li>      <a href="plugin-management.html"  title="Plugin Management">Plugin Management</a>
+</li>
+                                  <li>      <a href="plugins.html"  title="Plugins">Plugins</a>
+</li>
+                                  <li>      <a href="team-list.html"  title="Team">Team</a>
+</li>
+                                  <li>      <a href="source-repository.html"  title="Source Code Management">Source Code Management</a>
+</li>
+                                  <li>      <a href="project-summary.html"  title="Summary">Summary</a>
+</li>
+                              </ul>
+            </li>
+                  
+                      <li class="dropdown-submenu">
+                                      <a href="project-reports.html"  title="Project Reports">Project Reports</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="xref/index.html"  title="Source Xref">Source Xref</a>
+</li>
+                                  <li>      <a href="xref-test/index.html"  title="Test Source Xref">Test Source Xref</a>
+</li>
+                                  <li>      <a href="checkstyle-aggregate.html"  title="Checkstyle">Checkstyle</a>
+</li>
+                                  <li>      <a href="cpd.html"  title="CPD">CPD</a>
+</li>
+                                  <li>      <a href="pmd.html"  title="PMD">PMD</a>
+</li>
+                              </ul>
+            </li>
+                          </ul>
+      </li>
+                  </ul>
+          
+                      <form id="search-form" action="https://www.google.com/search" method="get"  class="navbar-search pull-right" >
+    
+  <input value="omid.incubator.apache.org" name="sitesearch" type="hidden"/>
+  <input class="search-query" name="q" id="query" type="text" />
+</form>
+<script type="text/javascript" src="https://cse.google.com/brand?form=search-form"></script>
+          
+                                                    
+        
+        
+        <ul class="nav pull-right"><li>
+    
+    <a href="https://twitter.com/apacheomid" class="twitter-follow-button" data-show-count="true" data-align="right" data-size="large" data-show-screen-name="true" data-lang="en">Follow apacheomid</a>
+    <script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+
+        </li></ul>
+                              
+                   
+                      </div>
+          
+        </div>
+      </div>
+    </div>
+    
+        <div class="container">
+          <div id="banner">
+        <div class="pull-left">
+                                                  <a href="./" id="bannerLeft">
+                                                                                                <img src="images/omid-logo.png"  alt="Omid" width="200"/>
+                </a>
+                      </div>
+        <div class="pull-right">                  <a href="http://incubator.apache.org/" id="bannerRight">
+                                                                                        <img src="http://incubator.apache.org/images/egg-logo2.png"  alt="Apache Incubator" width="200"/>
+                </a>
+      </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+              
+                  <li id="projectVersion">Version: 0.8.1.38-SNAPSHOT
+                    </li>
+              
+              
+                  <li id="publishDate" class="pull-right">Last Published: 2016-04-20</li>
+            
+                            </ul>
+      </div>
+
+      
+                
+        <div id="bodyColumn" >
+                                  
+            <div class="section">
+<h2><a name="CPD_Results"></a>CPD Results</h2>
+<p>The following document contains the results of PMD's  <a class="externalLink" href="http://pmd.sourceforge.net/cpd.html">CPD</a> 5.2.3.</p></div>
+<div class="section">
+<h2><a name="Duplications"></a>Duplications</h2>
+<table border="0" class="table table-striped">
+<tr class="a">
+<th>File</th>
+<th>Project</th>
+<th>Line</th></tr>
+<tr class="b">
+<td>org/apache/omid/examples/BasicExample.java</td>
+<td>Omid Client Examples</td>
+<td><a href="./xref/org/apache/omid/examples/BasicExample.html#L90">90</a></td></tr>
+<tr class="a">
+<td>org/apache/omid/examples/ConfigurationExample.java</td>
+<td>Omid Client Examples</td>
+<td><a href="./xref/org/apache/omid/examples/ConfigurationExample.html#L108">108</a></td></tr>
+<tr class="b"><td colspan='3'>
+<div>
+<pre>            LOG.info(&quot;Transaction {} STARTED&quot;, tx);
+
+            Put row1 = new Put(exampleRow1);
+            row1.add(family, qualifier, dataValue1);
+            txTable.put(tx, row1);
+            LOG.info(&quot;Transaction {} trying to write a new value in [TABLE:ROW/CF/Q] =&gt; {}:{}/{}/{} = {} &quot;,
+                     tx, userTableName, Bytes.toString(exampleRow1), Bytes.toString(family),
+                     Bytes.toString(qualifier), Bytes.toString(dataValue1));
+
+            Put row2 = new Put(exampleRow2);
+            row2.add(family, qualifier, dataValue2);
+            txTable.put(tx, row2);
+            LOG.info(&quot;Transaction {} trying to write a new value in [TABLE:ROW/CF/Q] =&gt; {}:{}/{}/{} = {} &quot;,
+                     tx, userTableName, Bytes.toString(exampleRow2), Bytes.toString(family),
+                     Bytes.toString(qualifier), Bytes.toString(dataValue2));
+
+            tm.commit(tx);
+            LOG.info(&quot;Transaction {} COMMITTED&quot;, tx);</pre></div></td></tr></table>
+<table border="0" class="table table-striped">
+<tr class="a">
+<th>File</th>
+<th>Project</th>
+<th>Line</th></tr>
+<tr class="b">
+<td>org/apache/omid/examples/BasicExample.java</td>
+<td>Omid Client Examples</td>
+<td><a href="./xref/org/apache/omid/examples/BasicExample.html#L64">64</a></td></tr>
+<tr class="a">
+<td>org/apache/omid/examples/ConfigurationExample.java</td>
+<td>Omid Client Examples</td>
+<td><a href="./xref/org/apache/omid/examples/ConfigurationExample.html#L48">48</a></td></tr>
+<tr class="b"><td colspan='3'>
+<div>
+<pre>    private static final Logger LOG = LoggerFactory.getLogger(BasicExample.class);
+
+    public static void main(String[] args) throws Exception {
+
+        LOG.info(&quot;Parsing command line arguments&quot;);
+        String userTableName = &quot;MY_TX_TABLE&quot;;
+        if (args != null &amp;&amp; args.length &gt; 0 &amp;&amp; StringUtils.isNotEmpty(args[0])) {
+            userTableName = args[0];
+        }
+        byte[] family = Bytes.toBytes(&quot;MY_CF&quot;);
+        if (args != null &amp;&amp; args.length &gt; 1 &amp;&amp; StringUtils.isNotEmpty(args[1])) {
+            family = Bytes.toBytes(args[1]);
+        }
+        LOG.info(&quot;Table '{}', column family '{}'&quot;, userTableName, Bytes.toString(family));</pre></div></td></tr></table>
+<table border="0" class="table table-striped">
+<tr class="a">
+<th>File</th>
+<th>Project</th>
+<th>Line</th></tr>
+<tr class="b">
+<td>org/apache/omid/committable/hbase/KeyGeneratorImplementations.java</td>
+<td>HBase Common</td>
+<td><a href="./xref/org/apache/omid/committable/hbase/KeyGeneratorImplementations.html#L93">93</a></td></tr>
+<tr class="a">
+<td>org/apache/omid/committable/hbase/KeyGeneratorImplementations.java</td>
+<td>HBase Common</td>
+<td><a href="./xref/org/apache/omid/committable/hbase/KeyGeneratorImplementations.html#L148">148</a></td></tr>
+<tr class="b"><td colspan='3'>
+<div>
+<pre>            long startTimestamp = ((long) key[0] &amp; 0xFF) &lt;&lt; 56
+                    | ((long) key[1] &amp; 0xFF) &lt;&lt; 48
+                    | ((long) key[2] &amp; 0xFF) &lt;&lt; 40
+                    | ((long) key[3] &amp; 0xFF) &lt;&lt; 32
+                    | ((long) key[4] &amp; 0xFF) &lt;&lt; 24
+                    | ((long) key[5] &amp; 0xFF) &lt;&lt; 16
+                    | ((long) key[6] &amp; 0xFF) &lt;&lt; 8
+                    | ((long) key[7] &amp; 0xFF);</pre></div></td></tr></table></div>
+                  </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container">
+                      <div class="row">
+                                      <p >Copyright &copy;                    2011&#x2013;2016
+                        <a href="http://www.apache.org">Apache Software Foundation</a>.
+            All rights reserved.    
+      </p>
+                </div>
+
+                <p id="poweredBy" class="pull-right">
+                                                                                                                <a href="http://maven.apache.org/" title="Maven" class="builtBy">
+        <img class="builtBy"  alt="Maven" src="http://maven.apache.org/images/logos/maven-feather.png"    />
+      </a>
+                  </p>
+        
+                </div>
+    </footer>
+        </body>
+</html>