|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.InsertIntoClause
public class InsertIntoClause
An insert-into clause consists of a stream name and column names and an optional stream selector.
Constructor Summary | |
---|---|
InsertIntoClause()
Ctor. |
|
InsertIntoClause(java.lang.String streamName)
Ctor. |
|
InsertIntoClause(java.lang.String streamName,
java.util.List<java.lang.String> columnNames,
StreamSelector streamSelector)
Ctor. |
|
InsertIntoClause(java.lang.String streamName,
java.lang.String[] columnNames)
Ctor. |
Method Summary | |
---|---|
void |
add(java.lang.String columnName)
Add a column name to the insert-into clause. |
static InsertIntoClause |
create(java.lang.String streamName)
Creates the insert-into clause. |
static InsertIntoClause |
create(java.lang.String streamName,
java.lang.String... columns)
Creates the insert-into clause. |
static InsertIntoClause |
create(java.lang.String streamName,
java.lang.String[] columns,
StreamSelector streamSelector)
Creates the insert-into clause. |
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 |
getStreamName()
Returns name of stream name to use for insert-into stream. |
StreamSelector |
getStreamSelector()
Returns the stream selector for the insert into. |
void |
setColumnNames(java.util.List<java.lang.String> columnNames)
Set column names. |
void |
setStreamName(java.lang.String streamName)
Set stream name. |
void |
setStreamSelector(StreamSelector streamSelector)
Sets the stream selector for the insert into. |
void |
toEPL(java.io.StringWriter writer,
EPStatementFormatter formatter,
boolean isTopLevel)
Renders the clause in textual representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InsertIntoClause()
public InsertIntoClause(java.lang.String streamName)
streamName
- is the stream name to insert intopublic InsertIntoClause(java.lang.String streamName, java.lang.String[] columnNames)
streamName
- is the stream name to insert intocolumnNames
- column namespublic InsertIntoClause(java.lang.String streamName, java.util.List<java.lang.String> columnNames, StreamSelector streamSelector)
streamName
- is the stream name to insert intocolumnNames
- column namesstreamSelector
- selector for either insert stream (the default) or remove stream or bothMethod Detail |
---|
public static InsertIntoClause create(java.lang.String streamName)
streamName
- the name of the stream to insert into
public static InsertIntoClause create(java.lang.String streamName, java.lang.String... columns)
streamName
- the name of the stream to insert intocolumns
- is a list of column names
public static InsertIntoClause create(java.lang.String streamName, java.lang.String[] columns, StreamSelector streamSelector)
streamName
- the name of the stream to insert intocolumns
- is a list of column namesstreamSelector
- selects the stream
public StreamSelector getStreamSelector()
public void setStreamSelector(StreamSelector streamSelector)
streamSelector
- stream selectorpublic java.lang.String getStreamName()
public java.util.List<java.lang.String> getColumnNames()
public void setStreamName(java.lang.String streamName)
streamName
- namepublic void add(java.lang.String columnName)
columnName
- to addpublic void setColumnNames(java.util.List<java.lang.String> columnNames)
columnNames
- namespublic void toEPL(java.io.StringWriter writer, EPStatementFormatter formatter, boolean isTopLevel)
writer
- to output toformatter
- for newline-whitespace formattingisTopLevel
- to indicate if this insert-into-clause is inside other clauses.
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |