(self, data, meta={})
| 29 | self.compressor = self.cctx.stream_writer(self.fh) |
| 30 | |
| 31 | def add_data(self, data, meta={}): |
| 32 | self.compressor.write( |
| 33 | json.dumps({"text": data, "meta": meta}, default=json_serial).encode( |
| 34 | "UTF-8" |
| 35 | ) |
| 36 | + b"\n" |
| 37 | ) |
| 38 | |
| 39 | def commit(self): |
| 40 | self.compressor.flush(zstandard.FLUSH_FRAME) |
nothing calls this directly
no outgoing calls
no test coverage detected