HBASE-22746 Removed deprecated methods from Delete

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
Jan Hentschel 2019-07-30 08:52:19 +02:00 committed by GitHub
parent c286a31590
commit 46a432386e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 27 deletions

View File

@ -153,20 +153,6 @@ public class Delete extends Mutation {
super(row, ts, familyMap);
}
/**
* Advanced use only. Add an existing delete marker to this Delete object.
* @param kv An existing KeyValue of type "delete".
* @return this for invocation chaining
* @throws IOException
* @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0. Use {@link #add(Cell)}
* instead
*/
@SuppressWarnings("unchecked")
@Deprecated
public Delete addDeleteMarker(Cell kv) throws IOException {
return this.add(kv);
}
/**
* Add an existing delete marker to this Delete object.
* @param cell An existing cell of type "delete".
@ -309,17 +295,6 @@ public class Delete extends Mutation {
return (Delete) super.setDurability(d);
}
/**
* Method for setting the Delete's familyMap
* @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.
* Use {@link Delete#Delete(byte[], long, NavigableMap)} instead
*/
@Deprecated
@Override
public Delete setFamilyCellMap(NavigableMap<byte[], List<Cell>> map) {
return (Delete) super.setFamilyCellMap(map);
}
@Override
public Delete setClusterIds(List<UUID> clusterIds) {
return (Delete) super.setClusterIds(clusterIds);

View File

@ -3047,8 +3047,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
*/
void delete(NavigableMap<byte[], List<Cell>> familyMap,
Durability durability) throws IOException {
Delete delete = new Delete(FOR_UNIT_TESTS_ONLY);
delete.setFamilyCellMap(familyMap);
Delete delete = new Delete(FOR_UNIT_TESTS_ONLY, HConstants.LATEST_TIMESTAMP, familyMap);
delete.setDurability(durability);
doBatchMutate(delete);
}