def __init__(self, collection, cursor_info,
                 conn_id, compile_re=True, retrieved=0):
        self.__collection = collection
        self.__id = cursor_info['id']
        self.__conn_id = conn_id
        self.__data = deque(cursor_info['firstBatch'])
        self.__decode_opts = (
            collection.database.connection.document_class,
            collection.database.connection.tz_aware,
            collection.uuid_subtype,
            compile_re
        )
        self.__retrieved = retrieved
        self.__batch_size = 0
        self.__killed = False
Read at most n characters from stream.
dataset/ETHPy150Open blynch/CloudMemeBackend/pymongo/command_cursor.py/CommandCursor.__init__--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/_pyio.py/TextIOBase.read