Keyspace keyspace = HFactory.createKeyspace("compositeKeyspace", cluster);
SliceQuery<Composite, String, String> query = HFactory.createSliceQuery(keyspace, new CompositeSerializer(),
StringSerializer.get(), StringSerializer.get());
Composite key = new Composite();
key.addComponent(12L, LongSerializer.get());
key.addComponent("az", StringSerializer.get());
query.setColumnFamily("columnFamilyWithRowKeyCompositeType").setKey(key);
query.setRange(null, null, false, 100);
QueryResult<ColumnSlice<String, String>> result = query.execute();
assertThat(result.get().getColumns().get(0).getValue(), is("a"));