presto-spi/src/main/java/io/prestosql/spi/connector/InMemoryRecordSet.java/InMemoryRecordCursor/advanceNextPosition
class InMemoryRecordCursor:        @Override
        public boolean advanceNextPosition()
        {
            if (!records.hasNext()) {
                record = null;
                return false;
            }
            record = records.next();
            completedBytes += sizeOf(record);

            return true;
        }