Class CreateSchemaClause
java.lang.Object
com.espertech.esper.common.client.soda.CreateSchemaClause
- All Implemented Interfaces:
Serializable
Represents a create-schema syntax for creating a new event type.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the column definition.Returns the optional set of event type names that properties are copied from.Returns the property name of the property providing the end timestamp value.Returns the names of event types inherited from, if anyReturns the type name, aka.Returns the property name of the property providing the start timestamp value.returns the type definition.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 anyvoid
setSchemaName
(String schemaName) Sets the type name.void
setStartTimestampPropertyName
(String startTimestampPropertyName) Sets the property name of the property providing the start timestamp value.void
setTypeDefinition
(CreateSchemaClauseTypeDef typeDefinition) Sets the type definition.void
Sets model-after types, i.e.void
toEPL
(StringWriter writer) Render as EPL.
-
Constructor Details
-
CreateSchemaClause
public CreateSchemaClause()Ctor. -
CreateSchemaClause
public CreateSchemaClause(String schemaName, Set<String> types, CreateSchemaClauseTypeDef typeDefinition) Ctor.- Parameters:
schemaName
- name of typetypes
- are for model-after, could be multiple when declaring a variant stream, or a single fully-qualified class nametypeDefinition
- type definition
-
CreateSchemaClause
Ctor.- Parameters:
schemaName
- name of typecolumns
- column definitioninherits
- inherited types, if any
-
CreateSchemaClause
public CreateSchemaClause(String schemaName, Set<String> types, List<SchemaColumnDesc> columns, Set<String> inherits, CreateSchemaClauseTypeDef typeDefinition) Ctor.- Parameters:
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 any
-
-
Method Details
-
getSchemaName
Returns the type name, aka. schema name.- Returns:
- type name
-
setSchemaName
Sets the type name.- Parameters:
schemaName
- to set
-
getTypes
Returns model-after types, i.e. (fully-qualified) class name or event type name(s), multiple for variant types.- Returns:
- type names or class names
-
setTypes
Sets model-after types, i.e. (fully-qualified) class name or event type name(s), multiple for variant types.- Parameters:
types
- type names or class names
-
getColumns
Returns the column definition.- Returns:
- column def
-
setColumns
Sets the column definition.- Parameters:
columns
- column def
-
getInherits
Returns the names of event types inherited from, if any- Returns:
- types inherited
-
setInherits
Sets the names of event types inherited from, if any- Parameters:
inherits
- types inherited
-
getTypeDefinition
returns the type definition.- Returns:
- type definition
-
setTypeDefinition
Sets the type definition.- Parameters:
typeDefinition
- type definition to set
-
getStartTimestampPropertyName
Returns the property name of the property providing the start timestamp value.- Returns:
- start timestamp property name
-
setStartTimestampPropertyName
Sets the property name of the property providing the start timestamp value.- Parameters:
startTimestampPropertyName
- start timestamp property name
-
getEndTimestampPropertyName
Returns the property name of the property providing the end timestamp value.- Returns:
- end timestamp property name
-
getCopyFrom
Returns the optional set of event type names that properties are copied from.- Returns:
- copy-from event types
-
setCopyFrom
Sets the optional set of event type names that properties are copied from.- Parameters:
copyFrom
- event types
-
setEndTimestampPropertyName
Sets the property name of the property providing the end timestamp value.- Parameters:
endTimestampPropertyName
- start timestamp property name
-
toEPL
Render as EPL.- Parameters:
writer
- to output to
-