"127.0.0.1:9160"))
.withConnectionPoolMonitor(new CountingConnectionPoolMonitor())
.buildKeyspace(ThriftFamilyFactory.getInstance());
context.start();
Keyspace keyspace = context.getEntity();
MutationBatch m = keyspace.prepareMutationBatch();
// m.withRow(CF_USER_STATS, "acct1234")
// .incrementCounterColumn("loginCount", 1);
try {
OperationResult<Void> result = m.execute();
} catch (ConnectionException e) {
System.out.println(e);
}
try {
OperationResult<ColumnList<String>> result = keyspace
.prepareQuery(CF_USER_INFO).getKey("acct1234").execute();
ColumnList<String> columns = result.getResult();
// Lookup columns in response by name
int age = columns.getColumnByName("age").getIntegerValue();