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:
Michael McCandless 2014-05-15 19:34:35 +00:00
parent fcc1074d33
commit 9ebab12f64
3 changed files with 1757 additions and 1730 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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;