(self, collection, ordered, bypass_document_validation)
Initialize a _Bulk instance.
Initialize a _Bulk instance.
Initialize a _Bulk instance .
def __init__(self, collection, ordered, bypass_document_validation):
        """Initialize a _Bulk instance.
        """
        self.collection = collection.with_options(
            codec_options=collection.codec_options._replace(
                unicode_decode_error_handler='replace',
                document_class=dict))
        self.ordered = ordered
        self.ops = []
        self.name = "%s.%s" % (collection.database.name, collection.name)
        self.namespace = collection.database.name + '.$cmd'
        self.executed = False
        self.bypass_doc_val = bypass_document_validation
        self.uses_collation = False
def __init__ ( self , collection , ordered , bypass_document_validation ) : self . collection = collection . with_options ( codec_options = collection . codec_options . _replace ( unicode_decode_error_handler = 'replace' , document_class = dict ) ) self . ordered = ordered self . ops = [ ] self . name = "%s.%s" % ( collection . database . name , collection . name ) self . namespace = collection . database . name + '.$cmd' self . executed = False self . bypass_doc_val = bypass_document_validation self . uses_collation = False