code: static Deferred<ArrayList<byte[]>>
      resolveOrCreateAllAsync(final TSDB tsdb, final Map<String, String> tags) {
      return resolveAllInternalAsync(tsdb, null, 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).
  @since 2.0