You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2009/04/23 18:20:34 UTC

svn commit: r767960 - in /hadoop/hbase/branches/0.19: CHANGES.txt src/java/org/apache/hadoop/hbase/client/HTable.java

Author: stack
Date: Thu Apr 23 16:20:34 2009
New Revision: 767960

URL: http://svn.apache.org/viewvc?rev=767960&view=rev
Log:
HBASE-1301 HTable.getRow() returns null if the row does no exist

Modified:
    hadoop/hbase/branches/0.19/CHANGES.txt
    hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/HTable.java

Modified: hadoop/hbase/branches/0.19/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.19/CHANGES.txt?rev=767960&r1=767959&r2=767960&view=diff
==============================================================================
--- hadoop/hbase/branches/0.19/CHANGES.txt (original)
+++ hadoop/hbase/branches/0.19/CHANGES.txt Thu Apr 23 16:20:34 2009
@@ -6,6 +6,8 @@
                (Ken Weiner via Stack)
    HBASE-1202  getRow does not always work when specifying number of versions
    HBASE-1319  Bug in atomicIncrement 0.19.1 only (Ryan Rawson via Stack)
+   HBASE-1301  HTable.getRow() returns null if the row does no exist
+               (Rong-en Fan via Stack)
 
 Release 0.19.1 - 03/19/2009
   BUG FIXES

Modified: hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/HTable.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/HTable.java?rev=767960&r1=767959&r2=767960&view=diff
==============================================================================
--- hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/HTable.java (original)
+++ hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/HTable.java Thu Apr 23 16:20:34 2009
@@ -407,7 +407,7 @@
    * Get all the data for the specified row at the latest timestamp
    * 
    * @param row row key
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final String row) throws IOException {
@@ -418,7 +418,7 @@
    * Get all the data for the specified row at the latest timestamp
    * 
    * @param row row key
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final byte [] row) throws IOException {
@@ -430,7 +430,7 @@
    * 
    * @param row row key
    * @param numVersions number of versions to return
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final String row, final int numVersions)
@@ -444,7 +444,7 @@
    * 
    * @param row row key
    * @param numVersions number of versions to return
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final byte[] row, final int numVersions)
@@ -457,7 +457,7 @@
    * 
    * @param row row key
    * @param ts timestamp
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final String row, final long ts) 
@@ -470,7 +470,7 @@
    * 
    * @param row row key
    * @param ts timestamp
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final byte [] row, final long ts) 
@@ -490,7 +490,7 @@
    * @param row row key
    * @param timestamp timestamp
    * @param numVersions number of versions to return
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final byte[] row, final long timestamp,
@@ -503,7 +503,7 @@
    * 
    * @param row row key
    * @param columns Array of column names and families you want to retrieve.
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final String row, final String [] columns) 
@@ -516,7 +516,7 @@
    * 
    * @param row row key
    * @param columns Array of column names and families you want to retrieve.
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final byte [] row, final byte [][] columns) 
@@ -530,7 +530,7 @@
    * @param row row key
    * @param columns Array of column names and families you want to retrieve.
    * @param numVersions number of versions to return
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final String row, final String[] columns,
@@ -545,7 +545,7 @@
    * @param row row key
    * @param columns Array of column names and families you want to retrieve.
    * @param numVersions number of versions to return
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final byte[] row, final byte[][] columns,
@@ -559,7 +559,7 @@
    * @param row row key
    * @param columns Array of column names and families you want to retrieve.
    * @param ts timestamp
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final String row, final String [] columns, 
@@ -574,7 +574,7 @@
    * @param row row key
    * @param columns Array of column names and families you want to retrieve.
    * @param ts timestamp
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final byte [] row, final byte [][] columns, 
@@ -599,7 +599,7 @@
    * @param columns Array of column names and families you want to retrieve.
    * @param ts timestamp
    * @param rl row lock
-   * @return RowResult is empty if row does not exist.
+   * @return RowResult is <code>null</code> if row does not exist.
    * @throws IOException
    */
   public RowResult getRow(final byte [] row, final byte [][] columns,