Column<Composite> result = query.getKey("mykey").getColumn(makeStringComposite("foo", "bar")).execute()
.getResult();
LOG.debug(result.getStringValue());
// build up a composite range query
Composite start = makeStringEqualityComposite(new String[] { "foo" },
new ComponentEquality[] { ComponentEquality.EQUAL });
// Composite end = new Composite();
// end.addComponent("fyy", StringSerializer.get(),
// ComponentEquality.GREATER_THAN_EQUAL);
Composite end = makeStringEqualityComposite(new String[] { "fyy" },
new ComponentEquality[] { ComponentEquality.GREATER_THAN_EQUAL });
ColumnList<Composite> results = query.getKey("mykey")
.withColumnRange(start.serialize(), end.serialize(), false, 100).execute().getResult();
LOG.debug("Query matched {} results.", results.size());
for (Composite columnKey : results.getColumnNames()) {
LOG.debug("Component(0): {}", columnKey.getComponent(0).getValue(StringSerializer.get()));
LOG.debug("Component(1): {}", columnKey.getComponent(1).getValue(StringSerializer.get()));
LOG.debug("Value: {}", results.getValue(columnKey, StringSerializer.get(), ""));