OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, op_type) |
def | index (self, idx) |
def | add (self, original_index, operation) |
Data Fields | |
op_type | |
index_map | |
ops | |
idx_offset | |
Represents a batch of write operations.
def __init__ | ( | self, | |
op_type | |||
) |
Initialize a new Run object.
def add | ( | self, | |
original_index, | |||
operation | |||
) |
Add an operation to this Run instance. :Parameters: - `original_index`: The original index of this operation within a larger bulk operation. - `operation`: The operation document.
def index | ( | self, | |
idx | |||
) |
Get the original index of an operation in this run. :Parameters: - `idx`: The Run index that maps to the original index.
idx_offset |
index_map |
op_type |
ops |