in src/main/java/org/apache/sling/cassandra/resource/provider/util/CassandraResourceProviderUtil.java [94:105]
public static boolean recordExists(QueryResult<CqlRows<String, String, String>> result,String key) {
boolean exists = false;
for (Row<String, String, String> row : (result.get()).getList()) {
for (HColumn column : row.getColumnSlice().getColumns()) {
if(column.getName().equals(key) && column.getValue() != null) {
exists = true;
break;
}
}
}
return exists;
}