Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-121

Enhance CassandraMapping to support additional Column Definitions

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 0.2
    • 0.4
    • gora-cassandra
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              lewismc Lewis John McGibbney
              lewismc Lewis John McGibbney
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: