title: how do i get the maximum value from a hbase table from the value column?
body: <p>here, i have tried to get the max valued row and its value.
  instead od the standard iteration, i want to know if there exists any function</p>
  
  <pre><code>Scan s = new Scan();
  ResultScanner re = table.getScanner(s);
  int maxVal =0;         
  try{
      for (Result rr = re.next(); rr != null; rr = re.next()) {
          byte [] row = rr.getRow();
          Get g = new Get(row);
          Result r = table.get(g);                   
          String rn = Bytes.toString(r.value());
          int temp = Integer.parseInt(rn);
          if(maxVal &lt; temp)
          maxVal = temp;
      }
      System.out.println(maxVal);
  }
  finally {
      re.close();
  }
  </code></pre>