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

Public Member Functions

def __init__ (self)
 
def append (self, binsha, crc, offset)
 
def write (self, pack_sha, write)
 

Detailed Description

Utility to cache index information, allowing to write all information later
in one go to the given stream
**Note:** currently only writes v2 indices

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ append()

def append (   self,
  binsha,
  crc,
  offset 
)
Append one piece of object information

◆ write()

def write (   self,
  pack_sha,
  write 
)
Write the index file using the given write method
:param pack_sha: binary sha over the whole pack that we index
:return: sha1 binary sha over all index file contents

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