HBASE-1985 change HTable.delete(ArrayList) to HTable.delete(List)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@883897 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
67047d7ec7
commit
225fb345f6
|
@ -202,6 +202,7 @@ Release 0.21.0 - Unreleased
|
|||
it does
|
||||
HBASE-1987 The Put object has no simple read methods for checking what
|
||||
has already been added (Ryan Smith via Stack)
|
||||
HBASE-1985 change HTable.delete(ArrayList) to HTable.delete(List)
|
||||
|
||||
NEW FEATURES
|
||||
HBASE-1901 "General" partitioner for "hbase-48" bulk (behind the api, write
|
||||
|
|
|
@ -21,6 +21,7 @@ package org.apache.hadoop.hbase.client;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.hadoop.hbase.HRegionLocation;
|
||||
import org.apache.hadoop.hbase.HServerAddress;
|
||||
|
@ -204,6 +205,6 @@ public interface HConnection {
|
|||
* @param tableName The name of the table
|
||||
* @throws IOException
|
||||
*/
|
||||
public int processBatchOfDeletes(ArrayList<Delete> list, byte[] tableName)
|
||||
public int processBatchOfDeletes(List<Delete> list, byte[] tableName)
|
||||
throws IOException;
|
||||
}
|
|
@ -1107,7 +1107,7 @@ public class HConnectionManager implements HConstants {
|
|||
* @return Count of how many added or -1 if all added.
|
||||
* @throws IOException
|
||||
*/
|
||||
int process(final ArrayList<? extends Row> list, final byte[] tableName)
|
||||
int process(final List<? extends Row> list, final byte[] tableName)
|
||||
throws IOException {
|
||||
byte [] region = getRegionName(tableName, list.get(0).getRow(), false);
|
||||
byte [] currentRegion = region;
|
||||
|
@ -1214,7 +1214,7 @@ public class HConnectionManager implements HConstants {
|
|||
return b.process(list, tableName);
|
||||
}
|
||||
|
||||
public int processBatchOfDeletes(final ArrayList<Delete> list,
|
||||
public int processBatchOfDeletes(final List<Delete> list,
|
||||
final byte[] tableName)
|
||||
throws IOException {
|
||||
if (list.isEmpty()) return 0;
|
||||
|
|
|
@ -418,7 +418,7 @@ public class HTable implements HTableInterface {
|
|||
* @throws IOException
|
||||
* @since 0.20.1
|
||||
*/
|
||||
public synchronized void delete(final ArrayList<Delete> deletes)
|
||||
public synchronized void delete(final List<Delete> deletes)
|
||||
throws IOException {
|
||||
int last = 0;
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue