mirror of https://github.com/apache/lucene.git
LUCENE-5675: more rote factoring
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5675@1595020 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fcc1074d33
commit
9ebab12f64
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -100,7 +100,7 @@ public class Stats {
|
||||||
this.field = field;
|
this.field = field;
|
||||||
}
|
}
|
||||||
|
|
||||||
void startBlock(FieldReader.SegmentTermsEnum.Frame frame, boolean isFloor) {
|
void startBlock(SegmentTermsEnum.Frame frame, boolean isFloor) {
|
||||||
totalBlockCount++;
|
totalBlockCount++;
|
||||||
if (isFloor) {
|
if (isFloor) {
|
||||||
if (frame.fp == frame.fpOrig) {
|
if (frame.fp == frame.fpOrig) {
|
||||||
|
@ -120,7 +120,7 @@ public class Stats {
|
||||||
totalBlockStatsBytes += frame.statsReader.length();
|
totalBlockStatsBytes += frame.statsReader.length();
|
||||||
}
|
}
|
||||||
|
|
||||||
void endBlock(FieldReader.SegmentTermsEnum.Frame frame) {
|
void endBlock(SegmentTermsEnum.Frame frame) {
|
||||||
final int termCount = frame.isLeafBlock ? frame.entCount : frame.state.termBlockOrd;
|
final int termCount = frame.isLeafBlock ? frame.entCount : frame.state.termBlockOrd;
|
||||||
final int subBlockCount = frame.entCount - termCount;
|
final int subBlockCount = frame.entCount - termCount;
|
||||||
totalTermCount += termCount;
|
totalTermCount += termCount;
|
||||||
|
|
Loading…
Reference in New Issue