Skip to content

Commit 64fd9a7

Browse files
2005hithljvinayakphegde
authored andcommitted
HBASE-28581 Remove deprecated methods in TableDescriotorBuilder (apache#5892)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
1 parent 45a1930 commit 64fd9a7

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,26 +1380,6 @@ public ModifyableTableDescriptor setCoprocessor(CoprocessorDescriptor cp) throws
13801380
return setCoprocessorToMap(value);
13811381
}
13821382

1383-
/**
1384-
* Add a table coprocessor to this table. The coprocessor type must be
1385-
* org.apache.hadoop.hbase.coprocessor.RegionObserver or Endpoint. It won't check if the class
1386-
* can be loaded or not. Whether a coprocessor is loadable or not will be determined when a
1387-
* region is opened.
1388-
* @param specStr The Coprocessor specification all in in one String
1389-
* @return the modifyable TD
1390-
* @deprecated used by HTableDescriptor and admin.rb. As of release 2.0.0, this will be removed
1391-
* in HBase 3.0.0.
1392-
*/
1393-
@Deprecated
1394-
public ModifyableTableDescriptor setCoprocessorWithSpec(final String specStr)
1395-
throws IOException {
1396-
CoprocessorDescriptor cpDesc =
1397-
toCoprocessorDescriptor(specStr).orElseThrow(() -> new IllegalArgumentException(
1398-
"Format does not match " + CP_HTD_ATTR_VALUE_PATTERN + ": " + specStr));
1399-
checkHasCoprocessor(cpDesc.getClassName());
1400-
return setCoprocessorToMap(specStr);
1401-
}
1402-
14031383
private void checkHasCoprocessor(final String className) throws IOException {
14041384
if (hasCoprocessor(className)) {
14051385
throw new IOException("Coprocessor " + className + " already exists.");

0 commit comments

Comments
 (0)