| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../integration/../generated/pyarrow.memory_map.html | [Back] [Original] |
Section Navigation
Open memory map at file path. Size of the memory map cannot change.
strWhether the file is opened for reading (r), writing (w) or both (r+).
MemoryMappedFileExamples
Reading from a memory map without any memory allocation or copying:
>>> import pyarrow as pa
>>> with pa.output_stream('example_mmap.txt') as stream:
... stream.write(b'Constructing a buffer referencing the mapped memory')
...
51
>>> with pa.memory_map('example_mmap.txt') as mmap:
... mmap.read_at(6,45)
...
b'memory'
Copyright 2016-2026 Apache Software Foundation.
Apache Arrow, Arrow, Apache, the Apache logo, and the Apache Arrow project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.
Created using Sphinx 9.1.0.
Built with the PyData Sphinx Theme 0.20.0.
| Web Proxy Viewer | New URL | Original Page |