code: static ArrayList<byte[]> resolveOrCreateAll(final TSDB tsdb,
                                                final Map<String, String> tags) {
      return resolveAllInternal(tsdb, tags, true);
    }
docs: Resolves (and creates, if necessary) all the tags (name=value) into the a
  sorted byte arrays.
  @param tsdb The TSDB to use for UniqueId lookups.
  @param tags The tags to resolve. If a new tag name or tag value is
  seen, it will be assigned an ID.
  @return an array of sorted tags (tag id, tag name).