def __init__(self, client: SchemaRegistryClient, subject: str, is_key=False, **kwargs):
        self.schema_registry_client = client
        self.schema_subject = subject
        self.is_key = is_key

        MessageSerializer.__init__(self, client)
        faust.Codec.__init__(self, client=client, subject=subject, is_key=is_key, **kwargs)
Пример #2
0
        def __init__(self,
                     schema_registry_client,
                     schema_subject,
                     schema,
                     is_key=False):
            self.schema_registry_client = schema_registry_client
            self.schema_subject = schema_subject
            self.schema = schema
            self.is_key = is_key

            MessageSerializer.__init__(self, schema_registry_client)
            faust.Codec.__init__(self)
        def __init__(
            self,
            schema_registry_client: SchemaRegistryClient,
            schema_subject: str,
            schema: "schema.AvroSchema",
            is_key: bool = False,
        ):
            self.schema_registry_client = schema_registry_client
            self.schema_subject = schema_subject
            self.schema = schema
            self.is_key = is_key

            MessageSerializer.__init__(self, schema_registry_client)
            faust.Codec.__init__(self)