CfDef cfDef = new CfDef("CompositeCassandra", "UserInfo");
cfDef.setKey_validation_class("UTF8Type");
cfDef.setDefault_validation_class("UTF8Type");
cfDef.setComparator_type("UTF8Type");
cfDef.setKey_validation_class("UTF8Type");
ColumnDef columnDef = new ColumnDef(ByteBuffer.wrap("first_name".getBytes()), "UTF8Type");
columnDef.index_type = IndexType.KEYS;
cfDef.addToColumn_metadata(columnDef);
ColumnDef columnDef1 = new ColumnDef(ByteBuffer.wrap("last_name".getBytes()), "UTF8Type");
columnDef1.index_type = IndexType.KEYS;
cfDef.addToColumn_metadata(columnDef1);
ColumnDef columnDef2 = new ColumnDef(ByteBuffer.wrap("age".getBytes()), "Int32Type");
columnDef2.index_type = IndexType.KEYS;
cfDef.addToColumn_metadata(columnDef2);
// ColumnDef columnDef3 = new
// ColumnDef(ByteBuffer.wrap("height".getBytes()), "Int32Type");
// columnDef3.index_type = IndexType.KEYS;