Update README.md
This commit is contained in:
parent
034ca8feda
commit
8fcf22f2f5
1 changed files with 8 additions and 0 deletions
|
@ -12,3 +12,11 @@ Java 8 Cassandra Client
|
|||
* Datastax Driver
|
||||
* Maven
|
||||
|
||||
### Example
|
||||
|
||||
```
|
||||
session.select(timeline::getUserId, timeline::getTimestamp, timeline::getText)
|
||||
.where(timeline::getUserId, "==", userId)
|
||||
.orderBy(timeline::getTimestamp, "desc").limit(5).sync()
|
||||
.forEach(System.out::println);
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue