View RSS Feed


Cassandra SuperColumn

Rate this Entry
by , 02-23-2012 at 06:56 PM (1248 Views)
A SuperColumn is considered to be a triplet or tuple along with a value and a name. It doesn’t consist of any timestamp, for example the column tuple. It shall be noticed that value is not the binary value, but is more a Map style container. Column or key combinations are present in the map. The most important thing to mention is that name of the column and key consists of same value. Therefore to make it simple, we can say that one or more than one columns are present in SuperColumn.
Java Code: This is the code to explain Cassandra SuperColumn
public class SuperColumn {
  Byte[] name;

  // The key is equal to the name of the Column
  Map<Byte[] /* key */, Column> value = null;
SuperColumn sc = new SuperColumn(); = "person1";
sc.put("firstname", new Column("firstname", "ash");
sc.put("familyname", new Column("familyname", "Mgh");

Submit "Cassandra SuperColumn" to Facebook Submit "Cassandra SuperColumn" to Digg Submit "Cassandra SuperColumn" to Submit "Cassandra SuperColumn" to StumbleUpon Submit "Cassandra SuperColumn" to Google