private BigLongArray readChunkOffsets(DataInput input)
{
try
{
int chunkCount = input.readInt();
BigLongArray offsets = new BigLongArray(chunkCount);
for (int i = 0; i < chunkCount; i++)
{
try
{
offsets.set(i, input.readLong());
}
catch (EOFException e)
{
String msg = String.format("Corrupted Index File %s: read %d but expected %d chunks.",
indexFilePath, i, chunkCount);