Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions python/pyarrow/ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ class RecordBatchStreamReader(lib._RecordBatchStreamReader):

Parameters
----------
source : bytes/buffer-like, pyarrow.NativeFile, or file-like Python object
Either an in-memory buffer, or a readable file object.
source : str, pathlib.Path, bytes/buffer-like, pyarrow.NativeFile, or file-like Python object
Either a file path, an in-memory buffer, or a readable file object.
If a string or Path is provided, it will be interpreted as a file path.
If you want to use memory map use MemoryMappedFile as source.
options : pyarrow.ipc.IpcReadOptions
Options for IPC deserialization.
Expand Down Expand Up @@ -96,8 +97,9 @@ class RecordBatchFileReader(lib._RecordBatchFileReader):

Parameters
----------
source : bytes/buffer-like, pyarrow.NativeFile, or file-like Python object
Either an in-memory buffer, or a readable file object.
source : str, pathlib.Path, bytes/buffer-like, pyarrow.NativeFile, or file-like Python object
Either a file path, an in-memory buffer, or a readable file object.
If a string or Path is provided, it will be interpreted as a file path.
If you want to use memory map use MemoryMappedFile as source.
footer_offset : int, default None
If the file is embedded in some larger file, this is the byte offset to
Expand Down Expand Up @@ -171,8 +173,9 @@ def open_stream(source, *, options=None, memory_pool=None):

Parameters
----------
source : bytes/buffer-like, pyarrow.NativeFile, or file-like Python object
Either an in-memory buffer, or a readable file object.
source : str, pathlib.Path, bytes/buffer-like, pyarrow.NativeFile, or file-like Python object
Either a file path, an in-memory buffer, or a readable file object.
If a string or Path is provided, it will be interpreted as a file path.
options : pyarrow.ipc.IpcReadOptions
Options for IPC serialization.
If None, default values will be used.
Expand Down Expand Up @@ -210,8 +213,9 @@ def open_file(source, footer_offset=None, *, options=None, memory_pool=None):

Parameters
----------
source : bytes/buffer-like, pyarrow.NativeFile, or file-like Python object
Either an in-memory buffer, or a readable file object.
source : str, pathlib.Path, bytes/buffer-like, pyarrow.NativeFile, or file-like Python object
Either a file path, an in-memory buffer, or a readable file object.
If a string or Path is provided, it will be interpreted as a file path.
footer_offset : int, default None
If the file is embedded in some larger file, this is the byte offset to
the very end of the file data.
Expand Down