gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r941981 - in /websites/staging/gora/trunk/content: ./ current/gora-shims.html
Date Mon, 02 Mar 2015 19:25:26 GMT
Author: buildbot
Date: Mon Mar  2 19:25:26 2015
New Revision: 941981

Log:
Staging update by buildbot for gora

Modified:
    websites/staging/gora/trunk/content/   (props changed)
    websites/staging/gora/trunk/content/current/gora-shims.html

Propchange: websites/staging/gora/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Mar  2 19:25:26 2015
@@ -1 +1 @@
-1663401
+1663403

Modified: websites/staging/gora/trunk/content/current/gora-shims.html
==============================================================================
--- websites/staging/gora/trunk/content/current/gora-shims.html (original)
+++ websites/staging/gora/trunk/content/current/gora-shims.html Mon Mar  2 19:25:26 2015
@@ -288,24 +288,27 @@ is very simple. Essentially it consists
 <p>This module provides all functionality for Hadoop 2.X support in Gora. The Hadoop
version is specified within
 the project <a href="https://github.com/apache/gora/blob/master/pom.xml">pom.xml</a>
within the <strong>${hadoop2-version}</strong> variable.</p>
 <p>The actual <a href="https://github.com/apache/gora/blob/master/gora-shims-hadoop1/src/main/java/org/apache/gora/shims/hadoop1/HadoopShim1.java">code
implementation</a> 
-is very simple. Essentially it consists of two Java methods
-    /<strong>
-     * {@inheritDoc}
-     <em>
-     * Use the Hadoop 2.x way of creating a {@link Job} object.
-     </em>/
-    public Job createJob(Configuration configuration) throws IOException {
-      Job instance = Job.getInstance(configuration);
-      return instance;
-    }
-    /</strong>
-     * {@inheritDoc}
-     <em>
-     * Use the Hadoop 2.x way of creating a {@link JobContext} object.
-     </em>/
-    public JobContext createJobContext(Configuration configuration) {
-      return new JobContextImpl(configuration, null);
-    }</p>
+is very simple. Essentially it consists of two Java methods</p>
+<div class="codehilite"><pre><span class="cm">/**</span>
+<span class="cm"> * {@inheritDoc}</span>
+<span class="cm"> *</span>
+<span class="cm"> * Use the Hadoop 2.x way of creating a {@link Job} object.</span>
+<span class="cm"> */</span>
+<span class="n">public</span> <span class="n">Job</span> <span
class="n">createJob</span><span class="p">(</span><span class="n">Configuration</span>
<span class="n">configuration</span><span class="p">)</span> <span
class="n">throws</span> <span class="n">IOException</span> <span class="p">{</span>
+  <span class="n">Job</span> <span class="k">instance</span> <span
class="o">=</span> <span class="n">Job</span><span class="p">.</span><span
class="n">getInstance</span><span class="p">(</span><span class="n">configuration</span><span
class="p">);</span>
+  <span class="k">return</span> <span class="k">instance</span><span
class="p">;</span>
+<span class="p">}</span>
+<span class="cm">/**</span>
+<span class="cm"> * {@inheritDoc}</span>
+<span class="cm"> *</span>
+<span class="cm"> * Use the Hadoop 2.x way of creating a {@link JobContext} object.</span>
+<span class="cm"> */</span>
+<span class="n">public</span> <span class="n">JobContext</span> <span
class="n">createJobContext</span><span class="p">(</span><span class="n">Configuration</span>
<span class="n">configuration</span><span class="p">)</span> <span
class="p">{</span>
+  <span class="k">return</span> <span class="k">new</span> <span
class="n">JobContextImpl</span><span class="p">(</span><span class="n">configuration</span><span
class="p">,</span> <span class="k">null</span><span class="p">);</span>
+<span class="p">}</span>
+</pre></div>
+
+
 <h2 id="dependency-definition_3">Dependency Definition</h2>
 <p><a href="http://search.maven.org/#artifactdetails|org.apache.gora|gora-shims-hadoop2|0.6|bundle">Click
Here</a></p>
 



Mime
View raw message