// update run length stats
RandomAccessBlock randomAccessBlock = cursor.getSingleValueBlock();
if (lastValue == null) {
lastValue = randomAccessBlock;
}
else if (!randomAccessBlock.equalTo(0, lastValue, 0)) {
runsCount++;
lastValue = randomAccessBlock;
}
// update dictionary stats