code: public List<byte[]> lookup() {
      try {
        return lookupAsync().join();
      } catch (InterruptedException e) {
        LOG.error("Interrupted performing lookup", e);
        Thread.currentThread().interrupt();
        return null;
      } catch (DeferredGroupException e) {
        final Throwable ex = Exceptions.getCause(e);
        if (ex instanceof NoSuchUniqueName) {
          throw (NoSuchUniqueName)ex;
        }
        throw new RuntimeException("Unexpected exception", ex);
      } catch (NoSuchUniqueName e) {
        throw e;
      } catch (Exception e) {
        throw new RuntimeException("Unexpected exception", e);
      }
    }
docs: Lookup time series associated with the given metric, tagk, tagv or tag
  pairs. Either the meta table or the data table will be scanned. If no
  metric is given, a full table scan must be performed and this call may take
  a long time to complete.
  When dumping to stdout, if an ID can't be looked up, it will be logged and
  skipped.
  @return A list of TSUIDs matching the given lookup query.
  @throws NoSuchUniqueName if any of the given names fail to resolve to a
  UID.