diff --git a/README.md b/README.md index 14b2f9a..220251c 100644 --- a/README.md +++ b/README.md @@ -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); +```