You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Lewis John McGibbney (Created) (JIRA)" <ji...@apache.org> on 2012/04/18 22:30:40 UTC
[jira] [Created] (GORA-121) Enhance CassandraMapping to support
additional Column Definitions
Enhance CassandraMapping to support additional Column Definitions
------------------------------------------------------------------
Key: GORA-121
URL: https://issues.apache.org/jira/browse/GORA-121
Project: Apache Gora
Issue Type: New Feature
Components: storage-cassandra
Affects Versions: 0.2
Reporter: Lewis John McGibbney
Assignee: Lewis John McGibbney
Fix For: 0.3
There are 2 parts to this issue
1) CassandraMapping#loadConfiguration currently loads definitions for keyspaces, column families and columns however the support for the latter is limited.
The following is a mapping example
Say we have the keyspace mapping configuration:
<keyspace name="WebPage" cluster="Test Cluster" host="localhost">
<family name="p"/>
<family name="f"/>
<family name="sc" type="super"/>
</keyspace>
and the column mapping configuration:
<class name="org.apache.gora.examples.generated.WebPage" keyClass="java.lang.String" keyspace="WebPage">
<field name="url" family="p" path="c:u"/>
<field name="content" family="p" path="p:cnt:c"/>
<field name="parsedContent" family="p" path="p:parsedContent"/>
<field name="outlinks" family="p" path="p:outlinks"/>
<field name="metadata" family="p" path="c:mt"/>
</class>
Currently we don't support keyClass attributes or field path attributes.
2) Additionally, we mention
private static final String COLUMN_ATTRIBUTE = "qualifier";
however this resource is neither loaded or requested at any stage during the process of ascertaining Cassandra mappings. This should also be supported, if not then it should be removed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira