MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / index

Method index

pymongo/bulk_shared.py:54–59  ·  view source on GitHub ↗

Get the original index of an operation in this run. :param idx: The Run index that maps to the original index.

(self, idx: int)

Source from the content-addressed store, hash-verified

52 self.idx_offset: int = 0
53
54 def index(self, idx: int) -> int:
55 """Get the original index of an operation in this run.
56
57 :param idx: The Run index that maps to the original index.
58 """
59 return self.index_map[idx]
60
61 def add(self, original_index: int, operation: Any) -> None:
62 """Add an operation to this Run instance.

Callers 14

apply_is_syncFunction · 0.80
translate_importsFunction · 0.80
translate_async_sleepsFunction · 0.80
custom_selectorMethod · 0.80
test_pool_unpauseMethod · 0.80
custom_selectorMethod · 0.80
test_pool_unpauseMethod · 0.80
read_pref_mode_from_nameFunction · 0.80
_merge_commandFunction · 0.80

Calls

no outgoing calls

Tested by 6

custom_selectorMethod · 0.64
test_pool_unpauseMethod · 0.64
custom_selectorMethod · 0.64
test_pool_unpauseMethod · 0.64