def next(self):
        """
        Reads the next dataset row.

        :return: the next row
        :rtype: Instance
        """
        if not self.__has_more():
            raise StopIteration()
        else:
            return javabridge.get_env().get_string(self.__next())