.append("1, eran, landau, 34, a\n")
.append("2, netta, landau, 33, b\n")
.append("3, arielle, landau, 6, c\n")
.append("4, eyal, landau, 2, d\n");
RecordReader reader = new CsvRecordReader(new StringReader(
sb.toString()));
RecordWriter writer = new ColumnarRecordWriter(keyspace,
CF_USERS.getName());
try {
reader.start();
writer.start();
List<Pair<String, String>> record = null;
while (null != (record = reader.next())) {
writer.write(record);
}
} catch (IOException e) {
LOG.error(e.getMessage(), e);
Assert.fail();
} catch (ConnectionException e) {
LOG.error(e.getMessage(), e);
Assert.fail();
} finally {
reader.shutdown();
writer.shutdown();
}
try {
Rows<Long, String> rows = keyspace.prepareQuery(CF_USERS)