Selfie
Loading...
Searching...
No Matches
selfie_lib.WriteTracker.ToBeFileWriteTracker Class Reference
Inheritance diagram for selfie_lib.WriteTracker.ToBeFileWriteTracker:
selfie_lib.WriteTracker.WriteTracker selfie_lib.TypedPath.TypedPath selfie_lib.WriteTracker.ToBeFileLazyBytes

Public Member Functions

 __init__ (self)
 
None writeToDisk (self, TypedPath key, bytes snapshot, CallStack call, SnapshotFileLayout layout)
 
- Public Member Functions inherited from selfie_lib.WriteTracker.WriteTracker
 recordInternal (self, T key, U snapshot, CallStack call, SnapshotFileLayout layout, bool allow_multiple_equivalent_writes=True)
 
- Public Member Functions inherited from selfie_lib.TypedPath.TypedPath
 __hash__ (self)
 
str __str__ (self)
 
str name (self)
 
bool is_folder (self)
 
None assert_folder (self)
 
"TypedPath" parent_folder (self)
 
"TypedPath" resolve_file (self, str child)
 
"TypedPath" resolve_folder (self, str child)
 
str relativize (self, "TypedPath" child)
 
bool __eq__ (self, object other)
 
bool __lt__ (self, "TypedPath" other)
 
"TypedPath" of_folder (cls, str path)
 
"TypedPath" of_file (cls, str path)
 
- Public Member Functions inherited from selfie_lib.WriteTracker.ToBeFileLazyBytes
 readData (self)
 
 __eq__ (self, other)
 
 __hash__ (self)
 

Additional Inherited Members

- Public Attributes inherited from selfie_lib.WriteTracker.WriteTracker
 lock
 
- Public Attributes inherited from selfie_lib.TypedPath.TypedPath
 absolute_path
 
- Public Attributes inherited from selfie_lib.WriteTracker.ToBeFileLazyBytes
 location
 
 layout
 
 data
 

Detailed Description

Definition at line 276 of file WriteTracker.py.

Constructor & Destructor Documentation

◆ __init__()

selfie_lib.WriteTracker.ToBeFileWriteTracker.__init__ (   self)

Reimplemented from selfie_lib.WriteTracker.WriteTracker.

Definition at line 277 of file WriteTracker.py.

277 def __init__(self):
278 super().__init__()
279

Member Function Documentation

◆ writeToDisk()

None selfie_lib.WriteTracker.ToBeFileWriteTracker.writeToDisk (   self,
TypedPath  key,
bytes  snapshot,
CallStack  call,
SnapshotFileLayout  layout 
)

Reimplemented from selfie_lib.WriteTracker.ToBeFileLazyBytes.

Definition at line 280 of file WriteTracker.py.

286 ) -> None:
287 lazyBytes = ToBeFileLazyBytes(key, layout, snapshot)
288 self.recordInternal(key, lazyBytes, call, layout)
289 lazyBytes.writeToDisk()

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