| Constructor and Description |
|---|
Builder(String name)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
TableInfo |
build()
Builds a
TableInfo. |
TableInfo.Builder |
withColumn(ColumnInfo info)
Adds a column.
|
TableInfo.Builder |
withColumn(String columnName,
FieldType.TypeName columnType)
Adds a column.
|
TableInfo.Builder |
withColumn(String columnName,
FieldType columnType)
Adds a column.
|
TableInfo.Builder |
withComment(String text)
Sets the table comment.
|
TableInfo.Builder |
withProperties(Map<String,String> additions)
Adds table properties.
|
TableInfo.Builder |
withProperty(String key,
String value)
Adds a table property.
|
TableInfo.Builder |
withRowFormat(RowFormatInfo info)
Sets the row format.
|
TableInfo.Builder |
withStorageFormat(StorageFormatInfo.FormatKind info)
Sets the storage format.
|
TableInfo.Builder |
withStorageFormat(StorageFormatInfo info)
Sets the storage format.
|
public Builder(String name)
name - the table namepublic TableInfo.Builder withColumn(ColumnInfo info)
info - a new entrypublic TableInfo.Builder withColumn(String columnName, FieldType columnType)
columnName - the column namecolumnType - the column typepublic TableInfo.Builder withColumn(String columnName, FieldType.TypeName columnType)
columnName - the column namecolumnType - the column type name (must be a plain type)public TableInfo.Builder withComment(String text)
text - the comment textpublic TableInfo.Builder withRowFormat(RowFormatInfo info)
info - the row format informationpublic TableInfo.Builder withStorageFormat(StorageFormatInfo info)
info - the storage format informationpublic TableInfo.Builder withStorageFormat(StorageFormatInfo.FormatKind info)
info - the storage format informationpublic TableInfo.Builder withProperty(String key, String value)
key - the property keyvalue - the property valuepublic TableInfo.Builder withProperties(Map<String,String> additions)
additions - the property mapCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.