title: Create a Composite Column in Cassandra using Hector Template
body: <p>Requirements:
  Composite Column(Not DynamicComposite), Hector Template Implementation</p>
  
  <p>Hi..
  I am currently trying to create a columnfamily with the below specs:</p>
  
  <pre><code>somekeyId UUID
  Site URL UTF8Type
  Page URL UTF8Type
     - parentURL UTF8Type (Composite)
     - anchortext UTF8Type (Composite)
  </code></pre>
  
  <p>I have created the following code:</p>
  
  <p>To Create The ColumnFamily:</p>
  
  <pre><code>List&lt;ColumnDefinition&gt; columnList = new    ArrayList&lt;ColumnDefinition&gt;();
  ...
  
  ColumnFamilyDefinition cfDef = HFactory.createColumnFamilyDefinition(keyspaceName, "page_internal_links", ComparatorType.COMPOSITETYPE, columnList);
      cfDef.setComparatorTypeAlias("(UTF8Type, UTF8Type, UTF8Type)");
      cfDef.setKeyValidationClass(ComparatorType.UTF8TYPE.getTypeName());
  
  Composite key = new Composite();
  key.addComponent(parentURL, StringSerializer.get());
  key.addComponent(anchorText, StringSerializer.get());
  
  ColumnFamilyTemplate&lt;String, Composite&gt; compTemplate = 
              new ThriftColumnFamilyTemplate&lt;String, Composite&gt;(
                      ksp, "linksCF", StringSerializer.get(), CompositeSerializer.get());
  ColumnFamilyUpdater&lt;String, Composite&gt; compUpdater = compTemplate.createUpdater("key"); // In this row key, I want to provide somekeyId UUID
  // Any suggestions here ??
  compTemplate.update(compUpdater);
  </code></pre>
  
  <p>Thanks for the help in advance. I've been looking for tuts/docs everywhere.. But i ended up nowhere...</p>