+
    JV-j:1  ã                   óÎ   € ^ RI Ht ^ RIt^ RIHt ^ RIHt ^ RIHt  ! R R4      t	Rt
 ! R R	4      tR"R
 ltR]n        RRRRRR#RRRRRRRRRRRRRRRR/R ltR ]
 R!2]n        R# )$é    )ÚIntegralN)ÚTable)Ú_resolve_filesystem_and_pathc                   óX  a € ] tR t^t o RtR t]R 4       t]R 4       t]R 4       t	]R 4       t
]R 4       t]R 4       t]R	 4       t]R
 4       t]R 4       t]R 4       t]R 4       t]R 4       t]R 4       t]R 4       t]R 4       t]R 4       t]R 4       tRR ltRR ltRR ltRtV tR# )ÚORCFilezë
Reader interface for a single ORC file

Parameters
----------
source : str or pyarrow.NativeFile
    Readable source. For passing Python file objects or byte buffers,
    see pyarrow.io.PythonFileInterface or pyarrow.io.BufferReader.
c                óp   € \         P                  ! 4       V n        V P                  P                  V4       R # ©N)Ú_orcÚ	ORCReaderÚreaderÚopen)ÚselfÚsources   &&Ú\/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/pyarrow/orc.pyÚ__init__ÚORCFile.__init__&   s"   € Ü—n’nÓ&ˆŒØ�‰×Ñ˜Ö ó    c                ó6   € V P                   P                  4       # )z/The file metadata, as an arrow KeyValueMetadata)r   Úmetadata©r   s   &r   r   ÚORCFile.metadata*   ó   € ð �{‰{×#Ñ#Ó%Ð%r   c                ó6   € V P                   P                  4       # )z#The file schema, as an arrow schema)r   Úschemar   s   &r   r   ÚORCFile.schema/   s   € ð �{‰{×!Ñ!Ó#Ð#r   c                ó6   € V P                   P                  4       # )zThe number of rows in the file)r   Únrowsr   s   &r   r   ÚORCFile.nrows4   s   € ð �{‰{× Ñ Ó"Ð"r   c                ó6   € V P                   P                  4       # )z!The number of stripes in the file)r   Únstripesr   s   &r   r    ÚORCFile.nstripes9   r   r   c                ó6   € V P                   P                  4       # )z4Format version of the ORC file, must be 0.11 or 0.12)r   Úfile_versionr   s   &r   r#   ÚORCFile.file_version>   s   € ð �{‰{×'Ñ'Ó)Ð)r   c                ó6   € V P                   P                  4       # )z2Software instance and version that wrote this file)r   Úsoftware_versionr   s   &r   r&   ÚORCFile.software_versionC   ó   € ð �{‰{×+Ñ+Ó-Ð-r   c                ó6   € V P                   P                  4       # )zCompression codec of the file)r   Úcompressionr   s   &r   r*   ÚORCFile.compressionH   ó   € ð �{‰{×&Ñ&Ó(Ð(r   c                ó6   € V P                   P                  4       # )z?Number of bytes to buffer for the compression codec in the file)r   Úcompression_sizer   s   &r   r.   ÚORCFile.compression_sizeM   r(   r   c                ó6   € V P                   P                  4       # )zkName of the writer that wrote this file.
If the writer is unknown then its Writer ID
(a number) is returned)r   Úwriterr   s   &r   r1   ÚORCFile.writerR   s   € ð
 �{‰{×!Ñ!Ó#Ð#r   c                ó6   € V P                   P                  4       # )zVersion of the writer)r   Úwriter_versionr   s   &r   r4   ÚORCFile.writer_versionY   ó   € ð �{‰{×)Ñ)Ó+Ð+r   c                ó6   € V P                   P                  4       # )zJNumber of rows per an entry in the row index or 0
if there is no row index)r   Úrow_index_strider   s   &r   r8   ÚORCFile.row_index_stride^   s   € ð �{‰{×+Ñ+Ó-Ð-r   c                ó6   € V P                   P                  4       # )zNumber of stripe statistics)r   Únstripe_statisticsr   s   &r   r;   ÚORCFile.nstripe_statisticsd   ó   € ð �{‰{×-Ñ-Ó/Ð/r   c                ó6   € V P                   P                  4       # )z/Length of the data stripes in the file in bytes)r   Úcontent_lengthr   s   &r   r?   ÚORCFile.content_lengthi   r6   r   c                ó6   € V P                   P                  4       # )z<The number of compressed bytes in the file stripe statistics)r   Ústripe_statistics_lengthr   s   &r   rB   Ú ORCFile.stripe_statistics_lengthn   s   € ð �{‰{×3Ñ3Ó5Ð5r   c                ó6   € V P                   P                  4       # )z1The number of compressed bytes in the file footer)r   Úfile_footer_lengthr   s   &r   rE   ÚORCFile.file_footer_lengths   r=   r   c                ó6   € V P                   P                  4       # )z*The number of bytes in the file postscript)r   Úfile_postscript_lengthr   s   &r   rH   ÚORCFile.file_postscript_lengthx   s   € ð �{‰{×1Ñ1Ó3Ð3r   c                ó6   € V P                   P                  4       # )zThe number of bytes in the file)r   Úfile_lengthr   s   &r   rK   ÚORCFile.file_length}   r,   r   Nc                ó@  € Vf   R # V P                   p. pV Fƒ  p\        V\        4      '       di   \        V4      p^ Tu;8:  d   \	        V4      8  d)   M M%W$,          P
                  pVP                  V4       Kd  \        R\	        V4      V3,          4      hVu # 	  V# )Nz/Column indices must be in 0 <= ind < %d, got %d)r   Ú
isinstancer   ÚintÚlenÚnameÚappendÚ
ValueError)r   Úcolumnsr   ÚnamesÚcols   &&   r   Ú_select_namesÚORCFile._select_names‚   s–   € ØŠ?Ùà—‘ˆØˆÛˆCÜ˜#œx×(Ò(Ü˜#“h�Ø˜Ö)œc &›k×)Ø �+×*Ñ*�CØ—L‘L Ö%ä$ð &/Ü25°f³+¸sÐ1Cõ&Dó Eð Eð ’ñ ð ˆr   c                ó\   € V P                  V4      pV P                  P                  WR7      # )ab  Read a single stripe from the file.

Parameters
----------
n : int
    The stripe index
columns : list
    If not None, only these columns will be read from the stripe. A
    column name may be a prefix of a nested field, e.g. 'a' will select
    'a.b', 'a.c', and 'a.d.e'

Returns
-------
pyarrow.RecordBatch
    Content of the stripe as a RecordBatch.
©rT   )rW   r   Úread_stripe)r   ÚnrT   s   &&&r   r[   ÚORCFile.read_stripe–   s,   € ð" ×$Ñ$ WÓ-ˆØ�{‰{×&Ñ& qÐ&Ó:Ð:r   c                ó\   € V P                  V4      pV P                  P                  VR7      # )av  Read the whole file.

Parameters
----------
columns : list
    If not None, only these columns will be read from the file. A
    column name may be a prefix of a nested field, e.g. 'a' will select
    'a.b', 'a.c', and 'a.d.e'. Output always follows the
    ordering of the file and not the `columns` list.

Returns
-------
pyarrow.Table
    Content of the file as a Table.
rZ   )rW   r   Úread)r   rT   s   &&r   r_   ÚORCFile.readª   s,   € ð  ×$Ñ$ WÓ-ˆØ�{‰{×Ñ¨ÐÓ0Ð0r   )r   r	   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Úpropertyr   r   r   r    r#   r&   r*   r.   r1   r4   r8   r;   r?   rB   rE   rH   rK   rW   r[   r_   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r      sw  ø‡ € ñò!ð ñ&ó ð&ð ñ$ó ð$ð ñ#ó ð#ð ñ&ó ð&ð ñ*ó ð*ð ñ.ó ð.ð ñ)ó ð)ð ñ.ó ð.ð ñ$ó ð$ð ñ,ó ð,ð ñ.ó ð.ð
 ñ0ó ð0ð ñ,ó ð,ð ñ6ó ð6ð ñ0ó ð0ð ñ4ó ð4ð ñ)ó ð)ôô(;÷(1ò 1r   r   a©  file_version : {"0.11", "0.12"}, default "0.12"
    Determine which ORC file version to use.
    `Hive 0.11 / ORC v0 <https://orc.apache.org/specification/ORCv0/>`_
    is the older version
    while `Hive 0.12 / ORC v1 <https://orc.apache.org/specification/ORCv1/>`_
    is the newer one.
batch_size : int, default 1024
    Number of rows the ORC writer writes at a time.
stripe_size : int, default 64 * 1024 * 1024
    Size of each ORC stripe in bytes.
compression : string, default 'uncompressed'
    The compression codec.
    Valid values: {'UNCOMPRESSED', 'SNAPPY', 'ZLIB', 'LZ4', 'ZSTD'}
    Note that LZ0 is currently not supported.
compression_block_size : int, default 64 * 1024
    Size of each compression block in bytes.
compression_strategy : string, default 'speed'
    The compression strategy i.e. speed vs size reduction.
    Valid values: {'SPEED', 'COMPRESSION'}
row_index_stride : int, default 10000
    The row index stride i.e. the number of rows per
    an entry in the row index.
padding_tolerance : double, default 0.0
    The padding tolerance.
dictionary_key_size_threshold : double, default 0.0
    The dictionary key size threshold. 0 to disable dictionary encoding.
    1 to always enable dictionary encoding.
bloom_filter_columns : None, set-like or list-like, default None
    Columns that use the bloom filter.
bloom_filter_fpp : double, default 0.05
    Upper limit of the false-positive rate of the bloom filter.
c                   ó„   a € ] tR t^àt o R] R2tRtRRRRRRR	R
RRRRRRRRRRRRRR/R ltR tR t	R t
R tR tRtV tR# ) Ú	ORCWritera  
Writer interface for a single ORC file

Parameters
----------
where : str or pyarrow.io.NativeFile
    Writable target. For passing Python file objects or byte buffers,
    see pyarrow.io.PythonFileInterface, pyarrow.io.BufferOutputStream
    or pyarrow.io.FixedSizeBufferWriter.
Ú
Fr#   ú0.12Ú
batch_sizeé   Ústripe_sizer*   ÚuncompressedÚcompression_block_sizeé   Úcompression_strategyÚspeedr8   é'  Úpadding_toleranceç        Údictionary_key_size_thresholdÚbloom_filter_columnsNÚbloom_filter_fppçš™™™™™©?c               ó–   € \         P                  ! 4       V n        V P                  P                  VVVVVVVVV	V
VVR 7       RV n        R# )©r#   ro   rq   r*   rs   ru   r8   rx   rz   r{   r|   TN)r
   rl   r1   r   Úis_open)r   Úwherer#   ro   rq   r*   rs   ru   r8   rx   rz   r{   r|   s   &&$$$$$$$$$$$r   r   ÚORCWriter.__init__ï   sV   € ô —n’nÓ&ˆŒØ�‰×ÑØØ%Ø!Ø#Ø#Ø#9Ø!5Ø-Ø/Ø*GØ!5Ø-ð 	ô 	
ð ˆŽr   c                ó&   € V P                  4        R # r	   ©Úcloser   s   &r   Ú__del__ÚORCWriter.__del__  ó   € Ø�
‰
Žr   c                ó   € V # r	   © r   s   &r   Ú	__enter__ÚORCWriter.__enter__  s   € Øˆr   c                ó&   € V P                  4        R # r	   r„   )r   ÚargsÚkwargss   &*,r   Ú__exit__ÚORCWriter.__exit__  rˆ   r   c                ód   € V P                   '       g   Q hV P                  P                  V4       R# )zÒ
Write the table into an ORC file. The schema of the table must
be equal to the schema used when opening the ORC file.

Parameters
----------
table : pyarrow.Table
    The table to be written into the ORC file
N)r€   r1   Úwrite)r   Útables   &&r   r“   ÚORCWriter.write  s$   € ð �|�|ˆ|Ðˆ|Ø�‰×Ñ˜%Ö r   c                óp   € V P                   '       d$   V P                  P                  4        RV n         R# R# )z
Close the ORC file
FN)r€   r1   r…   r   s   &r   r…   ÚORCWriter.close#  s)   € ð �<�<ˆ<Ø�K‰K×ÑÔØ ˆDŽLñ r   )r€   r1   é   )ra   rb   rc   rd   Ú_orc_writer_args_docsre   r€   r   r†   r‹   r�   r“   r…   rg   rh   ri   s   @r   rl   rl   à   s²   ø‡ € ð	ð Ð ð ð
€Gð €GðØ$ðà ðð .ðð ,ð	ð
 ).ðð '.ðð #(ðð $'ðð 03ðð '+ðð #'ôò<òòò!÷!ð !r   rl   c                 óü   € \        W4      w  r#Ve   VP                  V4      p Ve;   \        V4      ^ 8X  d+   \        V 4      P	                  4       P                  V4      pV# \        V 4      P	                  VR7      pV# )NrZ   )r   Úopen_input_filerP   r   r_   Úselect)r   rT   Ú
filesystemÚpathÚresults   &&&  r   Ú
read_tabler    ,  sx   € Ü3°FÓGÑ€JØÒØ×+Ñ+¨DÓ1ˆàÒœs 7›|¨qÔ0Ü˜“×%Ñ%Ó'×.Ñ.¨wÓ7ˆð €Mô ˜“×%Ñ%¨gÐ%Ó6ˆà€Mr   a˜  
Read a Table from an ORC file.

Parameters
----------
source : str, pyarrow.NativeFile, or file-like object
    If a string passed, can be a single file name. For file-like objects,
    only read a single file. Use pyarrow.BufferReader to read a file
    contained in a bytes or buffer-like object.
columns : list
    If not None, only these columns will be read from the file. A column
    name may be a prefix of a nested field, e.g. 'a' will select 'a.b',
    'a.c', and 'a.d.e'. Output always follows the ordering of the file and
    not the `columns` list. If empty, no columns will be read. Note
    that the table will still have the correct num_rows set despite having
    no columns.
filesystem : FileSystem, default None
    If nothing passed, will be inferred based on path.
    Path will try to be found in the local on-disk filesystem otherwise
    it will be parsed as an URI to determine the filesystem.
r#   rn   ro   rp   rq   r*   rr   rs   rt   ru   rv   r8   rw   rx   ry   rz   r{   r|   r}   c                ó
  € \        V\        4      '       d    \        P                  ! R \        ^R7       Yr\        VVVVVVVVV	V
VVR7      ;_uu_ 4       pVP                  V 4       RRR4       R#   + '       g   i     R# ; i)z…The order of the arguments has changed. Pass as 'write_table(table, where)' instead. The old order will raise an error in the future.)Ú
stacklevelr   N)rN   r   ÚwarningsÚwarnÚFutureWarningrl   r“   )r”   r�   r#   ro   rq   r*   rs   ru   r8   rx   rz   r{   r|   r1   s   &&$$$$$$$$$$$ r   Úwrite_tabler¦   P  s…   € ô �%œ×ÒÜ�Šð&ä'4Àõ	
ð
 ˆuÜ	ØØ!ØØØØ5Ø1Ø)Ø+Ø&CØ1Ø)÷
õ 
ð 
Ø�‰�UÔ÷
÷ 
÷ 
ò 
ús   ÁA1Á1B	aZ  
Write a table into an ORC file.

Parameters
----------
table : pyarrow.lib.Table
    The table to be written into the ORC file
where : str or pyarrow.io.NativeFile
    Writable target. For passing Python file objects or byte buffers,
    see pyarrow.io.PythonFileInterface, pyarrow.io.BufferOutputStream
    or pyarrow.io.FixedSizeBufferWriter.
rm   )NNr˜   )Únumbersr   r£   Úpyarrow.libr   Úpyarrow._orcr
   Ú
pyarrow.fsr   r   r™   rl   r    re   r¦   rŠ   r   r   Ú<module>r«      sÔ   ðõ& Û å Ý Ý 3÷`1ñ `1ðFÐ ÷DI!ñ I!ôX
ð€
Ô ð.!Ø#ð!àð!ð -ð!ð +ð	!ð
 (-ð!ð &-ð!ð "'ð!ð #&ð!ð /2ð!ð &*ð!ð "&ô!ðHð Ð ð ð€Ö r   