svn commit: r865968 - /websites/production/gora/content/
Author: lewismc Date: Mon Jun 17 19:26:26 2013 New Revision: 865968 Log: Publishing svnmucc operation to gora site by lewismc Added: websites/production/gora/content/ - copied from r865967, websites/staging/gora/trunk/content/
svn commit: r1493978 - /gora/site/trunk/content/current/tutorial.md
Author: lewismc Date: Mon Jun 17 23:55:19 2013 New Revision: 1493978 URL: http://svn.apache.org/r1493978 Log: CMS commit to gora by lewismc Modified: gora/site/trunk/content/current/tutorial.md Modified: gora/site/trunk/content/current/tutorial.md URL: http://svn.apache.org/viewvc/gora/site/trunk/content/current/tutorial.md?rev=1493978r1=1493977r2=1493978view=diff == --- gora/site/trunk/content/current/tutorial.md (original) +++ gora/site/trunk/content/current/tutorial.md Mon Jun 17 23:55:19 2013 @@ -264,50 +264,49 @@ HBase mappings are stored at file named For this tutorial we will be using the file gora-tutorial/conf/gora-hbase-mappings.xml. !-- This is gora-sql-mapping.xml - source - lt;gora-ormgt; - lt;class name=org.apache.gora.tutorial.log.generated.Pageview keyClass=java.lang.Long table=AccessLoggt; -lt;primarykey column=line/gt; -lt;field name=url column=url length=512 primarykey=true/gt; -lt;field name=timestamp column=timestamp/gt; -lt;field name=ip column=ip length=16/gt; -lt;field name=httpMethod column=httpMethod length=6/gt; -lt;field name=httpStatusCode column=httpStatusCode/gt; -lt;field name=responseSize column=responseSize/gt; -lt;field name=referrer column=referrer length=512/gt; -lt;field name=userAgent column=userAgent length=512/gt; - lt;/classgt; - ... +gora-orm + class name=org.apache.gora.tutorial.log.generated.Pageview keyClass=java.lang.Long table=AccessLog + primarykey column=line/ + field name=url column=url length=512 primarykey=true/ + field name=timestamp column=timestamp/ + field name=ip column=ip length=16/ + field name=httpMethod column=httpMethod length=6/ + ;field name=httpStatusCode column=httpStatusCode/ + field name=responseSize column=responseSize/ + field name=referrer column=referrer length=512/ + field name=userAgent column=userAgent length=512/ + /classgt; -lt;/gora-ormgt; + ... + +/gora-orm - /source -- -lt;gora-ormgt; - lt;table name=Pageviewgt; lt;!-- optional descriptors for tables --gt; -lt;family name=common/gt; lt;!-- This can also have params like compression, bloom filters --gt; -lt;family name=http/gt; -lt;family name=misc/gt; - lt;/tablegt; - - lt;class name=org.apache.gora.tutorial.log.generated.Pageview keyClass=java.lang.Long table=AccessLoggt; -lt;field name=url family=common qualifier=url/gt; -lt;field name=timestamp family=common qualifier=timestamp/gt; -lt;field name=ip family=common qualifier=ip /gt; -lt;field name=httpMethod family=http qualifier=httpMethod/gt; -lt;field name=httpStatusCode family=http qualifier=httpStatusCode/gt; -lt;field name=responseSize family=http qualifier=responseSize/gt; -lt;field name=referrer family=misc qualifier=referrer/gt; -lt;field name=userAgent family=misc qualifier=userAgent/gt; - lt;/classgt; +gora-ormgt; + table name=Pageview !-- optional descriptors for tables -- +family name=common !-- This can also have params like compression, bloom filters -- +family name=http/ +family name=misc/ + /table + + class name=org.apache.gora.tutorial.log.generated.Pageview keyClass=java.lang.Long table=AccessLog + field name=url family=common qualifier=url/ + field name=timestamp family=common qualifier=timestamp/ + field name=ip family=common qualifier=ip / + field name=httpMethod family=http qualifier=httpMethod/ + field name=httpStatusCode family=http qualifier=httpStatusCode/ + field name=responseSize family=http qualifier=responseSize/ + field name=referrer family=misc qualifier=referrer/ + field name=userAgent family=misc qualifier=userAgent/ + /class ... -lt;/gora-ormgt; +/gora-orm -Every mapping file starts with the top level element lt;gora-ormgt;. +Every mapping file starts with the top level element gora-orm. Gora HBase mapping files can have two type of child elements, table and class declarations. All of the table and class definitions should be listed at this level. @@ -316,7 +315,7 @@ table declaration is optional and most o declaration from the class sub elements. However, some of the HBase specific table configuration such as compression, blockCache, etc can be given here, if Gora is used to auto-create the tables. The exact syntax for the file can be found -[here](/gora-hbase.html). +[here](/current/gora-hbase.html). In Gora, data store access is always done in a key-value data model, since most of the target backends support this model. @@ -333,7 +332,7 @@ of the HBase data model. If the qualifie as the column qualifier. Note that map and array type fields are stored in unique column families, so the
svn commit: r865996 - in /websites/staging/gora/trunk/content: ./ current/tutorial.html
Author: buildbot Date: Mon Jun 17 23:55:24 2013 New Revision: 865996 Log: Staging update by buildbot for gora Modified: websites/staging/gora/trunk/content/ (props changed) websites/staging/gora/trunk/content/current/tutorial.html Propchange: websites/staging/gora/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Mon Jun 17 23:55:24 2013 @@ -1 +1 @@ -1493895 +1493978 Modified: websites/staging/gora/trunk/content/current/tutorial.html == --- websites/staging/gora/trunk/content/current/tutorial.html (original) +++ websites/staging/gora/trunk/content/current/tutorial.html Mon Jun 17 23:55:24 2013 @@ -383,53 +383,52 @@ are serialized and persisted to the data h3 id=hbase-mappingsHBase mappings/h3 pHBase mappings are stored at file named gora-hbase-mappings.xml. For this tutorial we will be using the file gora-tutorial/conf/gora-hbase-mappings.xml./p -div class=codehilitepre span class=olt;/span!span class=o--/span span class=nThis/span span class=nis/span span class=ngora/spanspan class=o-/spanspan class=nsql/spanspan class=o-/spanspan class=nmapping/spanspan class=p./spanspan class=nxml/span -/pre/div +div class=codehilitepre span class=clt;!-- This is gora-sql-mapping.xml/span +span class=clt;gora-ormgt;/span +span class=c lt;class name=quot;org.apache.gora.tutorial.log.generated.Pageviewquot; keyClass=quot;java.lang.Longquot; table=quot;AccessLogquot;gt;/span +span class=c lt;primarykey column=quot;linequot;/gt;/span +span class=c lt;field name=quot;urlquot; column=quot;urlquot; length=quot;512quot; primarykey=quot;truequot;/gt;/span +span class=c lt;field name=quot;timestampquot; column=quot;timestampquot;/gt;/span +span class=c lt;field name=quot;ipquot; column=quot;ipquot; length=quot;16quot;/gt;/span +span class=c lt;field name=quot;httpMethodquot; column=quot;httpMethodquot; length=quot;6quot;/gt;/span +span class=c lt;;field name=quot;httpStatusCodequot; column=quot;httpStatusCodequot;/gt;/span +span class=c lt;field name=quot;responseSizequot; column=quot;responseSizequot;/gt;/span +span class=c lt;field name=quot;referrerquot; column=quot;referrerquot; length=quot;512quot;/gt;/span +span class=c lt;field name=quot;userAgentquot; column=quot;userAgentquot; length=quot;512quot;/gt;/span +span class=c lt;/classamp;gt;/span + +span class=c .../span + +span class=clt;/gora-ormgt;/span + +span class=c --gt;/span + +span class=ntlt;gora-orm/spanspan class=erramp;gt;/span + span class=errlt;table/span span class=naname=/spanspan class=squot;Pageviewquot;/spanspan class=ntgt;/span span class=clt;!-- optional descriptors for tables --gt;/span +span class=ntlt;family/span span class=naname=/spanspan class=squot;commonquot;/spanspan class=ntgt;/span span class=clt;!-- This can also have params like compression, bloom filters --gt;/span +span class=ntlt;family/span span class=naname=/spanspan class=squot;httpquot;/spanspan class=nt/gt;/span +span class=ntlt;family/span span class=naname=/spanspan class=squot;miscquot;/spanspan class=nt/gt;/span + span class=ntlt;/tablegt;/span + + span class=ntlt;class/span span class=naname=/spanspan class=squot;org.apache.gora.tutorial.log.generated.Pageviewquot;/span span class=nakeyClass=/spanspan class=squot;java.lang.Longquot;/span span class=natable=/spanspan class=squot;AccessLogquot;/spanspan class=ntgt;/span + span class=ntlt;field/span span class=naname=/spanspan class=squot;urlquot;/span span class=nafamily=/spanspan class=squot;commonquot;/span span class=naqualifier=/spanspan class=squot;urlquot;/spanspan class=nt/gt;/span + span class=ntlt;field/span span class=naname=/spanspan class=squot;timestampquot;/span span class=nafamily=/spanspan class=squot;commonquot;/span span class=naqualifier=/spanspan class=squot;timestampquot;/spanspan class=nt/gt;/span + span class=ntlt;field/span span class=naname=/spanspan class=squot;ipquot;/span span class=nafamily=/spanspan class=squot;commonquot;/span span class=naqualifier=/spanspan class=squot;ipquot;/span span class=nt/gt;/span + span class=ntlt;field/span span class=naname=/spanspan class=squot;httpMethodquot;/span span class=nafamily=/spanspan class=squot;httpquot;/span span class=naqualifier=/spanspan class=squot;httpMethodquot;/spanspan class=nt/gt;/span + span class=ntlt;field/span span class=naname=/spanspan class=squot;httpStatusCodequot;/span span class=nafamily=/spanspan class=squot;httpquot;/span span class=naqualifier=/spanspan class=squot;httpStatusCodequot;/spanspan class=nt/gt;/span + span class=ntlt;field/span span class=naname=/spanspan class=squot;responseSizequot;/span span class=nafamily=/spanspan class=squot;httpquot;/span span class=naqualifier=/spanspan class=squot;responseSizequot;/spanspan class=nt/gt;/span +