com.espertech.esper.epl.spec
Class InsertIntoDesc

java.lang.Object
  extended by com.espertech.esper.epl.spec.InsertIntoDesc
All Implemented Interfaces:
MetaDefItem, java.io.Serializable

public class InsertIntoDesc
extends java.lang.Object
implements MetaDefItem, java.io.Serializable

Descriptor generated by INSERT-INTO clauses specified in expressions to insert the results of statement as a stream to further statements.

See Also:
Serialized Form

Constructor Summary
InsertIntoDesc(SelectClauseStreamSelectorEnum streamSelector, java.lang.String eventTypeName)
          Ctor.
 
Method Summary
 void add(java.lang.String columnName)
          Add a column name to the insert-into clause.
static InsertIntoDesc fromColumns(java.lang.String streamName, java.util.List<java.lang.String> columns)
           
 java.util.List<java.lang.String> getColumnNames()
          Returns a list of column names specified optionally in the insert-into clause, or empty if none specified.
 java.lang.String getEventTypeName()
          Returns name of event type to use for insert-into stream.
 SelectClauseStreamSelectorEnum getStreamSelector()
          Returns the stream(s) selected for inserting into.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertIntoDesc

public InsertIntoDesc(SelectClauseStreamSelectorEnum streamSelector,
                      java.lang.String eventTypeName)
Ctor.

Parameters:
streamSelector - selects insert, remove or insert+remove stream
eventTypeName - is the event type name
Method Detail

getStreamSelector

public SelectClauseStreamSelectorEnum getStreamSelector()
Returns the stream(s) selected for inserting into.

Returns:
stream selector

getEventTypeName

public java.lang.String getEventTypeName()
Returns name of event type to use for insert-into stream.

Returns:
event type name

getColumnNames

public java.util.List<java.lang.String> getColumnNames()
Returns a list of column names specified optionally in the insert-into clause, or empty if none specified.

Returns:
column names or empty list if none supplied

add

public void add(java.lang.String columnName)
Add a column name to the insert-into clause.

Parameters:
columnName - to add

fromColumns

public static InsertIntoDesc fromColumns(java.lang.String streamName,
                                         java.util.List<java.lang.String> columns)

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