You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by le...@apache.org on 2012/05/22 01:08:45 UTC
svn commit: r1341255 -
/gora/trunk/gora-tutorial/conf/gora-cassandra-mapping.xml
Author: lewismc
Date: Mon May 21 23:08:45 2012
New Revision: 1341255
URL: http://svn.apache.org/viewvc?rev=1341255&view=rev
Log:
commit to add gora-cassandra-mapping.xml for tutorial
Added:
gora/trunk/gora-tutorial/conf/gora-cassandra-mapping.xml
Added: gora/trunk/gora-tutorial/conf/gora-cassandra-mapping.xml
URL: http://svn.apache.org/viewvc/gora/trunk/gora-tutorial/conf/gora-cassandra-mapping.xml?rev=1341255&view=auto
==============================================================================
--- gora/trunk/gora-tutorial/conf/gora-cassandra-mapping.xml (added)
+++ gora/trunk/gora-tutorial/conf/gora-cassandra-mapping.xml Mon May 21 23:08:45 2012
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!--
+ Gora Mapping file for Cassandra Backend
+-->
+<gora-orm>
+
+ <keyspace name="Pageview" cluster="Test Cluster" host="localhost">
+ <family name="common"/>
+ <family name="http"/>
+ <family name="misc"/>
+ </keyspace>
+
+ <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>
+
+ <class name="org.apache.gora.tutorial.log.generated.MetricDatum" keyClass="java.lang.String" table="Metrics">
+ <field name="metricDimension" family="common" qualifier="metricDimension"/>
+ <field name="timestamp" family="common" qualifier="ts"/>
+ <field name="metric" family="common" qualifier="metric"/>
+ </class>
+
+</gora-orm>