T - Result type. For example Column or SuperColumnpublic interface Query<T>
ThriftColumnQuery.
The common usage pattern is to create a query, set the required query attributes and invoke
execute() such as in the following example:
ColumnQuery q = createColumnQuery(keyspace, serializer, serializer);
Result> r = q.setKey(key).
setName(COLUMN_NAME).
setColumnFamily(CF_NAME).
execute();
HColumn c = r.get();
return c.getValue();
Note that all query mutators, such as setName or setColumnFamily always return the Query object
so it's easy to write strings such as q.setKey(x).setName(y).setColumnFamily(z).execute();| Modifier and Type | Method and Description |
|---|---|
QueryResult<T> |
execute() |
QueryResult<T> execute()
Copyright © 2014. All Rights Reserved.