Source:
<code>public void importTable(String tableName, Set<String> importDirs) throws TableExistsException, AccumuloException, AccumuloSecurityException { checkArgument(tableName != null, "tableName is null"); checkArgument(importDirs != null, "importDir is null"); checkArgument(tableName.length() <= MAX_TABLE_NAME_LEN, "Table name is longer than " + MAX_TABLE_NAME_LEN + " characters"); Set<String> checkedImportDirs = new HashSet<String>(); try { for (String s : importDirs) { checkedImportDirs.add(checkPath(s, "Table", "").toString()); } } catch (IOException e) { throw new AccumuloException(e); } <START> String normedImportDir = StringUtils.join(checkedImportDirs, ","); <END> try { Path exportFilePath = findExportFile(context, checkedImportDirs); FileSystem fs = exportFilePath.getFileSystem(context.getHadoopConf()); Map<String,String> props = getExportedProps(fs, exportFilePath); for (Entry<String,String> entry : props.entrySet()) { if (Property.isClassProperty(entry.getKey()) && !entry.getValue().contains(Constants.CORE_PACKAGE_NAME)) { LoggerFactory.getLogger(this.getClass()).info( "Imported table sets '{}' to '{}'. Ensure this class is on Accumulo classpath.", sanitize(entry.getKey()), sanitize(entry.getValue())); } } } catch (IOException ioe) { LoggerFactory.getLogger(this.getClass()).warn( "Failed to check if imported table references external java classes : {}", ioe.getMessage()); } List<ByteBuffer> args = Arrays.asList(ByteBuffer.wrap(tableName.getBytes(UTF_8)), ByteBuffer.wrap(StringUtils.join(importDirs, ",").getBytes(UTF_8))); Map<String,String> opts = Collections.emptyMap(); try { doTableFateOperation(tableName, AccumuloException.class, FateOperation.TABLE_IMPORT, args, opts); } catch (TableNotFoundException e) { throw new AssertionError(e); } }</code><technical_language>This used</technical_language>

Target:
public void importTable(String tableName, Set<String> importDirs) throws TableExistsException, AccumuloException, AccumuloSecurityException { checkArgument(tableName != null, "tableName is null"); checkArgument(importDirs != null, "importDir is null"); checkArgument(tableName.length() <= MAX_TABLE_NAME_LEN, "Table name is longer than " + MAX_TABLE_NAME_LEN + " characters"); Set<String> checkedImportDirs = new HashSet<String>(); try { for (String s : importDirs) { checkedImportDirs.add(checkPath(s, "Table", "").toString()); } } catch (IOException e) { throw new AccumuloException(e); } try { Path exportFilePath = findExportFile(context, checkedImportDirs); FileSystem fs = exportFilePath.getFileSystem(context.getHadoopConf()); Map<String,String> props = getExportedProps(fs, exportFilePath); for (Entry<String,String> entry : props.entrySet()) { if (Property.isClassProperty(entry.getKey()) && !entry.getValue().contains(Constants.CORE_PACKAGE_NAME)) { LoggerFactory.getLogger(this.getClass()).info( "Imported table sets '{}' to '{}'. Ensure this class is on Accumulo classpath.", sanitize(entry.getKey()), sanitize(entry.getValue())); } } } catch (IOException ioe) { LoggerFactory.getLogger(this.getClass()).warn( "Failed to check if imported table references external java classes : {}", ioe.getMessage()); } List<ByteBuffer> args = Arrays.asList(ByteBuffer.wrap(tableName.getBytes(UTF_8)), ByteBuffer.wrap(StringUtils.join(checkedImportDirs, ",").getBytes(UTF_8))); Map<String,String> opts = Collections.emptyMap(); try { doTableFateOperation(tableName, AccumuloException.class, FateOperation.TABLE_IMPORT, args, opts); } catch (TableNotFoundException e) { throw new AssertionError(e); } }