o
    g                     @  sb   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 er(ddlmZ 	ddddZdS )z orc compat     )annotations)TYPE_CHECKING)FilePathOrBuffer)import_optional_dependency)
get_handle)	DataFrameNpathr   columnslist[str] | Nonereturnr   c                 K  s^   t d}t| ddd}||j}|jdd|i| W  d   S 1 s(w   Y  dS )a)  
    Load an ORC object from the file path, returning a DataFrame.

    .. versionadded:: 1.0.0

    Parameters
    ----------
    path : str, path object or file-like object
        Any valid string path is acceptable. The string could be a URL. Valid
        URL schemes include http, ftp, s3, and file. For file URLs, a host is
        expected. A local file could be:
        ``file://localhost/path/to/table.orc``.

        If you want to pass in a path object, pandas accepts any
        ``os.PathLike``.

        By file-like object, we refer to objects with a ``read()`` method,
        such as a file handle (e.g. via builtin ``open`` function)
        or ``StringIO``.
    columns : list, default None
        If not None, only these columns will be read from the file.
    **kwargs
        Any additional kwargs are passed to pyarrow.

    Returns
    -------
    DataFrame

    Notes
    -------
    Before using this function you should read the :ref:`user guide about ORC <io.orc>`
    and :ref:`install optional dependencies <install.warn_orc>`.
    zpyarrow.orcrbF)is_textr	   N )r   r   ORCFilehandleread	to_pandas)r   r	   kwargsorchandlesorc_filer   r   K/home/ubuntu/cloudmapper/venv/lib/python3.10/site-packages/pandas/io/orc.pyread_orc   s
   &$r   )N)r   r   r	   r
   r   r   )__doc__
__future__r   typingr   pandas._typingr   pandas.compat._optionalr   pandas.io.commonr   pandasr   r   r   r   r   r   <module>   s    