Class CreateTableColumn
java.lang.Object
com.espertech.esper.common.client.soda.CreateTableColumn
- All Implemented Interfaces:
Serializable
Table column in a create-table statement.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.CreateTableColumn
(String columnName, Expression optionalExpression, String optionalTypeName, List<AnnotationPart> annotations, Boolean primaryKey) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns optional annotations, or null if there are noneReturns the table column nameReturns the aggragtion expression, if the type of the column is aggregation, or null if a type name is provided instead.Returns the type name, or null if the column is an aggregation and an aggregation expression is provided instead.Returns indicator whether the column is a primary keyvoid
setAnnotations
(List<AnnotationPart> annotations) Sets optional annotations, or null if there are nonevoid
setColumnName
(String columnName) Sets the table column namevoid
setOptionalExpression
(Expression optionalExpression) Sets the aggragtion expression, if the type of the column is aggregation, or null if a type name is provided instead.void
setOptionalTypeName
(String optionalTypeName) Sets the type name, or null if the column is an aggregation and an aggregation expression is provided instead.void
setPrimaryKey
(Boolean primaryKey) Sets indicator whether the column is a primary keyvoid
toEPL
(StringWriter writer) Render create-table column
-
Constructor Details
-
CreateTableColumn
public CreateTableColumn(String columnName, Expression optionalExpression, String optionalTypeName, List<AnnotationPart> annotations, Boolean primaryKey) Ctor.- Parameters:
columnName
- the table column nameoptionalExpression
- an optional aggregation expression (exclusive of type name)optionalTypeName
- a type name (exclusive of aggregation expression)annotations
- optional annotationsprimaryKey
- flag indicating whether the column is a primary key
-
CreateTableColumn
public CreateTableColumn()Ctor.
-
-
Method Details
-
getColumnName
Returns the table column name- Returns:
- column name
-
setColumnName
Sets the table column name- Parameters:
columnName
- column name
-
getAnnotations
Returns optional annotations, or null if there are none- Returns:
- annotations
-
setAnnotations
Sets optional annotations, or null if there are none- Parameters:
annotations
- annotations
-
getOptionalExpression
Returns the aggragtion expression, if the type of the column is aggregation, or null if a type name is provided instead.- Returns:
- expression
-
setOptionalExpression
Sets the aggragtion expression, if the type of the column is aggregation, or null if a type name is provided instead.- Parameters:
optionalExpression
- expression
-
getOptionalTypeName
Returns the type name, or null if the column is an aggregation and an aggregation expression is provided instead.- Returns:
- type name
-
setOptionalTypeName
Sets the type name, or null if the column is an aggregation and an aggregation expression is provided instead.- Parameters:
optionalTypeName
- type name
-
getPrimaryKey
Returns indicator whether the column is a primary key- Returns:
- primary key indicator
-
setPrimaryKey
Sets indicator whether the column is a primary key- Parameters:
primaryKey
- primary key indicator
-
toEPL
Render create-table column- Parameters:
writer
- to render to
-