| <?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-otd> |
| |
| <table name ="Pageview"> |
| <primaryKey column="pkpageview" type="INT64" /> |
| <hashPartition numBuckets="8"/> |
| </table> |
| |
| <class name="org.apache.gora.tutorial.log.generated.Pageview" keyClass="java.lang.Long" table="Pageview" numReplicas="1"> |
| <field name="url" column="url" type="STRING"/> |
| <field name="timestamp" column="timestamp" type="INT64"/> |
| <field name="ip" column="ip" type="STRING"/> |
| <field name="httpMethod" column="httpMethod" type="STRING"/> |
| <field name="httpStatusCode" column="httpStatusCode" type="INT32"/> |
| <field name="responseSize" column="responseSize" type="INT32"/> |
| <field name="referrer" column="referrer" type="STRING"/> |
| <field name="userAgent" column="userAgent" type="STRING"/> |
| </class> |
| |
| <table name ="Metrics"> |
| <primaryKey column="pkmetric" type="STRING" /> |
| <hashPartition numBuckets="8"/> |
| </table> |
| |
| <class name="org.apache.gora.tutorial.log.generated.MetricDatum" keyClass="java.lang.String" table="Metrics" numReplicas="1"> |
| <field name="metricDimension" column="metricDimension" type="STRING"/> |
| <field name="timestamp" column="timestamp" type="INT64"/> |
| <field name="metric" column="metric" type="STRING"/> |
| </class> |
| </gora-otd> |