+
    nDjƒ%  ã                   óÚ  € ^ RI t ^ RIt^ RIHtHtHtHtHtH	t	H
t
HtHtHtHtHtHtHtHtHtHt ^ RIHt  ! R R]P,                  4      tRt]R,           R,           t ! R R	]P4                  4      t ! R
 R]P8                  4      t ! R R]P<                  4      tR t R t!RR/R lt"R] R2]"n#        RRRR/R lt$RRRR/R lt%R] R2]%n#        R!RRRR/R llt&RRRR/R lt'RR/R  lt(R# )"é    N)ÚIpcReadOptionsÚIpcWriteOptionsÚ	ReadStatsÚ
WriteStatsÚMessageÚMessageReaderÚRecordBatchReaderÚ_ReadPandasMixinÚMetadataVersionÚ	AlignmentÚread_messageÚread_record_batchÚread_schemaÚread_tensorÚwrite_tensorÚget_record_batch_sizeÚget_tensor_sizec                   ó6   a € ] tR t^"t o RtRRRR/R ltRtV tR# )ÚRecordBatchStreamReaderaÓ  
Reader for the Arrow streaming binary format.

Parameters
----------
source : bytes/buffer-like, pyarrow.NativeFile, or file-like Python object
    Either an in-memory buffer, or a readable file object.
    If you want to use memory map use MemoryMappedFile as source.
options : pyarrow.ipc.IpcReadOptions
    Options for IPC deserialization.
    If None, default values will be used.
memory_pool : MemoryPool, default None
    If None, default memory pool is used.
ÚoptionsNÚmemory_poolc               óB   € \        V4      pV P                  WVR 7       R# )©r   r   N©Ú _ensure_default_ipc_read_optionsÚ_open)ÚselfÚsourcer   r   s   &&$$ÚE/data/cameron/venvs/s3viz/lib/python3.14/site-packages/pyarrow/ipc.pyÚ__init__Ú RecordBatchStreamReader.__init__2   s   € Ü2°7Ó;ˆØ
‰
6¸ˆ
ÖDó    © ©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r    Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r   "   s&   ø‡ € ñðE¨$ð E¸D÷ Eò Er"   r   aO  Parameters
----------
sink : str, pyarrow.NativeFile, or file-like Python object
    Either a file path, or a writable file object.
schema : pyarrow.Schema
    The Arrow schema for data to be written to the file.
options : pyarrow.ipc.IpcWriteOptions
    Options for IPC serialization.

    If None, default values will be used: the legacy format will not
    be used unless overridden by setting the environment variable
    ARROW_PRE_0_15_IPC_FORMAT=1, and the V5 metadata version will be
    used unless overridden by setting the environment variable
    ARROW_PRE_1_0_METADATA_VERSION=1.Ú
zÎmetadata : dict | pyarrow.KeyValueMetadata, optional
    Key/value pairs (both must be bytes-like) that will be stored
    in the file footer and are retrievable via
    pyarrow.ipc.open_file(...).metadata.c                   ó8   a € ] tR t^St o R] 2tRR/R ltRtV tR# )ÚRecordBatchStreamWriterz.Writer for the Arrow streaming binary format

r   Nc               óB   € \        V4      pV P                  WVR 7       R# )©r   N©Ú_get_legacy_format_defaultr   )r   ÚsinkÚschemar   s   &&&$r   r    Ú RecordBatchStreamWriter.__init__X   s   € Ü,¨WÓ5ˆØ
‰
4¨ˆ
Ö1r"   r#   )	r%   r&   r'   r(   Ú_ipc_writer_class_docr)   r    r*   r+   r,   s   @r   r0   r0   S   s(   ø‡ € ðàÐ ð€Gð2°÷ 2ò 2r"   r0   c                   ó:   a € ] tR t^]t o RtRRRRR/R lltRtV tR# )ÚRecordBatchFileReadera  
Class for reading Arrow record batch data from the Arrow binary file format

Parameters
----------
source : bytes/buffer-like, pyarrow.NativeFile, or file-like Python object
    Either an in-memory buffer, or a readable file object.
    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
    the very end of the file data
options : pyarrow.ipc.IpcReadOptions
    Options for IPC serialization.
    If None, default values will be used.
memory_pool : MemoryPool, default None
    If None, default memory pool is used.
Nr   r   c               óB   € \        V4      pV P                  WW4R 7       R# )©Úfooter_offsetr   r   Nr   )r   r   r=   r   r   s   &&&$$r   r    ÚRecordBatchFileReader.__init__p   s"   € ä2°7Ó;ˆØ
‰
6Ø"ð 	ö 	=r"   r#   ©Nr$   r,   s   @r   r:   r:   ]   s#   ø‡ € ññ$=¸dð =Ø!÷=ó =r"   r:   c                   ó<   a € ] tR t^wt o R] 2tRRRR/R ltRtV tR# )ÚRecordBatchFileWriterz/Writer to create the Arrow binary file format

r   NÚmetadatac               óB   € \        V4      pV P                  WW4R 7       R# )©r   rB   Nr3   )r   r5   r6   r   rB   s   &&&$$r   r    ÚRecordBatchFileWriter.__init__}   s   € Ü,¨WÓ5ˆØ
‰
4¨ˆ
ÖDr"   r#   )	r%   r&   r'   r(   Ú_ipc_file_writer_class_docr)   r    r*   r+   r,   s   @r   rA   rA   w   s3   ø‡ € ðàÐ ð €GðE°ð E¸t÷ Eò Er"   rA   c                 óž  € V '       d0   \        V \        4      '       g   \        R \        V 4       24      hV # \        P
                  p\        \        \        P                  P                  RR4      4      4      p\        \        \        P                  P                  RR4      4      4      '       d   \        P                  p\        VVR7      # )zexpected IpcWriteOptions, got ÚARROW_PRE_0_15_IPC_FORMATÚ0ÚARROW_PRE_1_0_METADATA_VERSION)Úuse_legacy_formatÚmetadata_version)Ú
isinstancer   Ú	TypeErrorÚtyper   ÚV5ÚboolÚintÚosÚenvironÚgetÚV4)r   rL   rK   s   &  r   r4   r4   ‚   s›   € ßÜ˜'¤?×3Ò3ÜÐ<¼TÀ'»]¸OÐLÓMÐMØˆä&×)Ñ)ÐäŒS”—‘—‘Ð ;¸SÓAÓBÓCð äŒC”—
‘
—‘Ð?ÀÓEÓF×GÒGÜ*×-Ñ-ÐÜÐ->Ø,<ô>ð >r"   c                 ó”   € V '       d.   \        V \        4      '       g   \        R \        V 4       24      hT ;'       g    \        4       # )zexpected IpcReadOptions, got )rM   r   rN   rO   r2   s   &r   r   r   ‘   s9   € ß”z '¬>×:Ò:ÜÐ7¼¸W»°ÐGÓHÐHØ×&Ð&”nÓ&Ð&r"   r   c                ó   € \        WVR 7      # )r2   )r0   )r5   r6   r   s   &&$r   Ú
new_streamrY   —   s   € Ü" 4Ø+2ô4ð 4r"   z5Create an Arrow columnar IPC stream writer instance

zS

Returns
-------
writer : RecordBatchStreamWriter
    A writer for the given sink
r   c               ó   € \        WVR7      # )aß  
Create reader for Arrow streaming format.

Parameters
----------
source : bytes/buffer-like, pyarrow.NativeFile, or file-like Python object
    Either an in-memory buffer, or a readable file object.
options : pyarrow.ipc.IpcReadOptions
    Options for IPC serialization.
    If None, default values will be used.
memory_pool : MemoryPool, default None
    If None, default memory pool is used.

Returns
-------
reader : RecordBatchStreamReader
    A reader for the given source
r   )r   )r   r   r   s   &$$r   Úopen_streamr[   ¨   s   € ô& # 6Ø/:ô<ð <r"   rB   c                ó   € \        WW#R 7      # )rD   )rA   )r5   r6   r   rB   s   &&$$r   Únew_filer]   ¿   s   € Ü  °wÔRÐRr"   z3Create an Arrow columnar IPC file writer instance

zQ

Returns
-------
writer : RecordBatchFileWriter
    A writer for the given sink
c               ó   € \        WW#R7      # )ai  
Create reader for Arrow file format.

Parameters
----------
source : bytes/buffer-like, pyarrow.NativeFile, or file-like Python object
    Either an in-memory buffer, or a readable file object.
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.
options : pyarrow.ipc.IpcReadOptions
    Options for IPC serialization.
    If None, default values will be used.
memory_pool : MemoryPool, default None
    If None, default memory pool is used.

Returns
-------
reader : RecordBatchFileReader
    A reader for the given source
r<   )r:   )r   r=   r   r   s   &&$$r   Ú	open_filer_   Ï   s   € ô, !ØØô2ð 2r"   ÚnthreadsÚpreserve_indexc               óV  € \         P                  P                  WVR7      p\         P                  ! 4       p\         P                  ! WCP
                  4      ;_uu_ 4       pVP                  V4       RRR4       VP                  4       #   + '       g   i     TP                  4       # ; i)a`  
Serialize a pandas DataFrame into a buffer protocol compatible object.

Parameters
----------
df : pandas.DataFrame
nthreads : int, default None
    Number of threads to use for conversion to Arrow, default all CPUs.
preserve_index : bool, default None
    The default of None will store the index as a column, except for
    RangeIndex which is stored as metadata only. If True, always
    preserve the pandas index data as a column. If False, no index
    information is saved and the result will have a default RangeIndex.

Returns
-------
buf : buffer
    An object compatible with the buffer protocol.
)r`   ra   N)ÚpaÚRecordBatchÚfrom_pandasÚBufferOutputStreamr0   r6   Úwrite_batchÚgetvalue)Údfr`   ra   Úbatchr5   Úwriters   &$$   r   Úserialize_pandasrl   ê   s|   € ô( N‰N×&Ñ& rØ6Dð 'ó F€Eä× Ò Ó"€DÜ	×	#Ò	# D¯,©,×	7Ô	7¸6Ø×Ñ˜5Ô!÷ 
8à=‰=‹?Ð÷ 
8Ö	7à=‰=‹?Ðús   ÁB	Â	B(	Úuse_threadsTc               óæ   € \         P                  ! V 4      p\         P                  ! V4      ;_uu_ 4       pVP                  4       pRRR4       XP	                  VR7      #   + '       g   i     L"; i)aZ  Deserialize a buffer protocol compatible object into a pandas DataFrame.

Parameters
----------
buf : buffer
    An object compatible with the buffer protocol.
use_threads : bool, default True
    Whether to parallelize the conversion using multiple threads.

Returns
-------
df : pandas.DataFrame
    The buffer deserialized as pandas DataFrame
N)rm   )rc   ÚBufferReaderr   Úread_allÚ	to_pandas)Úbufrm   Úbuffer_readerÚreaderÚtables   &$   r   Údeserialize_pandasrv     sP   € ô —O’O CÓ(€MÜ	×	#Ò	# M×	2Ô	2°fØ—‘Ó!ˆ÷ 
3à?‰? {ˆ?Ó3Ð3÷ 
3×	2ús   µA Á A0	r?   ))rS   Úpyarrowrc   Úpyarrow.libr   r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   ÚlibÚ_RecordBatchStreamReaderr   r8   rF   Ú_RecordBatchStreamWriterr0   Ú_RecordBatchFileReaderr:   Ú_RecordBatchFileWriterrA   r4   r   rY   r)   r[   r]   r_   rl   rv   r#   r"   r   Ú<module>r~      sI  ðó( 
ã ÷A÷ A÷ A÷ Aõ Aõ ôE˜c×:Ñ:ô Eð*)Ð ð$ Ø
õð,õ,ð ô2˜c×:Ñ:ô 2ô=˜C×6Ñ6ô =ô4E˜C×6Ñ6ô Eò>ò'ð4¨ô 4ð
ð Ð ð ð	€
Ô ð< 4ð <°Tô <ð.S dð S°Tô Sðð Ð ð ð	€Ô ñ2°Tð 2Àtõ 2ð6 Tð ¸$ô ð84¨4ö 4r"   