Class ColumnSpec.Builder

java.lang.Object
io.deephaven.enterprise.inputtables.ColumnSpec.Builder
Enclosing interface:
ColumnSpec

public abstract static class ColumnSpec.Builder extends Object
Builder to help create a ColumnSpec.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      @NotNull public abstract ColumnSpec.Builder name(String name)
      Sets the name of the column.
      Parameters:
      name - the name of the column
      Returns:
      this builder
    • setDataType

      @NotNull public ColumnSpec.Builder setDataType(@NotNull Class<?> dataType)
      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

      @NotNull public abstract ColumnSpec.Builder isKey(boolean isKey)
      Sets whether the column is a keyed column.
      Parameters:
      isKey - whether the column is a keyed column
      Returns:
      this builder
    • addToEnumValues

      @NotNull public ColumnSpec.Builder addToEnumValues(@NotNull Object... enumValues)
      Adds the enum values for the column.
      Parameters:
      enumValues - the enum values for the column
      Returns:
      this builder
    • build

      @NotNull public abstract ColumnSpec build()
      Creates and returns the ColumnSpec.
      Returns:
      the built ColumnSpec