Class ColumnSpec.Builder
java.lang.Object
io.deephaven.enterprise.inputtables.ColumnSpec.Builder
- Enclosing interface:
- ColumnSpec
Builder to help create a
ColumnSpec
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddToEnumValues
(Object... enumValues) Adds the enum values for the column.abstract ColumnSpec
build()
Creates and returns theColumnSpec
.abstract ColumnSpec.Builder
isKey
(boolean isKey) Sets whether the column is a keyed column.abstract ColumnSpec.Builder
Sets the name of the column.setDataType
(Class<?> dataType) Sets the data type of the column, applying data type conversions as necessary on supported types.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the name of the column.- Parameters:
name
- the name of the column- Returns:
- this builder
-
setDataType
Sets the data type of the column, applying data type conversions as necessary on supported types.- Parameters:
dataType
- the data type of the column- Returns:
- this builder
-
isKey
Sets whether the column is a keyed column.- Parameters:
isKey
- whether the column is a keyed column- Returns:
- this builder
-
addToEnumValues
Adds the enum values for the column.- Parameters:
enumValues
- the enum values for the column- Returns:
- this builder
-
build
Creates and returns theColumnSpec
.- Returns:
- the built
ColumnSpec
-