Package com.atlan.model.packages
Class DbtCrawler.DbtCrawlerBuilder<C extends DbtCrawler,B extends DbtCrawler.DbtCrawlerBuilder<C,B>>
java.lang.Object
com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder<C,B>
com.atlan.model.packages.AbstractCrawler.AbstractCrawlerBuilder<C,B>
com.atlan.model.packages.DbtCrawler.DbtCrawlerBuilder<C,B>
- Enclosing class:
- DbtCrawler
public abstract static class DbtCrawler.DbtCrawlerBuilder<C extends DbtCrawler,B extends DbtCrawler.DbtCrawlerBuilder<C,B>>
extends AbstractCrawler.AbstractCrawlerBuilder<C,B>
-
Field Summary
Fields inherited from class com.atlan.model.packages.AbstractCrawler.AbstractCrawlerBuilder
client, connection, localCreds
Fields inherited from class com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder
epoch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected B
$fillValuesFrom
(C instance) abstract C
build()
Set up the crawler to extract using dbt Cloud (and its default hostname).Set up the crawler to extract using dbt Cloud.Set up the crawler to extract using dbt Core files in S3.enrichMaterializedAssets
(boolean enabled) Whether to enable the enrichment of materialized SQL assets as part of crawling dbt.Defines the filter for assets to exclude when crawling.Defines the filter for assets to include when crawling.limitToConnection
(String connectionQualifiedName) Limit the crawling to a single connection's assets.protected B
metadata()
Set all the metadata for the package (labels, annotations, etc).protected abstract B
self()
tags
(boolean include) Whether to enable dbt tag syncing as part of crawling dbt.toString()
Methods inherited from class com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder
_annotation, _annotations, _credential, _label, _labels, _name, _parameter, _parameters, _prefix, _runName, clear_annotations, clear_labels, clear_parameters
-
Constructor Details
-
DbtCrawlerBuilder
public DbtCrawlerBuilder()
-
-
Method Details
-
cloud
Set up the crawler to extract using dbt Cloud (and its default hostname).- Parameters:
serviceToken
- token to use to authenticate against dbtmultiTenant
- if true, use a multi-tenant cloud config, otherwise a single-tenant cloud config- Returns:
- the builder, set up to extract using dbt Cloud
-
cloud
Set up the crawler to extract using dbt Cloud.- Parameters:
hostname
- of dbt (usually https://cloud.getdbt.com)serviceToken
- token to use to authenticate against dbtmultiTenant
- if true, use a multi-tenant cloud config, otherwise a single-tenant cloud config- Returns:
- the builder, set up to extract using dbt Cloud
-
core
Set up the crawler to extract using dbt Core files in S3.- Parameters:
s3Bucket
- S3 bucket containing the dbt Core filess3Prefix
- prefix within the S3 bucket where the dbt Core files are locateds3Region
- S3 region where the bucket is located- Returns:
- the builder, set up to extract using dbt Core files in S3
-
enrichMaterializedAssets
Whether to enable the enrichment of materialized SQL assets as part of crawling dbt.- Parameters:
enabled
- if true, any assets that dbt materializes will also be enriched with details from dbt- Returns:
- the builder, set up to include or exclude enrichment of materialized assets
-
tags
Whether to enable dbt tag syncing as part of crawling dbt.- Parameters:
include
- if true, tags in dbt will be included while crawling dbt- Returns:
- the builder, set to include or exclude dbt tags
-
limitToConnection
Limit the crawling to a single connection's assets. (If not specified, crawling will be attempted across all connection's assets.)- Parameters:
connectionQualifiedName
- unique name of the connection for whose assets to limit crawling- Returns:
- the builder, set to limit crawling to only those assets in the specified connection
-
include
Defines the filter for assets to include when crawling.- Parameters:
filter
- for dbt Core provide a wildcard expression and for dbt Cloud provide a string-encoded map- Returns:
- the builder, set to include only those assets specified
-
exclude
Defines the filter for assets to exclude when crawling.- Parameters:
filter
- for dbt Core provide a wildcard expression and for dbt Cloud provide a string-encoded map- Returns:
- the builder, set to exclude only those assets specified
-
metadata
Set all the metadata for the package (labels, annotations, etc).- Specified by:
metadata
in classAbstractPackage.AbstractPackageBuilder<C extends DbtCrawler,
B extends DbtCrawler.DbtCrawlerBuilder<C, B>> - Returns:
- the builder, with metadata set
-
$fillValuesFrom
- Overrides:
$fillValuesFrom
in classAbstractCrawler.AbstractCrawlerBuilder<C extends DbtCrawler,
B extends DbtCrawler.DbtCrawlerBuilder<C, B>>
-
self
- Specified by:
self
in classAbstractCrawler.AbstractCrawlerBuilder<C extends DbtCrawler,
B extends DbtCrawler.DbtCrawlerBuilder<C, B>>
-
build
- Specified by:
build
in classAbstractCrawler.AbstractCrawlerBuilder<C extends DbtCrawler,
B extends DbtCrawler.DbtCrawlerBuilder<C, B>>
-
toString
- Overrides:
toString
in classAbstractCrawler.AbstractCrawlerBuilder<C extends DbtCrawler,
B extends DbtCrawler.DbtCrawlerBuilder<C, B>>
-