Skip to content

Commit

Permalink
HBASE-23087 Remove the deprecated bulkload method in AsyncClusterConn…
Browse files Browse the repository at this point in the history
…ection (#670)

Signed-off-by: Wellington Chevreuil <[email protected]>
  • Loading branch information
Apache9 authored Sep 29, 2019
1 parent 8363681 commit c1a476c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,11 @@ CompletableFuture<RegionLocations> getRegionLocations(TableName tableName, byte[
CompletableFuture<String> prepareBulkLoad(TableName tableName);

/**
* @deprecated Use bulkLoad(TableName tableName, List<Pair<byte[], String>> familyPaths,
* byte[] row, boolean assignSeqNum, Token<?> userToken, String bulkToken,
* boolean copyFiles, List<String> clusterIds)
*/
@Deprecated
CompletableFuture<Boolean> bulkLoad(TableName tableName, List<Pair<byte[], String>> familyPaths,
byte[] row, boolean assignSeqNum, Token<?> userToken, String bulkToken, boolean copyFiles);

/**
* Securely bulk load a list of HFiles, passing additional list of clusters ids tracking
* clusters where the given bulk load has already been processed
* (important for bulk loading replication).
*
* Defined as default here to avoid breaking callers who rely on the bulkLoad version that
* does not expect additional clusterIds param.
*
* Securely bulk load a list of HFiles, passing additional list of clusters ids tracking clusters
* where the given bulk load has already been processed (important for bulk loading replication).
* <p/>
* Defined as default here to avoid breaking callers who rely on the bulkLoad version that does
* not expect additional clusterIds param.
* @param tableName the target table
* @param familyPaths hdfs path for the the table family dirs containg files to be loaded
* @param row row key
Expand All @@ -99,13 +88,10 @@ CompletableFuture<Boolean> bulkLoad(TableName tableName, List<Pair<byte[], Strin
* @param bulkToken bulk load token
* @param copyFiles flag for copying the loaded hfiles
* @param clusterIds list of cluster ids where the given bulk load has already been processed.
* @return
*/
default CompletableFuture<Boolean> bulkLoad(TableName tableName, List<Pair<byte[],
String>> familyPaths, byte[] row, boolean assignSeqNum, Token<?> userToken, String bulkToken,
boolean copyFiles, List<String> clusterIds) {
return null;
}
CompletableFuture<Boolean> bulkLoad(TableName tableName, List<Pair<byte[], String>> familyPaths,
byte[] row, boolean assignSeqNum, Token<?> userToken, String bulkToken, boolean copyFiles,
List<String> clusterIds);

/**
* Clean up after finishing bulk load, no matter success or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,6 @@ public CompletableFuture<String> prepareBulkLoad(TableName tableName) {
.call();
}

@Override
public CompletableFuture<Boolean> bulkLoad(TableName tableName,
List<Pair<byte[], String>> familyPaths, byte[] row, boolean assignSeqNum, Token<?> userToken,
String bulkToken, boolean copyFiles) {
return bulkLoad(tableName, familyPaths, row, assignSeqNum,
userToken, bulkToken, copyFiles, null);
}

@Override
public CompletableFuture<Boolean> bulkLoad(TableName tableName,
List<Pair<byte[], String>> familyPaths, byte[] row, boolean assignSeqNum, Token<?> userToken,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ public CompletableFuture<String> prepareBulkLoad(TableName tableName) {

@Override
public CompletableFuture<Boolean> bulkLoad(TableName tableName,
List<Pair<byte[], String>> familyPaths, byte[] row, boolean assignSeqNum, Token<?> userToken,
String bulkToken, boolean copyFiles) {
List<Pair<byte[], String>> familyPaths, byte[] row, boolean assignSeqNum, Token<?> userToken,
String bulkToken, boolean copyFiles, List<String> clusterIds) {
return null;
}

Expand Down

0 comments on commit c1a476c

Please sign in to comment.