Dear Wiki user,

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

The "ThriftExamples" page has been changed by ChrisLarsen:
http://wiki.apache.org/cassandra/ThriftExamples?action=diff&rev1=88&rev2=89

Comment:
Just added C++ code highlighting tag to the C++ example

  
  To create Cassandra.php and cassandra_types.php you must use thrift -gen php 
interface/cassandra.thrift of the cassandra package the rest of these files 
come from the main thrift package.
  
- {{{
+ {{{#
  <?php
  $GLOBALS['THRIFT_ROOT'] = '/usr/share/php/Thrift';
  require_once $GLOBALS['THRIFT_ROOT'].'/packages/cassandra/Cassandra.php';
@@ -554, +554 @@

  == C++ ==
  This is for Cassandra version 0.7 or later
  
- {{{#!c
+ {{{#!cplusplus
  #include "Thrift.h"
  #include "transport/TSocket.h"
  #include "transport/TTransport.h"
@@ -636, +636 @@

        printf("Key: %s\n", results[i].key.c_str());
        for(size_t x=0; x<results[i].columns.size(); x++){
          printf("Column: %s  Value: %s\n", 
results[i].columns[x].column.name.c_str(),
-         results[i].columns[x].column.value.c_str());
+           results[i].columns[x].column.value.c_str());
        }
      }
  

Reply via email to