docs: private static int assign(final TSDB tsdb,
                              final byte[] table,
                              final short idwidth,
                              final String[] args) {
      boolean randomize = false;
      if (UniqueId.stringToUniqueIdType(args[1]) == UniqueIdType.METRIC) {
        randomize = tsdb.getConfig().getBoolean("tsd.core.uid.random_metrics");
      }
      final UniqueId uid = new UniqueId(tsdb.getClient(), table, args[1], 
          (int) idwidth, randomize);
      for (int i = 2; i < args.length; i++) {
        try {
          uid.getOrCreateId(args[i]);
          // Lookup again the ID we've just created and print it.
          extactLookupName(tsdb.getClient(), table, idwidth, args[1], args[i]);
        } catch (HBaseException e) {
          LOG.error("error while processing " + args[i], e);
          return 3;
        }
      }
      return 0;
    }