public class CreateSchemaClause extends Object implements Serializable
Constructor and Description |
---|
CreateSchemaClause()
Ctor.
|
CreateSchemaClause(String schemaName,
List<SchemaColumnDesc> columns,
Set<String> inherits)
Ctor.
|
CreateSchemaClause(String schemaName,
Set<String> types,
CreateSchemaClauseTypeDef typeDefinition)
Ctor.
|
CreateSchemaClause(String schemaName,
Set<String> types,
List<SchemaColumnDesc> columns,
Set<String> inherits,
CreateSchemaClauseTypeDef typeDefinition)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
List<SchemaColumnDesc> |
getColumns()
Returns the column definition.
|
Set<String> |
getCopyFrom()
Returns the optional set of event type names that properties are copied from.
|
String |
getEndTimestampPropertyName()
Returns the property name of the property providing the end timestamp value.
|
Set<String> |
getInherits()
Returns the names of event types inherited from, if any
|
String |
getSchemaName()
Returns the type name, aka.
|
String |
getStartTimestampPropertyName()
Returns the property name of the property providing the start timestamp value.
|
String |
getTreeObjectName()
Returns id of expression assigned by tools.
|
CreateSchemaClauseTypeDef |
getTypeDefinition()
returns the type definition.
|
Set<String> |
getTypes()
Returns model-after types, i.e.
|
void |
setColumns(List<SchemaColumnDesc> columns)
Sets the column definition.
|
void |
setCopyFrom(Set<String> copyFrom)
Sets the optional set of event type names that properties are copied from.
|
void |
setEndTimestampPropertyName(String endTimestampPropertyName)
Sets the property name of the property providing the end timestamp value.
|
void |
setInherits(Set<String> inherits)
Sets the names of event types inherited from, if any
|
void |
setSchemaName(String schemaName)
Sets the type name.
|
void |
setStartTimestampPropertyName(String startTimestampPropertyName)
Sets the property name of the property providing the start timestamp value.
|
void |
setTreeObjectName(String treeObjectName)
Sets id of expression assigned by tools.
|
void |
setTypeDefinition(CreateSchemaClauseTypeDef typeDefinition)
Sets the type definition.
|
void |
setTypes(Set<String> types)
Sets model-after types, i.e.
|
void |
toEPL(StringWriter writer)
Render as EPL.
|
public CreateSchemaClause()
public CreateSchemaClause(String schemaName, Set<String> types, CreateSchemaClauseTypeDef typeDefinition)
schemaName
- name of typetypes
- are for model-after, could be multiple when declaring a variant stream, or a single fully-qualified class nametypeDefinition
- type definitionpublic CreateSchemaClause(String schemaName, List<SchemaColumnDesc> columns, Set<String> inherits)
schemaName
- name of typecolumns
- column definitioninherits
- inherited types, if anypublic CreateSchemaClause(String schemaName, Set<String> types, List<SchemaColumnDesc> columns, Set<String> inherits, CreateSchemaClauseTypeDef typeDefinition)
schemaName
- name of typetypes
- are for model-after, could be multiple when declaring a variant stream, or a single fully-qualified class nametypeDefinition
- for variant streams, map or object arraycolumns
- column definitioninherits
- inherited types, if anypublic String getTreeObjectName()
public void setTreeObjectName(String treeObjectName)
treeObjectName
- to setpublic String getSchemaName()
public void setSchemaName(String schemaName)
schemaName
- to setpublic Set<String> getTypes()
public void setTypes(Set<String> types)
types
- type names or class namespublic List<SchemaColumnDesc> getColumns()
public void setColumns(List<SchemaColumnDesc> columns)
columns
- column defpublic Set<String> getInherits()
public void setInherits(Set<String> inherits)
inherits
- types inheritedpublic CreateSchemaClauseTypeDef getTypeDefinition()
public void setTypeDefinition(CreateSchemaClauseTypeDef typeDefinition)
typeDefinition
- type definition to setpublic String getStartTimestampPropertyName()
public void setStartTimestampPropertyName(String startTimestampPropertyName)
startTimestampPropertyName
- start timestamp property namepublic String getEndTimestampPropertyName()
public Set<String> getCopyFrom()
public void setCopyFrom(Set<String> copyFrom)
copyFrom
- event typespublic void setEndTimestampPropertyName(String endTimestampPropertyName)
endTimestampPropertyName
- start timestamp property namepublic void toEPL(StringWriter writer)
writer
- to output to