use of org.neo4j.util.VisibleForTesting in project neo4j by neo4j.
the class DocValuesCollector method getMatchingDocs.
/**
* @return the documents matched by the query, one {@link MatchingDocs} per visited segment that contains a hit.
*/
@VisibleForTesting
List<MatchingDocs> getMatchingDocs() {
if (docs != null && segmentHits > 0) {
try {
createMatchingDocs();
} catch (IOException e) {
throw new UncheckedIOException(e);
} finally {
docs = null;
scores = null;
context = null;
}
}
return matchingDocs;
}
Aggregations