Class Schema.SchemaBuilder<C extends Schema,B extends Schema.SchemaBuilder<C,B>>

Enclosing class:
Schema

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

    • SchemaBuilder

      public SchemaBuilder()
  • Method Details

    • $fillValuesFrom

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

      public B typeName(String typeName)
      Fixed typeName for Schemas.
      Overrides:
      typeName in class Reference.ReferenceBuilder<C extends Schema,B extends Schema.SchemaBuilder<C,B>>
      Returns:
      this.
    • applicationContainer

      public B applicationContainer(IApplicationContainer applicationContainer)
      ApplicationContainer asset containing this Catalog asset.
      Returns:
      this.
    • assetApplicationQualifiedName

      public B assetApplicationQualifiedName(String assetApplicationQualifiedName)
      Qualified name of the Application Container that contains this asset.
      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.
    • calculationView

      public B calculationView(ICalculationView calculationView)
    • calculationViews

      public B calculationViews(Collection<? extends ICalculationView> calculationViews)
    • clearCalculationViews

      public B clearCalculationViews()
    • database

      public B database(IDatabase database)
      Database in which this schema exists.
      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()
    • 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()
    • function

      public B function(IFunction function)
    • functions

      public B functions(Collection<? extends IFunction> functions)
    • clearFunctions

      public B clearFunctions()
    • 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.
    • linkedSchemaQualifiedName

      public B linkedSchemaQualifiedName(String linkedSchemaQualifiedName)
      Unique name of the Linked Schema on which this Schema is dependent. This concept is mostly applicable for linked datasets/datasource in Google BigQuery via Analytics Hub Listing
      Returns:
      this.
    • materializedView

      public B materializedView(IMaterializedView materializedView)
    • materializedViews

      public B materializedViews(Collection<? extends IMaterializedView> materializedViews)
    • clearMaterializedViews

      public B clearMaterializedViews()
    • 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()
    • procedure

      public B procedure(IProcedure procedure)
    • procedures

      public B procedures(Collection<? extends IProcedure> procedures)
    • clearProcedures

      public B clearProcedures()
    • 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()
    • 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.
    • snowflakeDynamicTable

      public B snowflakeDynamicTable(ISnowflakeDynamicTable snowflakeDynamicTable)
    • snowflakeDynamicTables

      public B snowflakeDynamicTables(Collection<? extends ISnowflakeDynamicTable> snowflakeDynamicTables)
    • clearSnowflakeDynamicTables

      public B clearSnowflakeDynamicTables()
    • snowflakePipe

      public B snowflakePipe(ISnowflakePipe snowflakePipe)
    • snowflakePipes

      public B snowflakePipes(Collection<? extends ISnowflakePipe> snowflakePipes)
    • clearSnowflakePipes

      public B clearSnowflakePipes()
    • snowflakeStream

      public B snowflakeStream(ISnowflakeStream snowflakeStream)
    • snowflakeStreams

      public B snowflakeStreams(Collection<? extends ISnowflakeStream> snowflakeStreams)
    • clearSnowflakeStreams

      public B clearSnowflakeStreams()
    • snowflakeTag

      public B snowflakeTag(ISnowflakeTag snowflakeTag)
    • snowflakeTags

      public B snowflakeTags(Collection<? extends ISnowflakeTag> snowflakeTags)
    • clearSnowflakeTags

      public B clearSnowflakeTags()
    • 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()
    • tableCount

      public B tableCount(Integer tableCount)
      Number of tables in this schema.
      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.
    • table

      public B table(ITable table)
    • tables

      public B tables(Collection<? extends ITable> tables)
    • clearTables

      public B clearTables()
    • viewCount

      public B viewCount(Integer viewCount)
      Number of views in this schema.
      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.
    • view

      public B view(IView view)
    • views

      public B views(Collection<? extends IView> views)
    • clearViews

      public B clearViews()
    • self

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

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

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