com.espertech.esper.client.soda
Class CreateSchemaClause

java.lang.Object
  extended by com.espertech.esper.client.soda.CreateSchemaClause
All Implemented Interfaces:
java.io.Serializable

public class CreateSchemaClause
extends java.lang.Object
implements java.io.Serializable

Represents a create-schema syntax for creating a new event type.

See Also:
Serialized Form

Constructor Summary
CreateSchemaClause()
          Ctor.
CreateSchemaClause(java.lang.String schemaName, java.util.List<SchemaColumnDesc> columns, java.util.Set<java.lang.String> inherits)
          Ctor.
CreateSchemaClause(java.lang.String schemaName, java.util.Set<java.lang.String> types, CreateSchemaClauseTypeDef typeDefinition)
          Ctor.
CreateSchemaClause(java.lang.String schemaName, java.util.Set<java.lang.String> types, java.util.List<SchemaColumnDesc> columns, java.util.Set<java.lang.String> inherits, CreateSchemaClauseTypeDef typeDefinition)
          Ctor.
 
Method Summary
 java.util.List<SchemaColumnDesc> getColumns()
          Returns the column definition.
 java.util.Set<java.lang.String> getCopyFrom()
          Returns the optional set of event type names that properties are copied from.
 java.lang.String getEndTimestampPropertyName()
          Returns the property name of the property providing the end timestamp value.
 java.util.Set<java.lang.String> getInherits()
          Returns the names of event types inherited from, if any
 java.lang.String getSchemaName()
          Returns the type name, aka.
 java.lang.String getStartTimestampPropertyName()
          Returns the property name of the property providing the start timestamp value.
 java.lang.String getTreeObjectName()
          Returns id of expression assigned by tools.
 CreateSchemaClauseTypeDef getTypeDefinition()
          returns the type definition.
 java.util.Set<java.lang.String> getTypes()
          Returns model-after types, i.e.
 void setColumns(java.util.List<SchemaColumnDesc> columns)
          Sets the column definition.
 void setCopyFrom(java.util.Set<java.lang.String> copyFrom)
          Sets the optional set of event type names that properties are copied from.
 void setEndTimestampPropertyName(java.lang.String endTimestampPropertyName)
          Sets the property name of the property providing the end timestamp value.
 void setInherits(java.util.Set<java.lang.String> inherits)
          Sets the names of event types inherited from, if any
 void setSchemaName(java.lang.String schemaName)
          Sets the type name.
 void setStartTimestampPropertyName(java.lang.String startTimestampPropertyName)
          Sets the property name of the property providing the start timestamp value.
 void setTreeObjectName(java.lang.String treeObjectName)
          Sets id of expression assigned by tools.
 void setTypeDefinition(CreateSchemaClauseTypeDef typeDefinition)
          Sets the type definition.
 void setTypes(java.util.Set<java.lang.String> types)
          Sets model-after types, i.e.
 void toEPL(java.io.StringWriter writer)
          Render as EPL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateSchemaClause

public CreateSchemaClause()
Ctor.


CreateSchemaClause

public CreateSchemaClause(java.lang.String schemaName,
                          java.util.Set<java.lang.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(java.lang.String schemaName,
                          java.util.List<SchemaColumnDesc> columns,
                          java.util.Set<java.lang.String> inherits)
Ctor.

Parameters:
schemaName - name of type
columns - column definition
inherits - inherited types, if any

CreateSchemaClause

public CreateSchemaClause(java.lang.String schemaName,
                          java.util.Set<java.lang.String> types,
                          java.util.List<SchemaColumnDesc> columns,
                          java.util.Set<java.lang.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 Detail

getTreeObjectName

public java.lang.String getTreeObjectName()
Returns id of expression assigned by tools.

Returns:
id

setTreeObjectName

public void setTreeObjectName(java.lang.String treeObjectName)
Sets id of expression assigned by tools.

Parameters:
treeObjectName - to set

getSchemaName

public java.lang.String getSchemaName()
Returns the type name, aka. schema name.

Returns:
type name

setSchemaName

public void setSchemaName(java.lang.String schemaName)
Sets the type name.

Parameters:
schemaName - to set

getTypes

public java.util.Set<java.lang.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(java.util.Set<java.lang.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 java.util.List<SchemaColumnDesc> getColumns()
Returns the column definition.

Returns:
column def

setColumns

public void setColumns(java.util.List<SchemaColumnDesc> columns)
Sets the column definition.

Parameters:
columns - column def

getInherits

public java.util.Set<java.lang.String> getInherits()
Returns the names of event types inherited from, if any

Returns:
types inherited

setInherits

public void setInherits(java.util.Set<java.lang.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 java.lang.String getStartTimestampPropertyName()
Returns the property name of the property providing the start timestamp value.

Returns:
start timestamp property name

setStartTimestampPropertyName

public void setStartTimestampPropertyName(java.lang.String startTimestampPropertyName)
Sets the property name of the property providing the start timestamp value.

Parameters:
startTimestampPropertyName - start timestamp property name

getEndTimestampPropertyName

public java.lang.String getEndTimestampPropertyName()
Returns the property name of the property providing the end timestamp value.

Returns:
end timestamp property name

getCopyFrom

public java.util.Set<java.lang.String> getCopyFrom()
Returns the optional set of event type names that properties are copied from.

Returns:
copy-from event types

setCopyFrom

public void setCopyFrom(java.util.Set<java.lang.String> copyFrom)
Sets the optional set of event type names that properties are copied from.

Parameters:
copyFrom - event types

setEndTimestampPropertyName

public void setEndTimestampPropertyName(java.lang.String endTimestampPropertyName)
Sets the property name of the property providing the end timestamp value.

Parameters:
endTimestampPropertyName - start timestamp property name

toEPL

public void toEPL(java.io.StringWriter writer)
Render as EPL.

Parameters:
writer - to output to

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com