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 "API" by Max Penet
Date Sat, 25 Aug 2012 19:03:28 GMT
Dear Wiki user,

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

The "API" page has been changed by Max Penet:
http://wiki.apache.org/cassandra/API?action=diff&rev1=33&rev2=34

  === prepare_cql_query ===
   .  `int prepare_cql_query(binary query, Compression compression)`
  
+ Sends a CQL (Cassandra Query Language) statement to the server to be stored/validated as
a prepared statement for later execution from `execute_prepared_cql_query` using its item_id
and possible parameters (indicated by '?' placeholders in the original statement).
+ 
  === execute_prepared_cql_query ===
   .  `CqlResult execute_prepared_cql_query(integer item_id, list<binary> values)`
  
+ Executes a CQL (Cassandra Query Language) prepared statement matching the item_id with supplied
parameters values and returns a CqlResult containing the results. Throws InvalidRequestException,
UnavailableException, TimedOutException, SchemaDisagreementException.
  
  == Examples ==
  [[http://wiki.apache.org/cassandra/ClientExamples|There are a few examples on this page
over here.]]

Mime
View raw message