hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "Hbase/FAQ" by BryanDuxbury
Date Fri, 15 Feb 2008 03:05:51 GMT
Dear Wiki user,

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

The following page has been changed by BryanDuxbury:
http://wiki.apache.org/hadoop/Hbase/FAQ

------------------------------------------------------------------------------
  
  // Add content to 'column:' on a row named 'row_x'
  Text row = new Text("row_x");
- long id = table.startUpdate(row);
+ BatchUpdate update = new BatchUpdate(row);
- table.put(id, "content:",
+ update.put("content:",
    "some content".getBytes(HConstants.UTF8_ENCODING));
- table.commit(id);
+ table.commit(update);
  
  // Now fetch the content just added
  byte data[] = table.get(row, "content:");

Mime
View raw message