You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by Apache Wiki <wi...@apache.org> on 2011/09/07 19:23:20 UTC

[Cassandra Wiki] Update of "ThriftExamples" by MarcoMatarazzo

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 MarcoMatarazzo:
http://wiki.apache.org/cassandra/ThriftExamples?action=diff&rev1=91&rev2=92

Comment:
adding two missing lines that break the sample code (for me, at least)

      Column c;
      c.name = "name";
      c.value = "John Smith";
+     c.__isset.value = true;
  
      // have to go through all of this just to get the timestamp in ms
      struct timeval td;
@@ -595, +596 @@

      usec = usec / 1000;
      ms += usec;
      c.timestamp = ms;
+     c.__isset.timestamp = true;
  
      // insert the "name" column
      cass.insert(key, cparent, c, ConsistencyLevel::ONE);