gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djkevi...@apache.org
Subject [07/32] gora git commit: Update aerospike mapping file to support field to bin value mapping
Date Thu, 27 Jul 2017 18:45:33 GMT
Update aerospike mapping file to support field to bin value mapping


Project: http://git-wip-us.apache.org/repos/asf/gora/repo
Commit: http://git-wip-us.apache.org/repos/asf/gora/commit/13f252e5
Tree: http://git-wip-us.apache.org/repos/asf/gora/tree/13f252e5
Diff: http://git-wip-us.apache.org/repos/asf/gora/diff/13f252e5

Branch: refs/heads/master
Commit: 13f252e525e103155502953ebdad1006909747ba
Parents: b0c1977
Author: nishadi <ndimeshi@gmail.com>
Authored: Mon Jun 19 17:37:02 2017 +0530
Committer: nishadi <ndimeshi@gmail.com>
Committed: Mon Jun 19 17:37:02 2017 +0530

----------------------------------------------------------------------
 gora-tutorial/conf/gora-aerospike-mapping.xml | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/13f252e5/gora-tutorial/conf/gora-aerospike-mapping.xml
----------------------------------------------------------------------
diff --git a/gora-tutorial/conf/gora-aerospike-mapping.xml b/gora-tutorial/conf/gora-aerospike-mapping.xml
index 676f52c..aca18ca 100644
--- a/gora-tutorial/conf/gora-aerospike-mapping.xml
+++ b/gora-tutorial/conf/gora-aerospike-mapping.xml
@@ -24,7 +24,21 @@
   <policy name="write" gen="IGNORE" exists="CREATE" key="DIGEST" retry="ONCE" timeout="1000"/>
   <policy name="read" key="DIGEST" timeout="1000"/>
 
-  <class name="org.apache.gora.tutorial.log.generated.Pageview" keyClass="java.lang.Long"
set="AccessLog" namespace = "test" />
-  <class name="org.apache.gora.tutorial.log.generated.MetricDatum" keyClass="java.lang.String"
set="Metrics" namespace = "test"/>
+  <class name="org.apache.gora.tutorial.log.generated.Pageview" keyClass="java.lang.Long"
set="AccessLog" namespace = "test">
+    <field name="url" bin="url"/>
+    <field name="timestamp" bin="timestamp"/>
+    <field name="ip" bin="ip" />
+    <field name="httpMethod" bin="httpMethod"/>
+    <field name="httpStatusCode" bin="httpStatusCode"/>
+    <field name="responseSize" bin="responseSize"/>
+    <field name="referrer" bin="referrer"/>
+    <field name="userAgent" bin="userAgent"/>
+  </class>
+
+  <class name="org.apache.gora.tutorial.log.generated.MetricDatum" keyClass="java.lang.String"
set="Metrics" namespace = "test">
+    <field name="metricDimension" bin="metricDimension"/>
+    <field name="timestamp" bin="ts"/>
+    <field name="metric" bin="metric"/>
+  </class>
 
 </gora-otd>


Mime
View raw message