Explicitly return needStats flag in TermStates

This commit is contained in:
Yuan,Xiao 2023-10-08 22:28:29 -07:00
parent ce3a904465
commit 60fbae60ca
1 changed files with 5 additions and 0 deletions

View File

@ -204,6 +204,11 @@ public final class TermStates {
return docFreq;
}
/** Explicitly return needStats flag */
public boolean hasStats() {
return term == null;
}
/**
* Returns the accumulated term frequency of all {@link TermState} instances passed to {@link
* #register(TermState, int, int, long)}.