Cassandra SuperColumn
by , 02-23-2012 at 05:56 PM (701 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 SuperColumnpublic class SuperColumn { Byte[] name; // The key is equal to the name of the Column Map<Byte[] /* key */, Column> value = null; } SuperColumn sc = new SuperColumn(); sc.name = "person1"; sc.put("firstname", new Column("firstname", "ash"); sc.put("familyname", new Column("familyname", "Mgh");









Email Blog Entry
Size Reduced for Images in PDF &...
05-15-2013, 05:53 PM in Java Software