Skip to main content
Version: 0.6

listener

superduper.components.listener

Source code

Listener​

Listener(self,
identifier: str,
upstream: Optional[List[ForwardRef('Component')]] = None,
db: dataclasses.InitVar[typing.Optional[ForwardRef('Datalayer')]] = None,
*,
cdc_table: str = '',
key: superduper.misc.typing.JSON,
model: superduper.components.model.Model,
predict_kwargs: Optional[Dict] = <factory>,
select: Optional[superduper.base.query.Query] = None,
flatten: bool = False) -> None
ParameterDescription
identifierIdentifier of the instance.
upstreamA list of upstream components.
dbDatalayer instance. Datalayer instance.
cdc_tableTable which fires the triggers.
keyKey to be bound to the model.
modelModel for processing data.
predict_kwargsKeyword arguments to self.model.predict().
selectQuery to "listen" for input on.
flattenFlatten the output into separate records if True.

Listener component.

Listener object which is used to process a column/key of a collection or table, and store the outputs.