snowflake.core.paging.PagedIter¶
- class snowflake.core.paging.PagedIter(data: Iterable[T])¶
- class snowflake.core.paging.PagedIter(data: Iterable[T], map_: None)
- class snowflake.core.paging.PagedIter(data: Iterable[S], map_: Callable[[S], T])
Bases:
Iterator
[T
],Generic
[T
]A page-by-page iterator.
Data fetched from the server is iterated over page by page, yielding items one by one. For PrPr, we won’t have real paging. More for future use.
Example
>>> from snowflake.core import Root >>> root = Root(connection) >>> tasks: TaskCollection = root.databases["mydb"].schemas["myschema"].tasks >>> task_iter = tasks.iter(like="my%") # returns a PagedIter[Task] >>> for task_obj in task_iter: ... print(task_obj.name)
Methods
- __init__(data: Iterable[T]) None ¶
- __init__(data: Iterable[T], map_: None) None
- __init__(data: Iterable[S], map_: Callable[[S], T]) None