Skip to content

Commit

Permalink
commit to add mapping files and additional configuration properties t…
Browse files Browse the repository at this point in the history
…o gora.properties.
  • Loading branch information
lewismc committed Mar 2, 2012
1 parent f6e873a commit f9f420a
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/resources/gora-accumulo-mapping.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<gora-orm>
<class name="goraci.generated.CINode" keyClass="java.lang.Long" table="ci" encoder="org.apache.gora.accumulo.encoders.HexEncoder">
<field name="prev" family="meta" qualifier="prev"/>
<field name="client" family="meta" qualifier="client"/>
<field name="count" family="meta" qualifier="count" />
</class>
</gora-orm>
</gora-orm>
9 changes: 9 additions & 0 deletions src/main/resources/gora-cassandra-mapping.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<gora-orm>
<class name="goraci.generated.CINode" keyClass="java.lang.Long" keyspace="ci">
<field name="prev" path=""/>
<field name="client" path=""/>
<field name="count" path=""/>
</class>
</gora-orm>
<!-- N.B. incorrect mapping -->
9 changes: 9 additions & 0 deletions src/main/resources/gora-hbase-mapping.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<gora-orm>
<class name="goraci.generated.CINode" keyClass="java.lang.Long" table="ci">
<field name="prev" family="meta" qualifier="prev"/>
<field name="client" family="meta" qualifier="client"/>
<field name="count" family="meta" qualifier="count"/>
</class>
</gora-orm>

11 changes: 11 additions & 0 deletions src/main/resources/gora-sql-mapping.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<gora-orm>
<class name="goraci.generated.CINode" keyClass="java.lang.Long" table="ci">
<primarykey column="" length=""/>
<field name="prev" column="" length=""/>
<field name="client" column=""/>
<field name="count" column="" jdbc-type="VARCHAR_IGNORECASE" length=""/> <!-- jdbc-type is HSQLDB specific for testing -->
</class>
</gora-orm>
<!-- N.B. incorrect mapping -->

57 changes: 56 additions & 1 deletion src/main/resources/gora.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
###############################
# Default Accumulo properties #
###############################
gora.datastore.default=org.apache.gora.accumulo.store.AccumuloStore
gora.datastore.accumulo.instance=a14
gora.datastore.accumulo.zookeepers=localhost
gora.datastore.accumulo.user=root
gora.datastore.accumulo.password=secret
gora.datastore.accumulo.password=secret

###############################
# Default SqlStore properties #
###############################

#gora.sqlstore.jdbc.driver=org.hsqldb.jdbcDriver
#gora.sqlstore.jdbc.url=jdbc:hsqldb:hsql://localhost/nutchtest
# gora.sqlstore.jdbc.user=
# gora.sqlstore.jdbc.password=

################################
# Default AvroStore properties #
################################

# gora.avrostore.codec.type=BINARY||JSON
# gora.avrostore.output.path=file:///tmp/gora.avrostore.test.output

################################
# DatafileAvroStore properties #
################################
# DataFileAvroStore is file based store which uses Avro's
# DataFile{Writer,Reader}'s as a backend. This datastore supports
# mapreduce.

# gora.datafileavrostore.###=

#########################
# HBaseStore properties #
#########################
# HBaseStore currently reads no Gora properties. However the HBase client
# requires that the Configuration contains a valid "hbase.zookeeper.quorum"
# property. It should be included within hbase-site.xml on the classpath. When
# this property is omitted, it expects Zookeeper to run on localhost:2181.

#############################
# CassandraStore properties #
#############################

#gora.cassandrastore.servers=localhost:9160

#######################
# MemStore properties #
#######################
# This is a memory based {@link DataStore} implementation for tests.

# gora.memstore.###=

#######################
# Misc properties #
#######################
#gora.datastore.default=org.apache.gora.mock.store.MockDataStore
#gora.datastore.autocreateschema=true

0 comments on commit f9f420a

Please sign in to comment.