Package ai.rapids.cudf
Class Schema.Builder
java.lang.Object
ai.rapids.cudf.Schema.Builder
- Enclosing class:
- Schema
-
Method Summary
Modifier and TypeMethodDescriptionAdd a new columnbuild()
Adds a single column to the current schema.
-
Method Details
-
addColumn
Add a new column- Parameters:
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 types- Returns:
- the builder for the new column. This should really only be used when the type passed in is a LIST or a STRUCT.
-
addColumn
-
column
Adds a single column to the current schema. addColumn is preferred as it can be used to support nested types.- Parameters:
type
- the type of the column.name
- the name of the column.precision
- the decimal precision, only applicable for decimal types.- Returns:
- this for chaining.
-
column
-
build
-