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 Sun, 10 Feb 2008 03:03:45 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

------------------------------------------------------------------------------
  {{{
    hql > @ 'hdfs://hbase/file.txt' [arg...];
  }}}
+ 
+  * The arguments is used to replace some characters with some other characters in a query
string.
+ 
  === Applications ===
  {{{
  CASE 1 :
  
    map {
-     rs = hql.executeQuery("@ '" + cmdFilePath + "';");
+     rs = hql.executeQuery("@ '" + cmdFilePath + "'"
+          + " " + strA + " " + strB;");
      output.collect(key, rs.result());
+   }
+ 
+   main(String[] args) {
+     cmdFilePath = args[0];
+     strA = args[1];
+     strB = args[2];
    }
  
  CASE 2 :

Mime
View raw message