Skip to content

Instantly share code, notes, and snippets.

@larsen
Created April 8, 2012 10:06
Show Gist options
  • Save larsen/2336390 to your computer and use it in GitHub Desktop.
Save larsen/2336390 to your computer and use it in GitHub Desktop.
Excerpt from Cassandra's service description in Thrift
struct Column {
1: required binary name,
2: optional binary value,
3: optional i64 timestamp,
4: optional i32 ttl,
}
...
service Cassandra {
...
ColumnOrSuperColumn get(1:required binary key,
2:required ColumnPath column_path,
3:required ConsistencyLevel consistency_level=ConsistencyLevel.ONE)
throws (1:InvalidRequestException ire, 2:NotFoundException nfe, 3:UnavailableException ue, 4:TimedOutException te),
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment