public abstract class Column extends Object implements Serializable
TableSchema.PhysicalColumn,
MetadataColumn,
序列化表格| 限定符和类型 | 字段和说明 |
|---|---|
protected Long |
bitLen
Bit length *
|
protected Integer |
columnLength |
protected String |
comment |
protected SeaTunnelDataType<?> |
dataType
Data type of the column.
|
protected Object |
defaultValue
The default value of the column.
|
protected boolean |
isUnsigned
Unsigned bit *
|
protected boolean |
isZeroFill
Whether to use the 0 bit *
|
protected Long |
longColumnLength
integer may be cross the border *
|
protected String |
name
column name.
|
protected boolean |
nullable
Does the column can be null
|
protected Map<String,Object> |
options
your options *
|
protected String |
sourceType
Field type in the database *
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
Column(String name,
SeaTunnelDataType<?> dataType,
Integer columnLength,
boolean nullable,
Object defaultValue,
String comment) |
protected |
Column(String name,
SeaTunnelDataType<?> dataType,
Integer columnLength,
boolean nullable,
Object defaultValue,
String comment,
String sourceType,
boolean isUnsigned,
boolean isZeroFill,
Long bitLen,
Long longColumnLength,
Map<String,Object> options) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract Column |
copy()
Returns a copy of the column.
|
abstract Column |
copy(SeaTunnelDataType<?> newType)
Returns a copy of the column with a replaced
SeaTunnelDataType. |
abstract boolean |
isPhysical()
Returns whether the given column is a physical column of a table; neither computed nor
metadata.
|
abstract Column |
rename(String newColumnName)
Returns a copy of the column with a replaced name.
|
protected final String name
protected final SeaTunnelDataType<?> dataType
protected final Integer columnLength
protected final boolean nullable
protected final Object defaultValue
protected final String comment
protected final String sourceType
protected final boolean isUnsigned
protected final boolean isZeroFill
protected final Long bitLen
protected final Long longColumnLength
protected Column(String name, SeaTunnelDataType<?> dataType, Integer columnLength, boolean nullable, Object defaultValue, String comment)
public abstract boolean isPhysical()
public abstract Column copy(SeaTunnelDataType<?> newType)
SeaTunnelDataType.public abstract Column copy()
Copyright © 2024 The Apache Software Foundation. All rights reserved.