mirror of
https://github.com/apache/lucene.git
synced 2025-02-22 10:15:27 +00:00
LUCENE-5040: fix wasted work in Lucene40TVWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1490348 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
567ad03fa6
commit
f4cd73a338
@ -242,8 +242,8 @@ public final class Lucene40TermVectorsWriter extends TermVectorsWriter {
|
||||
if (payloads) {
|
||||
tvf.writeBytes(payloadData.bytes, payloadData.offset, payloadData.length);
|
||||
}
|
||||
for (int i = 0; i < bufferedIndex; i++) {
|
||||
if (offsets) {
|
||||
if (offsets) {
|
||||
for (int i = 0; i < bufferedIndex; i++) {
|
||||
tvf.writeVInt(offsetStartBuffer[i] - lastOffset);
|
||||
tvf.writeVInt(offsetEndBuffer[i] - offsetStartBuffer[i]);
|
||||
lastOffset = offsetEndBuffer[i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user