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:24:35 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=34&rev2=35

  Throws InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException.
  
  === prepare_cql_query ===
-  .  `int prepare_cql_query(binary query, Compression compression)`
+  .  `CqlPreparedResult 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).
+ Prepare a CQL (Cassandra Query Language) statement by compiling and returning
+     * the type of CQL statement
+     * an id token of the compiled CQL stored on the server side.
+     * a count of the discovered bound markers in the 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.
+ Executes a prepared CQL (Cassandra Query Language) statement by passing an id token and
 a list of variables to bind and returns a `CqlResult` containing the results.
  
  == Examples ==
  [[http://wiki.apache.org/cassandra/ClientExamples|There are a few examples on this page
over here.]]

Mime
View raw message