airflow.providers.vespa.hooks.vespa¶
Attributes¶
Classes¶
Hook for interacting with a Vespa cluster via pyvespa. |
Module Contents¶
- class airflow.providers.vespa.hooks.vespa.VespaHook(conn_id=default_conn_name, *, namespace=None, schema=None)[source]¶
Bases:
airflow.providers.common.compat.sdk.BaseHookHook for interacting with a Vespa cluster via pyvespa.
Supports document feed, update, and delete operations through
feed_async_iterable. Uses a customvespaconnection type.Connection extras (bare keys canonical,
extra__vespa__prefix accepted for backward compatibility):namespace– Vespa namespace (default:"default")max_queue_size/max_workers/max_connections– feed tuningvespa_cloud_secret_token– token authclient_cert_path/client_key_path– mTLS authprotocol–httporhttps(default:http)
- classmethod from_resolved_connection(*, host, port=None, schema=None, namespace=None, extra)[source]¶
Instantiate without querying Airflow’s metadata database.
Intended for trigger processes where synchronous DB access is prohibited. The caller must supply the already-resolved connection parameters.
- classmethod get_connection_form_widgets()[source]¶
Return connection widgets to add to connection form.