View RSS Feed

Cassandra

Cassandra SuperColumn Family

Rate this Entry
by , 02-23-2012 at 06:00 PM (897 Views)
Finally, largest container the SuperColumnFamily is here. If ColumnFamily is understandable by you then such construction is not at all harder. Despite of Column, in inner most Map, consider SuperColumns. This will surely make an extra dimension addition.Key of the Map (that consists of SuperColumn) shall be similar as that of name of the SuperColumn.
Java Code: This is the code to explain Cassandra SuperColumn Family
public class SuperColumnFamily {
  Byte[] name;

  // The key is a user generated key
  Map<Byte[] /*key */,
    // The key is equal to the name of 
    // the SuperColumn.
   Map<Byte[] /* key */, 
      SuperColumn>> value = null;
}

Submit "Cassandra SuperColumn Family" to Facebook Submit "Cassandra SuperColumn Family" to Digg Submit "Cassandra SuperColumn Family" to del.icio.us Submit "Cassandra SuperColumn Family" to StumbleUpon Submit "Cassandra SuperColumn Family" to Google

Comments