Defines a column to be used in a table Schema, or in an EntityViewSchema.

Column(id=NULL, columnType=NULL, maximumSize=NULL, name=NULL, enumValues=NULL, defaultValue=NULL)

Arguments

id

optional named parameter: An immutable ID issued by the platform

columnType

optional named parameter: Can be any of: "STRING", "DOUBLE", "INTEGER", "BOOLEAN", "DATE", "FILEHANDLEID", "ENTITYID"

maximumSize

optional named parameter: A parameter for columnTypes with a maximum size. For example, ColumnType.STRINGs have a default maximum size of 50 characters, but can be set to a maximumSize of 1 to 1000 characters.

name

optional named parameter: The display name of the column

enumValues

optional named parameter: Columns type of STRING can be constrained to an enumeration values set on this list.

defaultValue

optional named parameter: The default value for this column. Columns of type FILEHANDLEID and ENTITYID are not allowed to have default values.

Details

Value

An object of type Column

References

Note

See also

Examples

# NOT RUN {
Column(name='Isotope', columnType='STRING')
Column(name='Atomic Mass', columnType='INTEGER')
Column(name='Halflife', columnType='DOUBLE')
Column(name='Discovered', columnType='DATE')
# }