cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cassandra Wiki] Update of "ThriftInterface" by Chris Goffinet
Date Fri, 15 May 2009 21:24:16 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.

The following page has been changed by Chris Goffinet:
http://wiki.apache.org/cassandra/ThriftInterface

------------------------------------------------------------------------------
  
  Get a dict containing `{columnName, value, timestamp}` for a specific row.
  
+ The easiest way to thin of this coming from a SQL world is:
+ SELECT age FROM users WHERE id = 1
+ 
  Some examples on our table:
  
  {{{ 
- > ./Cassandra-remote -h <hostname>:<ThriftPort> get_column 'users' '1' 'base_attributes:age'
{'columnName': 'age', 'value': '25', 'timestamp': 0}
+ > ./Cassandra-remote -h <hostname>:<ThriftPort> get_column 'users' '1' 'base_attributes:age'

+ {'columnName': 'age', 'value': '25', 'timestamp': 0}
- > ./Cassandra-remote -h <hostname>:<ThriftPort> get_column 'users' '1' 'edges:friends:2'
{'columnName': '2', 'value': '1', 'timestamp': 0}
+ > ./Cassandra-remote -h <hostname>:<ThriftPort> get_column 'users' '1' 'edges:friends:2'

+ {'columnName': '2', 'value': '1', 'timestamp': 0}
  }}} 
  
  == get_column_count ==

Mime
View raw message