Index: src/main/java/org/apache/hadoop/hbase/client/Delete.java =================================================================== --- src/main/java/org/apache/hadoop/hbase/client/Delete.java (revision 1231744) +++ src/main/java/org/apache/hadoop/hbase/client/Delete.java (working copy) @@ -146,16 +146,13 @@ * @return this for invocation chaining */ public Delete deleteFamily(byte [] family) { - this.deleteFamily(family, HConstants.LATEST_TIMESTAMP); + this.deleteFamily(family, this.ts); return this; } /** * Delete all columns of the specified family with a timestamp less than * or equal to the specified timestamp. - *

- * Overrides previous calls to deleteColumn and deleteColumns for the - * specified family. * @param family family name * @param timestamp maximum version timestamp * @return this for invocation chaining @@ -164,8 +161,6 @@ List list = familyMap.get(family); if(list == null) { list = new ArrayList(); - } else if(!list.isEmpty()) { - list.clear(); } list.add(new KeyValue(row, family, null, timestamp, KeyValue.Type.DeleteFamily)); familyMap.put(family, list); @@ -179,7 +174,7 @@ * @return this for invocation chaining */ public Delete deleteColumns(byte [] family, byte [] qualifier) { - this.deleteColumns(family, qualifier, HConstants.LATEST_TIMESTAMP); + this.deleteColumns(family, qualifier, this.ts); return this; } @@ -212,7 +207,7 @@ * @return this for invocation chaining */ public Delete deleteColumn(byte [] family, byte [] qualifier) { - this.deleteColumn(family, qualifier, HConstants.LATEST_TIMESTAMP); + this.deleteColumn(family, qualifier, this.ts); return this; }