Class CreateSchemaClause

java.lang.Object
com.espertech.esper.common.client.soda.CreateSchemaClause
All Implemented Interfaces:
Serializable

public class CreateSchemaClause extends Object implements Serializable
Represents a create-schema syntax for creating a new event type.
See Also:
  • Constructor Details

    • CreateSchemaClause

      public CreateSchemaClause()
      Ctor.
    • CreateSchemaClause

      public CreateSchemaClause(String schemaName, Set<String> types, CreateSchemaClauseTypeDef typeDefinition)
      Ctor.
      Parameters:
      schemaName - name of type
      types - are for model-after, could be multiple when declaring a variant stream, or a single fully-qualified class name
      typeDefinition - type definition
    • CreateSchemaClause

      public CreateSchemaClause(String schemaName, List<SchemaColumnDesc> columns, Set<String> inherits)
      Ctor.
      Parameters:
      schemaName - name of type
      columns - column definition
      inherits - 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 type
      types - are for model-after, could be multiple when declaring a variant stream, or a single fully-qualified class name
      typeDefinition - for variant streams, map or object array
      columns - column definition
      inherits - inherited types, if any
  • Method Details

    • getSchemaName

      public String getSchemaName()
      Returns the type name, aka. schema name.
      Returns:
      type name
    • setSchemaName

      public void setSchemaName(String schemaName)
      Sets the type name.
      Parameters:
      schemaName - to set
    • getTypes

      public Set<String> 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

      public void setTypes(Set<String> types)
      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

      public List<SchemaColumnDesc> getColumns()
      Returns the column definition.
      Returns:
      column def
    • setColumns

      public void setColumns(List<SchemaColumnDesc> columns)
      Sets the column definition.
      Parameters:
      columns - column def
    • getInherits

      public Set<String> getInherits()
      Returns the names of event types inherited from, if any
      Returns:
      types inherited
    • setInherits

      public void setInherits(Set<String> inherits)
      Sets the names of event types inherited from, if any
      Parameters:
      inherits - types inherited
    • getTypeDefinition

      public CreateSchemaClauseTypeDef getTypeDefinition()
      returns the type definition.
      Returns:
      type definition
    • setTypeDefinition

      public void setTypeDefinition(CreateSchemaClauseTypeDef typeDefinition)
      Sets the type definition.
      Parameters:
      typeDefinition - type definition to set
    • getStartTimestampPropertyName

      public String getStartTimestampPropertyName()
      Returns the property name of the property providing the start timestamp value.
      Returns:
      start timestamp property name
    • setStartTimestampPropertyName

      public void setStartTimestampPropertyName(String startTimestampPropertyName)
      Sets the property name of the property providing the start timestamp value.
      Parameters:
      startTimestampPropertyName - start timestamp property name
    • getEndTimestampPropertyName

      public String getEndTimestampPropertyName()
      Returns the property name of the property providing the end timestamp value.
      Returns:
      end timestamp property name
    • getCopyFrom

      public Set<String> getCopyFrom()
      Returns the optional set of event type names that properties are copied from.
      Returns:
      copy-from event types
    • setCopyFrom

      public void setCopyFrom(Set<String> copyFrom)
      Sets the optional set of event type names that properties are copied from.
      Parameters:
      copyFrom - event types
    • setEndTimestampPropertyName

      public void setEndTimestampPropertyName(String endTimestampPropertyName)
      Sets the property name of the property providing the end timestamp value.
      Parameters:
      endTimestampPropertyName - start timestamp property name
    • toEPL

      public void toEPL(StringWriter writer)
      Render as EPL.
      Parameters:
      writer - to output to