mirror of https://github.com/apache/lucene.git
Explicitly return needStats flag in TermStates
This commit is contained in:
parent
ce3a904465
commit
60fbae60ca
|
@ -204,6 +204,11 @@ public final class TermStates {
|
||||||
return docFreq;
|
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
|
* Returns the accumulated term frequency of all {@link TermState} instances passed to {@link
|
||||||
* #register(TermState, int, int, long)}.
|
* #register(TermState, int, int, long)}.
|
||||||
|
|
Loading…
Reference in New Issue