Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
create bucket of sorted data by ascending timestamp by (user, activity)
// create bucket of sorted data by ascending timestamp by (user, activity)
JavaRDD<Long> times = cassandraRowsRDD.select("timestamp")
.where("user_id=? AND activity=?", i, activity)
.withAscOrder()
.map(CassandraRow::toMap)
.map(entry -> (long) entry.get("timestamp"))
.cache();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.