class DeltaColumnBuilder extends AnyRef
Evolving API
Builder to specify a table column.
See DeltaTableBuilder for examples.
- Annotations
- @Evolving()
- Since
1.0.0
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DeltaColumnBuilder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
Evolving API
build(): StructField
Build the column as a structField.
- Annotations
- @Evolving()
- Since
1.0.0
-
def
Evolving API
comment(comment: String): DeltaColumnBuilder
Specify a column comment.
- comment
string column description
- Annotations
- @Evolving()
- Since
1.0.0
-
def
Evolving API
dataType(dataType: DataType): DeltaColumnBuilder
Specify the column data type.
- dataType
DataType column data type
- Annotations
- @Evolving()
- Since
1.0.0
-
def
Evolving API
dataType(dataType: String): DeltaColumnBuilder
Specify the column data type.
- dataType
string column data type
- Annotations
- @Evolving()
- Since
1.0.0
-
def
Evolving API
generatedAlwaysAs(expr: String): DeltaColumnBuilder
Specify a expression if the column is always generated as a function of other columns.
- expr
string the the generation expression
- Annotations
- @Evolving()
- Since
1.0.0
-
def
Evolving API
nullable(nullable: Boolean): DeltaColumnBuilder
Specify whether the column can be null.
- nullable
boolean whether the column can be null or not.
- Annotations
- @Evolving()
- Since
1.0.0