code: @Override
    public int nextDoc() throws IOException {
      resetQueue();
      noMorePositions = false;
      return (spans.nextDoc() == NO_MORE_DOCS) ? NO_MORE_DOCS : toMatchDoc();
    }
docs: /*
  (non-Javadoc)
  
  @see org.apache.lucene.search.DocIdSetIterator#nextDoc()