You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by bu...@apache.org on 2020/10/27 23:09:28 UTC
svn commit: r1067222 - in /websites/staging/gora/trunk/content: ./
current/gora-dynamodb.html
Author: buildbot
Date: Tue Oct 27 23:09:27 2020
New Revision: 1067222
Log:
Staging update by buildbot for gora
Modified:
websites/staging/gora/trunk/content/ (props changed)
websites/staging/gora/trunk/content/current/gora-dynamodb.html
Propchange: websites/staging/gora/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Oct 27 23:09:27 2020
@@ -1 +1 @@
-1882929
+1882930
Modified: websites/staging/gora/trunk/content/current/gora-dynamodb.html
==============================================================================
--- websites/staging/gora/trunk/content/current/gora-dynamodb.html (original)
+++ websites/staging/gora/trunk/content/current/gora-dynamodb.html Tue Oct 27 23:09:27 2020
@@ -171,21 +171,21 @@ gora-dynamodb module enables <a href="ht
</ul>
</li>
<li><a href="#gora-dynamodb-mapppings-gora-dynamodb-mappingxml">Gora DynamoDB mapppings - gora-dynamodb-mapping.xml</a><ul>
-<li><a href="#table">Table:</a></li>
-<li><a href="#attributes">Attributes:</a></li>
+<li><a href="#table">Table</a></li>
+<li><a href="#attributes">Attributes</a></li>
</ul>
</li>
</ul>
</div>
<h2 id="gora-dynamodb-properties-goraproperties">Gora DynamoDB Properties - gora.properties<a class="headerlink" href="#gora-dynamodb-properties-goraproperties" title="Permanent link">¶</a></h2>
-<p><code>gora.datastore.default=org.apache.gora.dynamodb.store.DynamoDBStore
-gora.datastore.autocreateschema=true
-preferred.schema.name=Person
-gora.dynamodb.mapping.file=/path/to/gora-dynamodb-mapping.xml
-gora.dynamodb.client=sync
-gora.dynamodb.consistent.reads=true
-gora.dynamodb.endpoint=http://dynamodb.ap-northeast-1.amazonaws.com/
-gora.dynamodb.serialization.type=dynamo</code></p>
+<p><code>gora.datastore.default=org.apache.gora.dynamodb.store.DynamoDBStore<br/>
+gora.datastore.autocreateschema=true<br/>
+preferred.schema.name=Person<br/>
+gora.dynamodb.mapping.file=/path/to/gora-dynamodb-mapping.xml<br/>
+gora.dynamodb.client=sync<br/>
+gora.dynamodb.consistent.reads=true<br/>
+gora.dynamodb.endpoint=http://dynamodb.ap-northeast-1.amazonaws.com/<br/>
+gora.dynamodb.serialization.type=dynamo<br/></code></p>
<table class="table">
<thead>
<tr>
@@ -258,26 +258,26 @@ gora.dynamodb.serialization.type=dynamo<
<h2 id="gora-dynamodb-mapppings-gora-dynamodb-mappingxml">Gora DynamoDB mapppings - gora-dynamodb-mapping.xml<a class="headerlink" href="#gora-dynamodb-mapppings-gora-dynamodb-mappingxml" title="Permanent link">¶</a></h2>
<p>Say we wished to map some user data and store it into DynamoDB.</p>
<p>```
-<gora-otd></p>
-<p><table name="Person" readcunit="1" writecunit="1" package="org.apache.gora.dynamodb.example.generated">
- <attribute name="ssn" type="N" key="hash"/>
- <attribute name="date" type="S" key="hashrange"/>
- <attribute name="firstName" type="S"/>
- <attribute name="lastName" type="S"/>
- <attribute name="salary" type="N"/>
- <attribute name="visitedplaces" type="SS"/>
- </table></p>
-<p></gora-otd>
+<gora-otd></p>
+<p><table name="Person" readcunit="1" writecunit="1" package="org.apache.gora.dynamodb.example.generated">
+ <attribute name="ssn" type="N" key="hash"/>
+ <attribute name="date" type="S" key="hashrange"/>
+ <attribute name="firstName" type="S"/>
+ <attribute name="lastName" type="S"/>
+ <attribute name="salary" type="N"/>
+ <attribute name="visitedplaces" type="SS"/>
+ </table></p>
+<p></gora-otd>
```</p>
<p>Within the <code>gora-otd</code> mapping configuration, only the 'table' child element is required.</p>
-<h3 id="table">Table:<a class="headerlink" href="#table" title="Permanent link">¶</a></h3>
+<h3 id="table">Table<a class="headerlink" href="#table" title="Permanent link">¶</a></h3>
<ul>
<li>a parameter containing the DynamoDB table <code>name</code> (String) e.g. Person</li>
<li>a parameter containing the read capacity - <code>readcunit</code> (Number) e.g. 1 More about them <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html#default-limits-throughput">here</a></li>
<li>a parameter containing the write capacity - <code>writecunit</code> (Number) e.g. 1 </li>
<li>a parameter containing the name of the <code>package</code> having the table (String)</li>
</ul>
-<h3 id="attributes">Attributes:<a class="headerlink" href="#attributes" title="Permanent link">¶</a></h3>
+<h3 id="attributes">Attributes<a class="headerlink" href="#attributes" title="Permanent link">¶</a></h3>
<ul>
<li>a parameter containing the <code>name</code> e.g. name, dateOfBirth, ssn and salary </li>
<li>a parameter containing the column <code>type</code> to which they belong e.g. (B/L/M/N/S/SS). For more, refer <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html">here</a></li>