faust.types.tables
¶
-
faust.types.tables.
RecoverCallback
¶ alias of
typing.Callable
-
faust.types.tables.
ChangelogEventCallback
¶ alias of
typing.Callable
-
faust.types.tables.
CollectionTps
¶ alias of
typing.MutableMapping
-
class
faust.types.tables.
CollectionT
(app: faust.types.tables._AppT, *, name: str = None, default: Callable[Any] = None, store: Union[str, yarl.URL] = None, key_type: faust.types.tables._ModelArg = None, value_type: faust.types.tables._ModelArg = None, partitions: int = None, window: faust.types.windows.WindowT = None, changelog_topic: faust.types.topics.TopicT = None, help: str = None, on_recover: Callable[Awaitable[None]] = None, on_changelog_event: Callable[faust.types.events.EventT, Awaitable[None]] = None, recovery_buffer_size: int = 1000, standby_buffer_size: int = None, extra_topic_configs: Mapping[str, Any] = None, **kwargs) → None[source]¶ -
-
coroutine
on_changelog_event
(self, event: faust.types.events.EventT) → None[source]¶ - Return type
None
-
coroutine
-
class
faust.types.tables.
TableT
(app: faust.types.tables._AppT, *, name: str = None, default: Callable[Any] = None, store: Union[str, yarl.URL] = None, key_type: faust.types.tables._ModelArg = None, value_type: faust.types.tables._ModelArg = None, partitions: int = None, window: faust.types.windows.WindowT = None, changelog_topic: faust.types.topics.TopicT = None, help: str = None, on_recover: Callable[Awaitable[None]] = None, on_changelog_event: Callable[faust.types.events.EventT, Awaitable[None]] = None, recovery_buffer_size: int = 1000, standby_buffer_size: int = None, extra_topic_configs: Mapping[str, Any] = None, **kwargs) → None[source]¶ -
using_window
(window: faust.types.windows.WindowT, *, key_index: bool = False) → faust.types.tables.WindowWrapperT[source]¶ - Return type
-
hopping
(size: Union[datetime.timedelta, float, str], step: Union[datetime.timedelta, float, str], expires: Union[datetime.timedelta, float, str] = None, key_index: bool = False) → faust.types.tables.WindowWrapperT[source]¶ - Return type
-
-
class
faust.types.tables.
TableManagerT
(app: faust.types.tables._AppT, **kwargs) → None[source]¶
-
class
faust.types.tables.
WindowSetT
(key: KT, table: faust.types.tables.TableT, wrapper: faust.types.tables.WindowWrapperT, event: faust.types.events.EventT = None) → None[source]¶ -
apply
(op: Callable[[VT, VT], VT], value: VT, event: faust.types.events.EventT = None) → faust.types.tables.WindowSetT[source]¶ - Return type
WindowSetT
[~KT, ~VT]
-
-
class
faust.types.tables.
WindowedItemsViewT
(mapping: faust.types.tables.WindowWrapperT, event: faust.types.events.EventT = None)[source]¶
-
class
faust.types.tables.
WindowedValuesViewT
(mapping: faust.types.tables.WindowWrapperT, event: faust.types.events.EventT = None)[source]¶
-
class
faust.types.tables.
WindowWrapperT
(table: faust.types.tables.TableT, *, relative_to: Union[faust.types.tables._FieldDescriptorT, Callable[Optional[faust.types.events.EventT], Union[float, datetime.datetime]], datetime.datetime, float, None] = None) → None[source]¶ -
-
clone
(relative_to: Union[faust.types.tables._FieldDescriptorT, Callable[Optional[faust.types.events.EventT], Union[float, datetime.datetime]], datetime.datetime, float, None]) → faust.types.tables.WindowWrapperT[source]¶ - Return type
-
relative_to_field
(field: faust.types.tables._FieldDescriptorT) → faust.types.tables.WindowWrapperT[source]¶ - Return type
-