Interface ColumnSpec
@Immutable
public interface ColumnSpec
Representation of input table column specification.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnSpec.Builder
builder()
Creates and returns a builder for aColumnSpec
.default void
check()
Upon building, checks validity of the column spec.Class<?>
dataType()
Gets the data type of the column.Gets the enum values for the column.boolean
isKey()
Gets whether the column is a keyed column.name()
Gets the name of the column.
-
Field Details
-
ALLOWED_DATA_TYPES
-
-
Method Details
-
name
Gets the name of the column.- Returns:
- the name of the column
-
dataType
Gets the data type of the column.- Returns:
- the data type of the column
-
isKey
boolean isKey()Gets whether the column is a keyed column.- Returns:
- whether the column is a keyed column
-
enumValues
Gets the enum values for the column.- Returns:
- the enum values for the column
-
check
@Check default void check()Upon building, checks validity of the column spec. -
builder
Creates and returns a builder for aColumnSpec
.- Returns:
- a builder for a
ColumnSpec
-