Package org.apache.calcite.schema
Enum ColumnStrategy
- All Implemented Interfaces:
Serializable
,Comparable<ColumnStrategy>
,Constable
Describes how a column gets populated.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionColumn has a default value.Column does not have a default value, and does not allow nulls.Column does not have a default value, but does allow null values.Column is computed and stored.Column is computed and not stored. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether you can insert into the column.static ColumnStrategy
Returns the enum constant of this type with the specified name.static ColumnStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NULLABLE
Column does not have a default value, but does allow null values. If you don't specify it in an INSERT, it will get a NULL value. -
NOT_NULLABLE
Column does not have a default value, and does not allow nulls. You must specify it in an INSERT. -
DEFAULT
Column has a default value. If you don't specify it in an INSERT, it will get a NULL value. -
STORED
Column is computed and stored. You cannot insert into it. -
VIRTUAL
Column is computed and not stored. You cannot insert into it.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
canInsertInto
public boolean canInsertInto()Returns whether you can insert into the column.- Returns:
- true if this column can be inserted
-