| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CdcSchema |
build()
Returns an instance of an unresolved
CdcSchema. |
CdcSchema.Builder |
column(DataField dataField)
Declares a column that is appended to this schema.
|
CdcSchema.Builder |
column(String columnName,
DataType dataType)
Declares a column that is appended to this schema.
|
CdcSchema.Builder |
column(String columnName,
DataType dataType,
String description)
Declares a column that is appended to this schema.
|
CdcSchema.Builder |
comment(String comment)
Declares table comment.
|
int |
getHighestFieldId() |
CdcSchema.Builder |
primaryKey(List<String> columnNames)
Declares a primary key constraint for a set of given columns.
|
CdcSchema.Builder |
primaryKey(String... columnNames)
Declares a primary key constraint for a set of given columns.
|
public int getHighestFieldId()
public CdcSchema.Builder column(DataField dataField)
dataField - data fieldpublic CdcSchema.Builder column(String columnName, DataType dataType)
columnName - column namedataType - data type of the columnpublic CdcSchema.Builder column(String columnName, DataType dataType, @Nullable String description)
columnName - column namedataType - data type of the columndescription - description of the columnpublic CdcSchema.Builder primaryKey(String... columnNames)
columnNames - columns that form a unique primary keypublic CdcSchema.Builder primaryKey(List<String> columnNames)
columnNames - columns that form a unique primary keypublic CdcSchema.Builder comment(@Nullable String comment)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.