mirror of https://github.com/apache/lucene.git
Changed readLong to readInt for trailing docIds in leaf block
This commit is contained in:
parent
7f95cd383e
commit
af8b914a9f
|
@ -358,8 +358,7 @@ public class DocIdEncodingBenchmark {
|
|||
out.writeLong(packedLong);
|
||||
}
|
||||
for (; i < count; i++) {
|
||||
// out.writeInt(docIds[i]);
|
||||
out.writeLong(docIds[i]);
|
||||
out.writeInt(docIds[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -387,8 +386,7 @@ public class DocIdEncodingBenchmark {
|
|||
docIDs[i + 2] = (int) (packedLong & BPV_21_MASK);
|
||||
}
|
||||
for (; i < count; i++) {
|
||||
// docIDs[i] = in.readInt();
|
||||
docIDs[i] = (int) in.readLong();
|
||||
docIDs[i] = in.readInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue