Package com.atlan.model.packages
Class SnowflakeMiner.SnowflakeMinerBuilder<C extends SnowflakeMiner,B extends SnowflakeMiner.SnowflakeMinerBuilder<C,B>>
java.lang.Object
com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder<C,B>
com.atlan.model.packages.AbstractMiner.AbstractMinerBuilder<C,B>
com.atlan.model.packages.SnowflakeMiner.SnowflakeMinerBuilder<C,B>
- Enclosing class:
- SnowflakeMiner
public abstract static class SnowflakeMiner.SnowflakeMinerBuilder<C extends SnowflakeMiner,B extends SnowflakeMiner.SnowflakeMinerBuilder<C,B>>
extends AbstractMiner.AbstractMinerBuilder<C,B>
-
Field Summary
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()
direct
(long startEpoch) Set up the miner to extract directly from Snowflake, using the default database.Set up the miner to extract directly from Snowflake, using a cloned database.excludeUsers
(List<String> users) Defines users who should be excluded when calculating usage metrics for assets (for example, system accounts).protected B
metadata()
Set all the metadata for the package (labels, annotations, etc).nativeLineage
(boolean enabled) Whether to enable native lineage from Snowflake, using Snowflake's ACCESS_HISTORY.OBJECTS_MODIFIED Column.s3
(String s3Bucket, String s3Prefix, String queryKey, String defaultDatabase, String defaultSchema, String sessionId) Set up the miner to extract from S3 (using JSON line-separated files).protected abstract B
self()
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
-
SnowflakeMinerBuilder
public SnowflakeMinerBuilder()
-
-
Method Details
-
direct
Set up the miner to extract directly from Snowflake, using the default database.- Parameters:
startEpoch
- date and time from which to start mining, as an epoch- Returns:
- the builder, set up to extract directly from Snowflake using the default database
-
direct
Set up the miner to extract directly from Snowflake, using a cloned database.- Parameters:
database
- name of the database to extract fromschema
- name of the schema to extract fromstartEpoch
- date and time from which to start mining, as an epoch- Returns:
- the builder, set up to extract directly from Snowflake using a cloned database
-
s3
public B s3(String s3Bucket, String s3Prefix, String queryKey, String defaultDatabase, String defaultSchema, String sessionId) Set up the miner to extract from S3 (using JSON line-separated files).- Parameters:
s3Bucket
- S3 bucket where the JSON line-separated files are locateds3Prefix
- prefix within the S3 bucket in which the JSON line-separated files are locatedqueryKey
- JSON key containing the query definitiondefaultDatabase
- JSON key containing the default database name to use if a query is not qualified with database namedefaultSchema
- JSON key containing the default schema name to use if a query is not qualified with schema namesessionId
- JSON key containing the session ID of the SQL query- Returns:
- the builder, set up to extract from a set of JSON line-separated files in S3
-
excludeUsers
Defines users who should be excluded when calculating usage metrics for assets (for example, system accounts).- Parameters:
users
- list of users to exclude when calculating usage metrics- Returns:
- the builder, set to exclude the specified users from usage metrics
- Throws:
InvalidRequestException
- in the unlikely event the provided list cannot be translated
-
nativeLineage
Whether to enable native lineage from Snowflake, using Snowflake's ACCESS_HISTORY.OBJECTS_MODIFIED Column. Note: this is only available only for Snowflake Enterprise customers.- Parameters:
enabled
- if true, native lineage from Snowflake will be used for crawling- Returns:
- the builder, set to include / exclude native lineage from Snowflake
-
metadata
Set all the metadata for the package (labels, annotations, etc).- Specified by:
metadata
in classAbstractPackage.AbstractPackageBuilder<C extends SnowflakeMiner,
B extends SnowflakeMiner.SnowflakeMinerBuilder<C, B>> - Returns:
- the builder, with metadata set
-
$fillValuesFrom
- Overrides:
$fillValuesFrom
in classAbstractMiner.AbstractMinerBuilder<C extends SnowflakeMiner,
B extends SnowflakeMiner.SnowflakeMinerBuilder<C, B>>
-
self
- Specified by:
self
in classAbstractMiner.AbstractMinerBuilder<C extends SnowflakeMiner,
B extends SnowflakeMiner.SnowflakeMinerBuilder<C, B>>
-
build
- Specified by:
build
in classAbstractMiner.AbstractMinerBuilder<C extends SnowflakeMiner,
B extends SnowflakeMiner.SnowflakeMinerBuilder<C, B>>
-
toString
- Overrides:
toString
in classAbstractMiner.AbstractMinerBuilder<C extends SnowflakeMiner,
B extends SnowflakeMiner.SnowflakeMinerBuilder<C, B>>
-