S
- The type of the builder subclass.public static class TableDTO.Builder<S extends TableDTO.Builder>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AuditDTO |
audit |
protected ColumnDTO[] |
columns |
protected java.lang.String |
comment |
protected DistributionDTO |
distributionDTO |
protected java.lang.String |
name |
protected Partitioning[] |
Partitioning |
protected java.util.Map<java.lang.String,java.lang.String> |
properties |
protected SortOrderDTO[] |
sortOrderDTOs |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TableDTO |
build()
Builds a Table DTO based on the provided builder parameters.
|
S |
withAudit(AuditDTO audit)
Sets the audit information for the table.
|
S |
withColumns(ColumnDTO[] columns)
Sets the columns of the table.
|
S |
withComment(java.lang.String comment)
Sets the comment associated with the table.
|
S |
withDistribution(DistributionDTO distributionDTO) |
S |
withName(java.lang.String name)
Sets the name of the table.
|
S |
withPartitioning(Partitioning[] Partitioning) |
S |
withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the properties associated with the table.
|
S |
withSortOrders(SortOrderDTO[] sortOrderDTOs) |
protected java.lang.String name
protected java.lang.String comment
protected ColumnDTO[] columns
protected java.util.Map<java.lang.String,java.lang.String> properties
protected AuditDTO audit
protected SortOrderDTO[] sortOrderDTOs
protected DistributionDTO distributionDTO
protected Partitioning[] Partitioning
public S withName(java.lang.String name)
name
- The name of the table.public S withComment(java.lang.String comment)
comment
- The comment associated with the table.public S withColumns(ColumnDTO[] columns)
columns
- The columns of the table.public S withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- The properties associated with the table.public S withAudit(AuditDTO audit)
audit
- The audit information for the table.public S withDistribution(DistributionDTO distributionDTO)
public S withSortOrders(SortOrderDTO[] sortOrderDTOs)
public S withPartitioning(Partitioning[] Partitioning)
public TableDTO build()
java.lang.IllegalArgumentException
- If required fields name, columns and audit are not set.