public T peek() {
    if (!hasNext()) {
      throw new NoSuchElementException();
    }
    return next;
  }
adapted from guava's {@code com.google.common.collect.AbstractIterator}.
zipkin-storage/mysql-v1/src/main/java/zipkin2/storage/mysql/v1/PeekingIterator.java