.getTypeName()));
Keyspace keyspace = HFactory.createKeyspace("compositeKeyspace", cluster);
SliceQuery<String, Composite, String> query = HFactory.createSliceQuery(keyspace, StringSerializer.get(),
new CompositeSerializer(), StringSerializer.get());
query.setColumnFamily("columnFamilyWithCompositeType");
query.setKey("row1");
// Create a composite search range
Composite start = new Composite();
start.addComponent(11L, LongSerializer.get());
start.addComponent("ab", StringSerializer.get());
start.addComponent(0, IntegerSerializer.get());
Composite finish = new Composite();
finish.addComponent(11L, LongSerializer.get());
finish.addComponent("ab", StringSerializer.get());
finish.addComponent(Integer.MAX_VALUE, IntegerSerializer.get());
query.setRange(start, finish, false, 100);
// Now search.
ColumnSlice<Composite, String> columnSlice = query.execute().get();
assertThat(columnSlice.getColumns().size(), is(2));
assertThat(columnSlice.getColumns().get(0).getValue(), is("v2"));
assertThat(columnSlice.getColumns().get(1).getValue(), is("v3"));
SliceQuery<String, Composite, String> query2 = HFactory.createSliceQuery(keyspace, StringSerializer.get(),
new CompositeSerializer(), StringSerializer.get());
query2.setColumnFamily("columnFamilyWithCompositeType");
query2.setKey("row1");
// Create a composite search range
Composite start2 = new Composite();