View RSS Feed

Cassandra

Cassandra Column Family

Rate this Entry
by , 02-23-2012 at 06:58 PM (747 Views)
ColumnFamily is considered as a structure which is responsible for keeping infinite rows for people who have RDBMS background. This structure has much resemblance with a Table. You may have an idea that ColumnFamily consists of a name that is compared to Table name. A map with a value(that is a map consisting of Columns) and a key (that is comparable to the identifier of rows). Map and SuperColumn have similar rules and key consists of similar value of name of the Column.

Java Code: This is the code to explain Cassandra Column Family
public class ColumnFamily {
Byte[] name;

  // The key is a user generated key
  Map<Byte[] /* key */,

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

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

Updated 02-23-2012 at 07:01 PM by Cassandra

Categories
Framework

Comments