}
}
@Test
public void testUUIDPart() throws Exception {
CqlStatementResult result;
keyspace.prepareCqlStatement()
.withCql(
"CREATE TABLE uuidtest (id UUID PRIMARY KEY, given text, surname text);")
.execute();
keyspace.prepareCqlStatement()
.withCql(
"INSERT INTO uuidtest (id, given, surname) VALUES (00000000-0000-0000-0000-000000000000, 'x', 'arielle');")
.execute();
result = keyspace.prepareCqlStatement()
.withCql("SELECT given,surname FROM uuidtest ;").execute()
.getResult();
Rows<UUID, String> rows = result.getRows(UUID_CF);
Iterator<Row<UUID, String>> iter = rows.iterator();
while (iter.hasNext()) {
Row<UUID, String> row = iter.next();
ColumnList<String> cols = row.getColumns();
Iterator<Column<String>> colIter = cols.iterator();