polars.io.external_reader.ReaderCapabilities#
- class polars.io.external_reader.ReaderCapabilities(
- row_index: bool = False,
- pre_slice: bool = False,
- negative_pre_slice: bool = False,
- supported_filter: Literal['partial', 'full'] | None = None,
Reader capabilities.
Determines which parameters will be passed to the reader.
Warning
This functionality is considered unstable. It may be changed at any point without it being considered a breaking change.
- Parameters:
- row_index
The reader supports applying a row index.
- pre_slice
The reader supports slicing the data.
- negative_pre_slice
The reader supports slicing the data with a negative offset (offset relative to end of file).
- supported_filter
The reader supports applying filters:
“partial” - Filters are not fully applied; polars will evaluate / filter rows returned by the reader.
“full” - Filters are fully applied; polars will not evaluate the filter on rows returned by the reader.
- __init__(
- row_index: bool = False,
- pre_slice: bool = False,
- negative_pre_slice: bool = False,
- supported_filter: Literal['partial', 'full'] | None = None,
Methods
__init__([row_index, pre_slice, ...])Attributes
negative_pre_slicepre_slicerow_indexsupported_filter