Package com.atlan.model.packages
Class AthenaCrawler.AthenaCrawlerBuilder<C extends AthenaCrawler,B extends AthenaCrawler.AthenaCrawlerBuilder<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.AthenaCrawler.AthenaCrawlerBuilder<C,B>
- Enclosing class:
AthenaCrawler
public abstract static class AthenaCrawler.AthenaCrawlerBuilder<C extends AthenaCrawler,B extends AthenaCrawler.AthenaCrawlerBuilder<C,B>>
extends AbstractCrawler.AbstractCrawlerBuilder<C,B>
-
Field Summary
Fields inherited from class com.atlan.model.packages.AbstractCrawler.AbstractCrawlerBuilder
client, connection, localCredsFields inherited from class com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder
epoch -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected B$fillValuesFrom(C instance) abstract Cbuild()Set up the crawler to extract directly from Athena.Defines a regular expression to use for excluding assets when crawling.Defines the filter for assets to exclude when crawling.iamUserAuth(String accessKey, String secretKey) Set up the crawler to use IAM user-based authentication.Defines the filter for assets to include when crawling.protected Bmetadata()Set all the metadata for the package (labels, annotations, etc).protected abstract Bself()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
-
AthenaCrawlerBuilder
public AthenaCrawlerBuilder()
-
-
Method Details
-
direct
Set up the crawler to extract directly from Athena.- Parameters:
hostname- of Athenaworkgroup- in Athenas3Output- location in S3 where Athena can store query results (s3://bucket/prefix)- Returns:
- the builder, set up to extract directly from Athena
-
iamUserAuth
Set up the crawler to use IAM user-based authentication.- Parameters:
accessKey- through which to access AthenasecretKey- through which to access Athena- Returns:
- the builder, set up to use IAM user-based authentication
-
include
Defines the filter for assets to include when crawling.- Parameters:
assets- map keyed by database name with each value being a list of schemas- Returns:
- the builder, set to include only those assets specified
- Throws:
InvalidRequestException- in the unlikely event the provided filter cannot be translated
-
exclude
Defines the filter for assets to exclude when crawling.- Parameters:
assets- map keyed by database name with each value being a list of schemas- Returns:
- the builder, set to exclude only those assets specified
- Throws:
InvalidRequestException- in the unlikely event the provided filter cannot be translated
-
exclude
Defines a regular expression to use for excluding assets when crawling.- Parameters:
regex- any asset names that match this regular expression will be excluded from crawling- Returns:
- the builder, set to exclude any assets that match the provided regular expression
-
metadata
Set all the metadata for the package (labels, annotations, etc).- Specified by:
metadatain classAbstractPackage.AbstractPackageBuilder<C extends AthenaCrawler,B extends AthenaCrawler.AthenaCrawlerBuilder<C, B>> - Returns:
- the builder, with metadata set
-
$fillValuesFrom
- Overrides:
$fillValuesFromin classAbstractCrawler.AbstractCrawlerBuilder<C extends AthenaCrawler,B extends AthenaCrawler.AthenaCrawlerBuilder<C, B>>
-
self
- Specified by:
selfin classAbstractCrawler.AbstractCrawlerBuilder<C extends AthenaCrawler,B extends AthenaCrawler.AthenaCrawlerBuilder<C, B>>
-
build
- Specified by:
buildin classAbstractCrawler.AbstractCrawlerBuilder<C extends AthenaCrawler,B extends AthenaCrawler.AthenaCrawlerBuilder<C, B>>
-
toString
- Overrides:
toStringin classAbstractCrawler.AbstractCrawlerBuilder<C extends AthenaCrawler,B extends AthenaCrawler.AthenaCrawlerBuilder<C, B>>
-