(index-prio) Fail louder when size is 0 in PrioDocIdsTransformer

We can't deal with this scenario and should complain very loudly
This commit is contained in:
Viktor Lofgren 2024-07-11 19:22:05 +02:00
parent 97695693f2
commit 6303977e9c

View File

@ -37,9 +37,8 @@ public class PrioDocIdsTransformer implements LongArrayTransformations.LongIOTra
final int sizeL = (int) ((endL - startL));
final long startOffsetB = writeOffsetB;
if (sizeL == 0) {
return -1;
}
if (sizeL == 0)
throw new IllegalStateException("Empty range");
readChannel.position(startL * 8);
readBuffer.clear();