Author: buildbot
Date: Wed Oct 29 03:43:13 2014
New Revision: 927241
Log:
Staging update by buildbot for crunch
Modified:
websites/staging/crunch/trunk/content/ (props changed)
websites/staging/crunch/trunk/content/user-guide.html
Propchange: websites/staging/crunch/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Oct 29 03:43:13 2014
@@ -1 +1 @@
-1635035
+1635036
Modified: websites/staging/crunch/trunk/content/user-guide.html
==============================================================================
--- websites/staging/crunch/trunk/content/user-guide.html (original)
+++ websites/staging/crunch/trunk/content/user-guide.html Wed Oct 29 03:43:13
2014
@@ -649,8 +649,7 @@ includes both Avro generic and specific
<p>The <a
href="apidocs/0.10.0/org/apache/crunch/types/avro/Avros.html">Avros</a> class
also has a <code>reflects</code> method for creating PTypes
-for POJOs using Avro's reflection-based serialization mechanism. There are a
couple of restrictions on the structure of the POJO. First, it must have a
default, no-arg constructor. Second, all of its fields must be Avro primitive
types or collection types that have Avro equivalents, like
<code>ArrayList</code> and <code>HAshMap<String, T></code>. You may also
have arrays of Avro primitive types.
-the POJO.</p>
+for POJOs using Avro's reflection-based serialization mechanism. There are a
couple of restrictions on the structure of the POJO. First, it must have a
default, no-arg constructor. Second, all of its fields must be Avro primitive
types or collection types that have Avro equivalents, like
<code>ArrayList</code> and <code>HAshMap<String, T></code>. You may also
have arrays of Avro primitive types.</p>
<div class="codehilite"><pre><span class="c1">// Declare an inline data type
and use it for Crunch serialization</span>
<span class="n">public</span> <span class="k">static</span> <span
class="k">class</span> <span class="n">UrlData</span> <span class="p">{</span>
<span class="c1">// The fields don't have to be public, just doing this
for the example.</span>