Class TablePartition.TablePartitionBuilder<C extends TablePartition,B extends TablePartition.TablePartitionBuilder<C,B>>

Enclosing class:
TablePartition

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

    • TablePartitionBuilder

      public TablePartitionBuilder()
  • Method Details

    • $fillValuesFrom

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

      public B typeName(String typeName)
      Fixed typeName for TablePartitions.
      Overrides:
      typeName in class Reference.ReferenceBuilder<C extends TablePartition,B extends TablePartition.TablePartitionBuilder<C,B>>
      Returns:
      this.
    • alias

      public B alias(String alias)
      Alias for this partition.
      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.
    • childTablePartition

      public B childTablePartition(ITablePartition childTablePartition)
    • childTablePartitions

      public B childTablePartitions(Collection<? extends ITablePartition> childTablePartitions)
    • clearChildTablePartitions

      public B clearChildTablePartitions()
    • columnCount

      public B columnCount(Long columnCount)
      Number of columns in this partition.
      Returns:
      this.
    • column

      public B column(IColumn column)
    • columns

      public B columns(Collection<? extends IColumn> columns)
    • clearColumns

      public B clearColumns()
    • constraint

      public B constraint(String constraint)
      Constraint that defines this table partition.
      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()
    • externalLocation

      public B externalLocation(String externalLocation)
      External location of this partition, for example: an S3 object location.
      Returns:
      this.
    • externalLocationFormat

      public B externalLocationFormat(String externalLocationFormat)
      Format of the external location of this partition, for example: JSON, CSV, PARQUET, etc.
      Returns:
      this.
    • externalLocationRegion

      public B externalLocationRegion(String externalLocationRegion)
      Region of the external location of this partition, for example: S3 region.
      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()
    • isPartitioned

      public B isPartitioned(Boolean isPartitioned)
      Whether this partition is further partitioned (true) or not (false).
      Returns:
      this.
    • isProfiled

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

      public B isQueryPreview(Boolean isQueryPreview)
      Whether preview queries for this partition are allowed (true) or not (false).
      Returns:
      this.
    • isTemporary

      public B isTemporary(Boolean isTemporary)
      Whether this partition is temporary (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.
    • 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()
    • parentTable

      public B parentTable(ITable parentTable)
      Table in which this partition exists.
      Returns:
      this.
    • parentTablePartition

      public B parentTablePartition(ITablePartition parentTablePartition)
      Partition in which this partition exists.
      Returns:
      this.
    • partitionCount

      public B partitionCount(Long partitionCount)
      Number of sub-partitions of this partition.
      Returns:
      this.
    • partitionList

      public B partitionList(String partitionList)
      List of sub-partitions in this partition.
      Returns:
      this.
    • partitionStrategy

      public B partitionStrategy(String partitionStrategy)
      Partition strategy of this partition.
      Returns:
      this.
    • 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.
    • putQueryPreviewConfig

      public B putQueryPreviewConfig(String putQueryPreviewConfigKey, String putQueryPreviewConfigValue)
    • queryPreviewConfig

      public B queryPreviewConfig(Map<? extends String,? extends String> queryPreviewConfig)
    • clearQueryPreviewConfig

      public B clearQueryPreviewConfig()
    • 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()
    • rowCount

      public B rowCount(Long rowCount)
      Number of rows in this partition.
      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.
    • sizeBytes

      public B sizeBytes(Long sizeBytes)
      Size of this partition, in bytes.
      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()
    • 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 TablePartition,B extends TablePartition.TablePartitionBuilder<C,B>>
    • build

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

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