File tree Expand file tree Collapse file tree
hbase-client/src/main/java/org/apache/hadoop/hbase/client Expand file tree Collapse file tree Original file line number Diff line number Diff 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." );
You can’t perform that action at this time.
0 commit comments