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] Trivial Update of "Hbase/HbaseShell/HQL" by udanax
Date Sat, 09 Feb 2008 05:26:50 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 udanax:
http://wiki.apache.org/hadoop/Hbase/HbaseShell/HQL

------------------------------------------------------------------------------
      // Iterate through the ResultSet
      // and return the actual row/column/timestamp attribute names and cell value
  
-     Text row = rs.getRowName();
+     row = rs.getRowName();
-     Text column = rs.getColumnName();
+     column = rs.getColumnName();
-     long timestamp = rs.getTimeStamp(); /* or rs.getDate(); */
+     timestamp = rs.getTimeStamp(); /* or rs.getDate(); */
-     DataType value = rs.getValue("datatype");
+     value = rs.getValue(/* Data Type */); 
    }
  }}}
  

Mime
View raw message