StructField
Defined in: types/struct.ts:7
Mirrors Spark’s StructType and StructField for schema inspection.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new StructField( name, dataType, nullable?, metadata?): StructField;Defined in: types/struct.ts:13
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
name | string | undefined |
dataType | string | undefined |
nullable | boolean | true |
metadata | Record<string, unknown> | {} |
Returns
Section titled “Returns”StructField
Properties
Section titled “Properties”dataType
Section titled “dataType”readonly dataType: string;Defined in: types/struct.ts:9
metadata
Section titled “metadata”readonly metadata: Record<string, unknown>;Defined in: types/struct.ts:11
readonly name: string;Defined in: types/struct.ts:8
nullable
Section titled “nullable”readonly nullable: boolean;Defined in: types/struct.ts:10
Methods
Section titled “Methods”toString()
Section titled “toString()”toString(): string;Defined in: types/struct.ts:25
Returns
Section titled “Returns”string