View RSS Feed

Framework

  1. Cassandra Sorting

    by , 02-23-2012 at 06:04 PM
    Along with ColumnFamily CompareWith attribute, sorting gets specified. Here are few options from which one may select.
    1. BytesType
    2. UTF8Type
    3. LexicalUUIDType
    4. TimeUUIDType
    5. AsciiType
    6. LongType

    Content of Column names are threatened by each of the mentioned type, being a different data type. For example, Column names are being threat by Longtype as 64 Bit long value. Other examples are that suppose of ColumnFamily where CompareWith ...
    Categories
    Framework
  2. Cassandra Keyspaces

    by , 02-23-2012 at 06:02 PM
    Keyspaces are very simple. From RDBMS view point, you may make a comparison to your schema. Normally, you just have 1/application. ColumnFamily are present in a key space. However, it shall be noticed that no relationship exists b/w ColumnFamily as they are separate containers. Than, comes the turn of different containers sorting mechanism. This clearly lets you know that in Cassandra, how data model works.
    Categories
    Framework
  3. Cassandra SuperColumn Family

    by , 02-23-2012 at 06:00 PM
    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[]
    ...
  4. Cassandra Column Family

    by , 02-23-2012 at 05:58 PM
    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
      
    ...

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

    Categories
    Framework
  5. Cassandra SuperColumn

    by , 02-23-2012 at 05:56 PM
    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.
    ...
    Categories
    Framework
  6. Cassandra Column

    by , 02-23-2012 at 05:54 PM
    Column is also known as triplet or tuple which has value, name & timestamp. This is considered to be a smallest data container.

    Name:  1.JPG
Views: 761
Size:  3.8 KB

    Cassandra Column


    Columnís Java representation is given as following. Complex structures are more conveniently been explained by this:
    Java Code: This is the code to explain Cassandra Column
    public class Column {
      Byte[] name;
      Byte[] value;
      Long timestamp;
    }
    Categories
    Framework
  7. Cassandra alternatives

    by , 02-21-2012 at 08:12 PM
    Before taking any start along with Cassandra, it is important to be well aware of the fact that many alternatives exists for complimenting the relational database. E.g., memcached has been made to be used for Livejournal.com, and is free of cost. If you apply such solution to some larger Mysql database alone, you may expect a great performance boost of 100 times.

    Other than this, another famous Nosql solution that has been well renowned is MongoDB, which has been written in language ...
    Tags: cassandra Add / Edit Tags
    Categories
    Framework