code: public QueryPlus<T> withQuerySegmentSpec(QuerySegmentSpec spec)
    {
      return new QueryPlus<>(query.withQuerySegmentSpec(spec), queryMetrics, identity);
    }
docs: Equivalent of withQuery(getQuery().withQuerySegmentSpec(spec)).