+ "|" + cp.getClassName() + "|" + Integer.toString(cp.getPriority()) + "|" + kvString.toString(); return setCoprocessorToMap(value);
/** * Add a table coprocessor to this table. The coprocessor type must be * org.apache.hadoop.hbase.coprocessor.RegionObserver or Endpoint. It won't * check if the class can be loaded or not. Whether a coprocessor is * loadable or not will be determined when a region is opened. * * @param specStr The Coprocessor specification all in in one String * @throws IOException * @return the modifyable TD * @deprecated used by HTableDescriptor and admin.rb. * As of release 2.0.0, this will be removed in HBase 3.0.0. */ @Deprecated public ModifyableTableDescriptor setCoprocessorWithSpec(final String specStr) throws IOException { CoprocessorDescriptor cpDesc = toCoprocessorDescriptor(specStr).orElseThrow( () -> new IllegalArgumentException( "Format does not match " + CP_HTD_ATTR_VALUE_PATTERN + ": " + specStr)); checkHasCoprocessor(cpDesc.getClassName()); return setCoprocessorToMap(specStr); }
+ "|" + cp.getClassName() + "|" + Integer.toString(cp.getPriority()) + "|" + kvString.toString(); return setCoprocessorToMap(value);
+ "|" + cp.getClassName() + "|" + Integer.toString(cp.getPriority()) + "|" + kvString.toString(); return setCoprocessorToMap(value);
/** * Add a table coprocessor to this table. The coprocessor type must be * org.apache.hadoop.hbase.coprocessor.RegionObserver or Endpoint. It won't * check if the class can be loaded or not. Whether a coprocessor is * loadable or not will be determined when a region is opened. * * @param specStr The Coprocessor specification all in in one String * @throws IOException * @return the modifyable TD * @deprecated used by HTableDescriptor and admin.rb. * As of release 2.0.0, this will be removed in HBase 3.0.0. */ @Deprecated public ModifyableTableDescriptor setCoprocessorWithSpec(final String specStr) throws IOException { CoprocessorDescriptor cpDesc = toCoprocessorDescriptor(specStr).orElseThrow( () -> new IllegalArgumentException( "Format does not match " + CP_HTD_ATTR_VALUE_PATTERN + ": " + specStr)); checkHasCoprocessor(cpDesc.getClassName()); return setCoprocessorToMap(specStr); }
/** * Add a table coprocessor to this table. The coprocessor type must be * org.apache.hadoop.hbase.coprocessor.RegionObserver or Endpoint. It won't * check if the class can be loaded or not. Whether a coprocessor is * loadable or not will be determined when a region is opened. * * @param specStr The Coprocessor specification all in in one String * @throws IOException * @return the modifyable TD * @deprecated used by HTableDescriptor and admin.rb. * As of release 2.0.0, this will be removed in HBase 3.0.0. */ @Deprecated public ModifyableTableDescriptor setCoprocessorWithSpec(final String specStr) throws IOException { CoprocessorDescriptor cpDesc = toCoprocessorDescriptor(specStr).orElseThrow( () -> new IllegalArgumentException( "Format does not match " + CP_HTD_ATTR_VALUE_PATTERN + ": " + specStr)); checkHasCoprocessor(cpDesc.getClassName()); return setCoprocessorToMap(specStr); }