Package org.apache.gravitino.dto.rel
Class ColumnDTO
java.lang.Object
org.apache.gravitino.dto.rel.ColumnDTO
- All Implemented Interfaces:
Column
Represents a Column DTO (Data Transfer Object).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
ColumnDTO.Builder<S extends ColumnDTO.Builder>
Builder class for constructing ColumnDTO instances.Nested classes/interfaces inherited from interface org.apache.gravitino.rel.Column
Column.ColumnImpl
-
Field Summary
Fields inherited from interface org.apache.gravitino.rel.Column
DEFAULT_VALUE_NOT_SET, DEFAULT_VALUE_OF_CURRENT_TIMESTAMP
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.gravitino.rel.Column
supportsTags
-
Method Details
-
name
-
dataType
-
comment
-
nullable
public boolean nullable() -
autoIncrement
public boolean autoIncrement()- Specified by:
autoIncrement
in interfaceColumn
- Returns:
- True if this column is an auto-increment column. Default is false.
-
defaultValue
- Specified by:
defaultValue
in interfaceColumn
- Returns:
- The default value of this column,
Column.DEFAULT_VALUE_NOT_SET
if not specified
-
builder
Creates a new Builder to build a Column DTO.- Returns:
- A new Builder instance.
-
validate
Validates the Column DTO.- Throws:
IllegalArgumentException
- If some of the required fields are not set or if the column is non-nullable with a null default value, this method will throw an IllegalArgumentException.
-