This project has retired. For details please refer to its Attic page.
CassandraMapping (Apache Gora 0.2.1 API)

org.apache.gora.cassandra.store
Class CassandraMapping

java.lang.Object
  extended by org.apache.gora.cassandra.store.CassandraMapping

public class CassandraMapping
extends Object


Field Summary
static org.slf4j.Logger LOG
           
 
Constructor Summary
CassandraMapping(org.jdom.Element keyspace, org.jdom.Element mapping)
          Primary class for loading Cassandra configuration from the 'MAPPING_FILE'.
 
Method Summary
 String getClusterName()
          Simply gets the Cassandra cluster (the machines (nodes) in a logical Cassandra instance) name.
 String getColumn(String name)
           
 List<me.prettyprint.hector.api.ddl.ColumnFamilyDefinition> getColumnFamilyDefinitions()
           
 String getFamily(String name)
           
 String getHostName()
          Simply gets the Cassandra host name.
 String getKeyspaceName()
          Simply gets the Cassandra namespace for ColumnFamilies, typically one per application
 boolean isSuper(String family)
          Read family super attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.slf4j.Logger LOG
Constructor Detail

CassandraMapping

public CassandraMapping(org.jdom.Element keyspace,
                        org.jdom.Element mapping)
Primary class for loading Cassandra configuration from the 'MAPPING_FILE'.

Method Detail

getHostName

public String getHostName()
Simply gets the Cassandra host name.

Returns:
hostName

getClusterName

public String getClusterName()
Simply gets the Cassandra cluster (the machines (nodes) in a logical Cassandra instance) name. Clusters can contain multiple keyspaces.

Returns:
clusterName

getKeyspaceName

public String getKeyspaceName()
Simply gets the Cassandra namespace for ColumnFamilies, typically one per application

Returns:

getFamily

public String getFamily(String name)

getColumn

public String getColumn(String name)

isSuper

public boolean isSuper(String family)
Read family super attribute.

Parameters:
family - the family name
Returns:
true is the family is a super column family

getColumnFamilyDefinitions

public List<me.prettyprint.hector.api.ddl.ColumnFamilyDefinition> getColumnFamilyDefinitions()


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.