MCPcopy Create free account
hub / github.com/apache/arrow / GatingFs

Class GatingFs

python/pyarrow/tests/test_dataset.py:4350–4354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4348 # up backpressure. The writes are released at the end of
4349 # the test.
4350 class GatingFs(ProxyHandler):
4351 def open_output_stream(self, path, metadata):
4352 # Block until the end of the test
4353 consumer_gate.wait()
4354 return self._fs.open_output_stream(path, metadata=metadata)
4355 gating_fs = fs.PyFileSystem(GatingFs(fs.LocalFileSystem()))
4356
4357 schema = pa.schema([pa.field('data', pa.int32())])

Callers 1

Calls

no outgoing calls

Tested by 1