OpenQuizz
Une application de gestion des contenus pédagogiques
_Run Class Reference
Inheritance diagram for _Run:
Collaboration diagram for _Run:

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
 

Detailed Description

Represents a batch of write operations.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  op_type 
)
Initialize a new Run object.

Member Function Documentation

◆ add()

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.

◆ index()

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.

Field Documentation

◆ idx_offset

idx_offset

◆ index_map

index_map

◆ op_type

op_type

◆ ops

ops

The documentation for this class was generated from the following file: