public class TableDefn extends ObjectDefn
ParameterizedDefn interface.| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION_PROPERTY
Human-readable description of the datasource.
|
| Constructor and Description |
|---|
TableDefn(String name,
String typeValue,
List<ModelProperties.PropertyDefn<?>> properties,
List<ModelProperties.PropertyDefn<?>> columnProperties) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(TableDefnRegistry registry)
Called after the table definition is added to the registry, along with all
other definitions.
|
TableSpec |
merge(TableSpec spec,
TableSpec update,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
Merge a table spec with an update.
|
List<ColumnSpec> |
mergeColumns(List<ColumnSpec> columns,
List<ColumnSpec> update)
Merge the set of columns from an existing spec and an update.
|
void |
validate(ResolvedTable table)
Validate a table spec using the table, field and column definitions defined
here.
|
protected void |
validateColumn(ColumnSpec colSpec)
Table-specific validation of a column spec.
|
void |
validateColumns(List<ColumnSpec> columns) |
mergeProperties, name, properties, property, toPropertyMap, typeValue, validatepublic static final String DESCRIPTION_PROPERTY
public TableDefn(String name, String typeValue, List<ModelProperties.PropertyDefn<?>> properties, List<ModelProperties.PropertyDefn<?>> columnProperties)
public void bind(TableDefnRegistry registry)
public void validate(ResolvedTable table)
public void validateColumns(List<ColumnSpec> columns)
protected void validateColumn(ColumnSpec colSpec)
public TableSpec merge(TableSpec spec, TableSpec update, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public List<ColumnSpec> mergeColumns(List<ColumnSpec> columns, List<ColumnSpec> update)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.