Class BigqueryRoutine.BigqueryRoutineBuilder<C extends BigqueryRoutine,B extends BigqueryRoutine.BigqueryRoutineBuilder<C,B>>

Enclosing class:
BigqueryRoutine

public abstract static class BigqueryRoutine.BigqueryRoutineBuilder<C extends BigqueryRoutine,B extends BigqueryRoutine.BigqueryRoutineBuilder<C,B>> extends Asset.AssetBuilder<C,B>
  • Constructor Details

    • BigqueryRoutineBuilder

      public BigqueryRoutineBuilder()
  • Method Details

    • $fillValuesFrom

      protected B $fillValuesFrom(C instance)
      Overrides:
      $fillValuesFrom in class Asset.AssetBuilder<C extends BigqueryRoutine,B extends BigqueryRoutine.BigqueryRoutineBuilder<C,B>>
    • typeName

      public B typeName(String typeName)
      Fixed typeName for BigqueryRoutines.
      Overrides:
      typeName in class Reference.ReferenceBuilder<C extends BigqueryRoutine,B extends BigqueryRoutine.BigqueryRoutineBuilder<C,B>>
      Returns:
      this.
    • bigqueryAtlanSchema

      public B bigqueryAtlanSchema(ISchema bigqueryAtlanSchema)
      Schema in which this routine exists.
      Returns:
      this.
    • bigqueryProcess

      public B bigqueryProcess(ILineageProcess bigqueryProcess)
    • bigqueryProcesses

      public B bigqueryProcesses(Collection<? extends ILineageProcess> bigqueryProcesses)
    • clearBigqueryProcesses

      public B clearBigqueryProcesses()
    • bigqueryRoutineArgument

      public B bigqueryRoutineArgument(String bigqueryRoutineArgument)
    • bigqueryRoutineArguments

      public B bigqueryRoutineArguments(Collection<? extends String> bigqueryRoutineArguments)
    • clearBigqueryRoutineArguments

      public B clearBigqueryRoutineArguments()
    • bigqueryRoutineDdl

      public B bigqueryRoutineDdl(String bigqueryRoutineDdl)
      The ddl statement used to create the bigquery routine.
      Returns:
      this.
    • bigqueryRoutineReturnType

      public B bigqueryRoutineReturnType(String bigqueryRoutineReturnType)
      Return data type of the bigquery routine (null for stored procedures).
      Returns:
      this.
    • bigqueryRoutineSecurityType

      public B bigqueryRoutineSecurityType(String bigqueryRoutineSecurityType)
      Security type of the routine, always null.
      Returns:
      this.
    • bigqueryRoutineType

      public B bigqueryRoutineType(BigqueryRoutineType bigqueryRoutineType)
      Type of bigquery routine (sp, udf, or tvf).
      Returns:
      this.
    • calculationViewName

      public B calculationViewName(String calculationViewName)
      Simple name of the calculation view in which this SQL asset exists, or empty if it does not exist within a calculation view.
      Returns:
      this.
    • calculationViewQualifiedName

      public B calculationViewQualifiedName(String calculationViewQualifiedName)
      Unique name of the calculation view in which this SQL asset exists, or empty if it does not exist within a calculation view.
      Returns:
      this.
    • databaseName

      public B databaseName(String databaseName)
      Simple name of the database in which this SQL asset exists, or empty if it does not exist within a database.
      Returns:
      this.
    • databaseQualifiedName

      public B databaseQualifiedName(String databaseQualifiedName)
      Unique name of the database in which this SQL asset exists, or empty if it does not exist within a database.
      Returns:
      this.
    • dbtModel

      public B dbtModel(IDbtModel dbtModel)
    • dbtModels

      public B dbtModels(Collection<? extends IDbtModel> dbtModels)
    • clearDbtModels

      public B clearDbtModels()
    • dbtSeedAsset

      public B dbtSeedAsset(IDbtSeed dbtSeedAsset)
    • dbtSeedAssets

      public B dbtSeedAssets(Collection<? extends IDbtSeed> dbtSeedAssets)
    • clearDbtSeedAssets

      public B clearDbtSeedAssets()
    • dbtSource

      public B dbtSource(IDbtSource dbtSource)
    • dbtSources

      public B dbtSources(Collection<? extends IDbtSource> dbtSources)
    • clearDbtSources

      public B clearDbtSources()
    • dbtTest

      public B dbtTest(IDbtTest dbtTest)
    • dbtTests

      public B dbtTests(Collection<? extends IDbtTest> dbtTests)
    • clearDbtTests

      public B clearDbtTests()
    • definition

      public B definition(String definition)
      SQL definition of the procedure.
      Returns:
      this.
    • inputToAirflowTask

      public B inputToAirflowTask(IAirflowTask inputToAirflowTask)
    • inputToAirflowTasks

      public B inputToAirflowTasks(Collection<? extends IAirflowTask> inputToAirflowTasks)
    • clearInputToAirflowTasks

      public B clearInputToAirflowTasks()
    • inputToProcess

      public B inputToProcess(ILineageProcess inputToProcess)
    • inputToProcesses

      public B inputToProcesses(Collection<? extends ILineageProcess> inputToProcesses)
    • clearInputToProcesses

      public B clearInputToProcesses()
    • inputToSparkJob

      public B inputToSparkJob(ISparkJob inputToSparkJob)
    • inputToSparkJobs

      public B inputToSparkJobs(Collection<? extends ISparkJob> inputToSparkJobs)
    • clearInputToSparkJobs

      public B clearInputToSparkJobs()
    • isProfiled

      public B isProfiled(Boolean isProfiled)
      Whether this asset has been profiled (true) or not (false).
      Returns:
      this.
    • lastProfiledAt

      public B lastProfiledAt(Long lastProfiledAt)
      Time (epoch) at which this asset was last profiled, in milliseconds.
      Returns:
      this.
    • modelImplementedAttribute

      public B modelImplementedAttribute(IModelAttribute modelImplementedAttribute)
    • modelImplementedAttributes

      public B modelImplementedAttributes(Collection<? extends IModelAttribute> modelImplementedAttributes)
    • clearModelImplementedAttributes

      public B clearModelImplementedAttributes()
    • modelImplementedEntity

      public B modelImplementedEntity(IModelEntity modelImplementedEntity)
    • modelImplementedEntities

      public B modelImplementedEntities(Collection<? extends IModelEntity> modelImplementedEntities)
    • clearModelImplementedEntities

      public B clearModelImplementedEntities()
    • outputFromAirflowTask

      public B outputFromAirflowTask(IAirflowTask outputFromAirflowTask)
    • outputFromAirflowTasks

      public B outputFromAirflowTasks(Collection<? extends IAirflowTask> outputFromAirflowTasks)
    • clearOutputFromAirflowTasks

      public B clearOutputFromAirflowTasks()
    • outputFromProcess

      public B outputFromProcess(ILineageProcess outputFromProcess)
    • outputFromProcesses

      public B outputFromProcesses(Collection<? extends ILineageProcess> outputFromProcesses)
    • clearOutputFromProcesses

      public B clearOutputFromProcesses()
    • outputFromSparkJob

      public B outputFromSparkJob(ISparkJob outputFromSparkJob)
    • outputFromSparkJobs

      public B outputFromSparkJobs(Collection<? extends ISparkJob> outputFromSparkJobs)
    • clearOutputFromSparkJobs

      public B clearOutputFromSparkJobs()
    • queryCount

      public B queryCount(Long queryCount)
      Number of times this asset has been queried.
      Returns:
      this.
    • queryCountUpdatedAt

      public B queryCountUpdatedAt(Long queryCountUpdatedAt)
      Time (epoch) at which the query count was last updated, in milliseconds.
      Returns:
      this.
    • queryUserCount

      public B queryUserCount(Long queryUserCount)
      Number of unique users who have queried this asset.
      Returns:
      this.
    • putQueryUserMap

      public B putQueryUserMap(String putQueryUserMapKey, Long putQueryUserMapValue)
    • queryUserMap

      public B queryUserMap(Map<? extends String,? extends Long> queryUserMap)
    • clearQueryUserMap

      public B clearQueryUserMap()
    • schema

      public B schema(ISchema schema)
      Schema in which this stored procedure exists.
      Returns:
      this.
    • schemaName

      public B schemaName(String schemaName)
      Simple name of the schema in which this SQL asset exists, or empty if it does not exist within a schema.
      Returns:
      this.
    • schemaQualifiedName

      public B schemaQualifiedName(String schemaQualifiedName)
      Unique name of the schema in which this SQL asset exists, or empty if it does not exist within a schema.
      Returns:
      this.
    • sqlAIModelContextQualifiedName

      public B sqlAIModelContextQualifiedName(String sqlAIModelContextQualifiedName)
      Unique name of the context in which the model versions exist, or empty if it does not exist within an AI model context.
      Returns:
      this.
    • sqlArgument

      public B sqlArgument(SQLProcedureArgument sqlArgument)
    • sqlArguments

      public B sqlArguments(Collection<? extends SQLProcedureArgument> sqlArguments)
    • clearSqlArguments

      public B clearSqlArguments()
    • sqlCatalogId

      public B sqlCatalogId(String sqlCatalogId)
      Internal ID for the database containing the procedure.
      Returns:
      this.
    • sqlDBTSource

      public B sqlDBTSource(IDbtSource sqlDBTSource)
    • sqlDBTSources

      public B sqlDBTSources(Collection<? extends IDbtSource> sqlDBTSources)
    • clearSqlDBTSources

      public B clearSqlDBTSources()
    • sqlDbtModel

      public B sqlDbtModel(IDbtModel sqlDbtModel)
    • sqlDbtModels

      public B sqlDbtModels(Collection<? extends IDbtModel> sqlDbtModels)
    • clearSqlDbtModels

      public B clearSqlDbtModels()
    • sqlExternalAccessIntegrations

      public B sqlExternalAccessIntegrations(String sqlExternalAccessIntegrations)
      Names of external access integrations used by the procedure.
      Returns:
      this.
    • sqlInstalledPackages

      public B sqlInstalledPackages(String sqlInstalledPackages)
      Packages actually installed for the procedure.
      Returns:
      this.
    • sqlIsSecure

      public B sqlIsSecure(Boolean sqlIsSecure)
      Whether this asset is secure (true) or not (false).
      Returns:
      this.
    • sqlLanguage

      public B sqlLanguage(String sqlLanguage)
      Programming language used for the procedure (e.g., SQL, JavaScript, Python, Scala).
      Returns:
      this.
    • sqlOwnerRoleType

      public B sqlOwnerRoleType(String sqlOwnerRoleType)
      Type of role that owns the procedure.
      Returns:
      this.
    • sqlPackages

      public B sqlPackages(String sqlPackages)
      Packages requested by the procedure.
      Returns:
      this.
    • sqlProcedureReturn

      public B sqlProcedureReturn(SQLProcedureReturn sqlProcedureReturn)
      Detailed information about the procedure's return type.
      Returns:
      this.
    • sqlProcess

      public B sqlProcess(ILineageProcess sqlProcess)
    • sqlProcesses

      public B sqlProcesses(Collection<? extends ILineageProcess> sqlProcesses)
    • clearSqlProcesses

      public B clearSqlProcesses()
    • sqlRuntimeVersion

      public B sqlRuntimeVersion(String sqlRuntimeVersion)
      Version of the language runtime used by the procedure.
      Returns:
      this.
    • sqlSchemaId

      public B sqlSchemaId(String sqlSchemaId)
      Internal ID for the schema containing the procedure.
      Returns:
      this.
    • sqlSecrets

      public B sqlSecrets(String sqlSecrets)
      Secret variables used by the procedure.
      Returns:
      this.
    • tableName

      public B tableName(String tableName)
      Simple name of the table in which this SQL asset exists, or empty if it does not exist within a table.
      Returns:
      this.
    • tableQualifiedName

      public B tableQualifiedName(String tableQualifiedName)
      Unique name of the table in which this SQL asset exists, or empty if it does not exist within a table.
      Returns:
      this.
    • viewName

      public B viewName(String viewName)
      Simple name of the view in which this SQL asset exists, or empty if it does not exist within a view.
      Returns:
      this.
    • viewQualifiedName

      public B viewQualifiedName(String viewQualifiedName)
      Unique name of the view in which this SQL asset exists, or empty if it does not exist within a view.
      Returns:
      this.
    • self

      protected abstract B self()
      Specified by:
      self in class Asset.AssetBuilder<C extends BigqueryRoutine,B extends BigqueryRoutine.BigqueryRoutineBuilder<C,B>>
    • build

      public abstract C build()
      Specified by:
      build in class Asset.AssetBuilder<C extends BigqueryRoutine,B extends BigqueryRoutine.BigqueryRoutineBuilder<C,B>>
    • toString

      public String toString()
      Overrides:
      toString in class Asset.AssetBuilder<C extends BigqueryRoutine,B extends BigqueryRoutine.BigqueryRoutineBuilder<C,B>>