/usr/local/lib64/python3.6/site-packages/pyarrow/__pycache__
NameSizeModeActions
benchmark.cpython-36.pyc2080644editdlrm
cffi.cpython-36.pyc14820644editdlrm
compat.cpython-36.pyc3810644editdlrm
compute.cpython-36.pyc202630644editdlrm
csv.cpython-36.pyc3820644editdlrm
cuda.cpython-36.pyc4050644editdlrm
dataset.cpython-36.pyc279700644editdlrm
feather.cpython-36.pyc77390644editdlrm
filesystem.cpython-36.pyc144020644editdlrm
flight.cpython-36.pyc13530644editdlrm
fs.cpython-36.pyc103950644editdlrm
hdfs.cpython-36.pyc70550644editdlrm
ipc.cpython-36.pyc73940644editdlrm
json.cpython-36.pyc2310644editdlrm
jvm.cpython-36.pyc80350644editdlrm
orc.cpython-36.pyc51400644editdlrm
pandas_compat.cpython-36.pyc276950644editdlrm
parquet.cpython-36.pyc666090644editdlrm
plasma.cpython-36.pyc40690644editdlrm
serialization.cpython-36.pyc137370644editdlrm
types.cpython-36.pyc120830644editdlrm
util.cpython-36.pyc41500644editdlrm
_generated_version.cpython-36.pyc2230644editdlrm
__init__.cpython-36.pyc164760644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/pyarrow/__pycache__/orc.cpython-36.pyc (5140B)
3 8%Eg•ã@sRddlmZddlZddlmZddljZGdd„dƒZGdd„dƒZdd „Z dS) é)ÚIntegralN)ÚTablec@sfeZdZdZdd„Zedd„ƒZedd„ƒZedd „ƒZed d „ƒZ dd d„Z ddd„Z ddd„Z d S)ÚORCFilea  Reader interface for a single ORC file Parameters ---------- source : str or pyarrow.io.NativeFile Readable source. For passing Python file objects or byte buffers, see pyarrow.io.PythonFileInterface or pyarrow.io.BufferReader. cCstjƒ|_|jj|ƒdS)N)Ú_orcZ ORCReaderÚreaderÚopen)ÚselfÚsource©r ú7/usr/local/lib64/python3.6/site-packages/pyarrow/orc.pyÚ__init__%s zORCFile.__init__cCs |jjƒS)z/The file metadata, as an arrow KeyValueMetadata)rÚmetadata)rr r r r )szORCFile.metadatacCs |jjƒS)z#The file schema, as an arrow schema)rÚschema)rr r r r.szORCFile.schemacCs |jjƒS)zThe number of rows in the file)rÚnrows)rr r r r3sz ORCFile.nrowscCs |jjƒS)z!The number of stripes in the file)rÚnstripes)rr r r r8szORCFile.nstripesNcCs†|dkr dS|j}g}xj|D]b}t|tƒrzt|ƒ}d|koHt|ƒknrd||j}|j|ƒq~tdt|ƒ|fƒ‚q|SqW|S)Nrz/Column indices must be in 0 <= ind < %d, got %d)rÚ isinstancerÚintÚlenÚnameÚappendÚ ValueError)rÚcolumnsrÚnamesÚcolr r r Ú _select_names=s    zORCFile._select_namescCs|j|ƒ}|jj||dS)aÎ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.lib.RecordBatch Content of the stripe as a RecordBatch. )r)rrÚ read_stripe)rÚnrr r r rQs zORCFile.read_stripecCs|j|ƒ}|jj|dS)a‚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' Returns ------- pyarrow.lib.Table Content of the file as a Table. )r)rrÚread)rrr r r res z ORCFile.read)N)N)N) Ú__name__Ú __module__Ú __qualname__Ú__doc__r Úpropertyr rrrrrrr r r r rs       rc@s(eZdZdZdd„Zdd„Zdd„ZdS) Ú ORCWritera9 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. cCstjƒ|_|jj|ƒdS)N)rr#Úwriterr)rÚwherer r r r „s zORCWriter.__init__cCs|jj|ƒdS)a 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 ---------- schema : pyarrow.lib.Table The table to be written into the ORC file N)r$Úwrite)rÚtabler r r r&ˆs zORCWriter.writecCs|jjƒdS)z$ Close the ORC file N)r$Úclose)rr r r r(”szORCWriter.closeN)rrr r!r r&r(r r r r r#xs  r#cCsBt|tƒr$tjdtdd||}}t|ƒ}|j|ƒ|jƒdS)a 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. 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.é)Ú stacklevelN)rrÚwarningsÚwarnÚ FutureWarningr#r&r()r'r%r$r r r Ú write_table›s    r.) Znumbersrr+Z pyarrow.librZ pyarrow._orcrrr#r.r r r r Ús   ^#