Modifier and Type | Method and Description |
---|---|
Schema.Builder |
addColumn(DType type,
String name) |
Schema.Builder |
addColumn(DType type,
String name,
int precision)
Add a new column
|
Schema |
build() |
Schema.Builder |
column(DType type,
String name) |
Schema.Builder |
column(DType type,
String name,
int precision)
Adds a single column to the current schema.
|
public Schema.Builder addColumn(DType type, String name, int precision)
type
- the type of column to addname
- the name of the column to add (Ignored for list types)precision
- the decimal precision, only applicable for decimal typespublic Schema.Builder addColumn(DType type, String name)
public Schema.Builder column(DType type, String name, int precision)
type
- the type of the column.name
- the name of the column.precision
- the decimal precision, only applicable for decimal types.public Schema.Builder column(DType type, String name)
public Schema build()
Copyright © 2024. All rights reserved.