cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chandrasekhar M <>
Subject Thrift Java Client - Get a column family from a Keyspace
Date Thu, 14 Jul 2011 11:59:53 GMT

I have been playing around with Cassandra and its Java Thrift Client.

>From my understanding, one could get/retrieve a Keyspace, KsDef object, using the describe_keyspace(String
name) method on the Cassandra.Client object.

Subsequently, one could get a list of all the ColumnFamily definitions in a keyspace, using
the getCf_defs() method on the KsDef Object.

Is there a way to get a single ColumnFamily if I know the name of the columnfamily (just a
convenience function) ?

Currently the only way for that would be iterating through the list of column families returned
by the getCf_defs() method.

Thanks in Advance


Register for Impetus Webinar on 'Device Side Performance Optimization of Mobile Apps', July
08 (10:00 am Pacific Time). Impetus is presenting a Cassandra case study on July 11 as a sponsor
for Cassandra SF 2011 in San Francisco.

Click to know more. Follow us on

NOTE: This message may contain information that is confidential, proprietary, privileged or
otherwise protected by law. The message is intended solely for the named addressee. If received
in error, please destroy and notify the sender. Any use of this email is prohibited when received
in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this
communication has been maintained nor that the communication is free of errors, virus, interception
or interference.

View raw message