byte[] bytes;
if (length < VALUE_CACHE_SIZE) {
bytes = valuesCache.get().get()[length];
} else {
bytes = new byte[length];
<BUG>}
int i = 0;
for (int[] ordinal : ordinals) {
int loc = ordinal[docId];
if (loc != 0) {
bytes[i++] = values[loc];
}</BUG>
}

byte[] bytes;
if (length < VALUE_CACHE_SIZE) {
bytes = valuesCache.get().get()[length];
} else {
bytes = new byte[length];
}
for (int i = 0; i < length; i++) {
bytes[i] = values[ordinals[i][docId]];
}
