hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r814797 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/client/Delete.java
Date Mon, 14 Sep 2009 19:35:37 GMT
Author: stack
Date: Mon Sep 14 19:35:37 2009
New Revision: 814797

URL: http://svn.apache.org/viewvc?rev=814797&view=rev
Log:
HBASE-1838  [javadoc] Add javadoc to Delete explaining behavior when no timestamp provided

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/Delete.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=814797&r1=814796&r2=814797&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Mon Sep 14 19:35:37 2009
@@ -22,6 +22,8 @@
    HBASE-1808  [stargate] fix how columns are specified for scanners
    HBASE-1828  CompareFilters are broken from client-side
    HBASE-1836  test of indexed hbase broken
+   HBASE-1838  [javadoc] Add javadoc to Delete explaining behavior when no
+               timestamp provided
 
   IMPROVEMENTS
    HBASE-1760  Cleanup TODOs in HTable

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/Delete.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/Delete.java?rev=814797&r1=814796&r2=814797&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/Delete.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/Delete.java Mon Sep 14 19:35:37
2009
@@ -51,11 +51,16 @@
  * {@link #deleteColumn(byte [],byte [],long) deleteColumn}
  * for each column version to delete.
  * <p>
- * Specifying timestamps calling constructor, deleteFamily, and deleteColumns
- * will delete all versions with a timestamp less than or equal to that
- * specified.  Specifying a timestamp to deleteColumn will delete versions
- * only with a timestamp equal to that specified.
- * <p>The timestamp passed to the constructor is only used ONLY for delete of
+ * Specifying timestamps, deleteFamily and deleteColumns will delete all
+ * versions with a timestamp less than or equal to that passed.  If no
+ * timestamp is specified, an entry is added with a timestamp of 'now'
+ * where 'now' is the servers's System.currentTimeMillis().
+ * Specifying a timestamp to the deleteColumn method will
+ * delete versions only with a timestamp equal to that specified.
+ * If no timestamp is passed to deleteColumn, internally, it figures the
+ * most recent cell's timestamp and adds a delete at that timestamp; i.e.
+ * it deletes the most recently added cell.
+ * <p>The timestamp passed to the constructor is used ONLY for delete of
  * rows.  For anything less -- a deleteColumn, deleteColumns or
  * deleteFamily -- then you need to use the method overrides that take a
  * timestamp.  The constructor timestamp is not referenced.
@@ -356,4 +361,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}



Mime
View raw message