// Decode the properties map. In current version, it is not used.
StreamUtils.decodeMap(new BinaryDecoder(input));
// Read in all index (timestamp, position pairs).
LongList timestamps = new LongArrayList(1000);
LongList positions = new LongArrayList(1000);
byte[] buf = new byte[Longs.BYTES * 2];
while (ByteStreams.read(input, buf, 0, buf.length) == buf.length) {
timestamps.add(Bytes.toLong(buf, 0));
positions.add(Bytes.toLong(buf, Longs.BYTES));
}
return Maps.immutableEntry(timestamps, positions);
}