List args = Arrays.asList(ByteBuffer.wrap(srcTableId.getBytes()), ByteBuffer.wrap(newTableName.getBytes()));
Map opts = new HashMap();
<<<<<<< HEAD
opts.putAll(propertiesToSet);
for (String prop : propertiesToExclude)
opts.put(prop, "");
=======
for (Entry entry : propertiesToSet.entrySet()) {
if (entry.getKey().startsWith(CLONE_EXCLUDE_PREFIX))
throw new IllegalArgumentException("Property can not start with " + CLONE_EXCLUDE_PREFIX);
opts.put(entry.getKey(), entry.getValue());
}
for (String prop : propertiesToExclude) {
opts.put(CLONE_EXCLUDE_PREFIX + prop, "");
}
>>>>>>> 8622b4d670ecb3fde53022cb6588df649357d2c9
doTableOperation(TableOperation.CLONE, args, opts);
} |