Monthly Archives: November 2016

Spring – afterPropertiesSet needed to be called

The static initializer block is only executed when the class is loaded by the class loader. There is no instance of that class at that moment and you will only be able to access class level (static) variables at that … Continue reading

Posted in Java, Programming | Leave a comment

Cassandra – Allow Filtering example

Allow Filtering can only work with the clustering key. Some useful cassandra commands

Posted in cassandra, Programming | Leave a comment

Cassandra – Partition Key, Clustering key

Partition Key: It will be hashed and saved across nodes. Clustering Key: It will group in the same partition key. PRIMARY KEY((partion key), clustering key) Example) create table User( email text, name text, desc text, user_id uuid PRIMARY KEY((email), name, … Continue reading

Posted in cassandra, Programming | Leave a comment

Spring – adding a bean in code

Posted in Java, Programming | Leave a comment

Cassandra – some articles about Cassandra data modelling

http://intellidzine.blogspot.co.uk/2013/11/cassandra-data-modelling-tables.html http://intellidzine.blogspot.com/2014/01/cassandra-data-modelling-primary-keys.html

Posted in Programming | Tagged | Leave a comment