for (int docID = 0; docID < maxDoc; docID++) {
offsets[docID] = totOrds;
dv.get(docID, buf);
if (buf.length > 0) {
// this document has facets
decoder.decode(buf, values);
if (totOrds + values.length >= ords.length) {
ords = ArrayUtil.grow(ords, totOrds + values.length + 1);
}
for (int i = 0; i < values.length; i++) {
ords[totOrds++] = values.ints[i];