| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
from typing import Any, BinaryIO |
| 4 |
|
| 5 |
from . import NativeFile, Schema, Table |
| 6 |
from .compute import Expression |
| 7 |
from .dataset import Partitioning |
| 8 |
from .fs import FileSystem |
| 9 |
|
| 10 |
class ColumnChunkMetaData: |
| 11 |
compression: str |
| 12 |
|
| 13 |
class RowGroupMetaData: |
| 14 |
def column(self, i: int) -> ColumnChunkMetaData: ... |
| 15 |
|
| 16 |
class FileMetaData: |
| 17 |
def row_group(self, i: int) -> RowGroupMetaData: ... |
| 18 |
|
| 19 |
class ParquetFile: |
| 20 |
def __init__(self, source: str | NativeFile | BinaryIO) -> None: ... |
| 21 |
@property |
| 22 |
def metadata(self) -> FileMetaData: ... |
| 23 |
def read(self) -> Table: ... |
| 24 |
|
| 25 |
def read_table( |
| 26 |
source: str | NativeFile | BinaryIO, |
| 27 |
*, |
| 28 |
columns: list | None = None, |
| 29 |
use_threads: bool = True, |
| 30 |
metadata: FileMetaData | None = None, |
| 31 |
schema: Schema | None = None, |
| 32 |
use_pandas_metadata: bool = False, |
| 33 |
read_dictionary: list | None = None, |
| 34 |
memory_map: bool = False, |
| 35 |
buffer_size: int = 0, |
| 36 |
partitioning: Partitioning | str | list[str] = "hive", |
| 37 |
filesystem: FileSystem | None = None, |
| 38 |
filters: Expression | list[tuple] | list[list[tuple]] | None = None, |
| 39 |
use_legacy_dataset: bool = False, |
| 40 |
ignore_prefixes: list | None = None, |
| 41 |
pre_buffer: bool = True, |
| 42 |
coerce_int96_timestamp_unit: str | None = None, |
| 43 |
decryption_properties: Any | None = None, |
| 44 |
thrift_string_size_limit: int | None = None, |
| 45 |
thrift_container_size_limit: int | None = None, |
| 46 |
) -> Table: ... |