curStorageArrayIndex++;
logger.debug("Allocating a new storage array. {} so far.", curStorageArrayIndex);
storageArrays.add(curStorageArray.toArray());
curOffsetWithInStorage = 1; // for pointer consistency waste a slot.
curStorageArray.clear(MAX_STORAGE_SIZE);
curStorageArray.add(Integer.MIN_VALUE); // first place is wasted.
}
for (int i=0;i< curOrdinalNoForDoc; i++) curStorageArray.add(0); // reserve space.