|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.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(String streamName)
Ctor. |
|
InsertIntoClause(String streamName,
List<String> columnNames,
boolean isIStream)
Ctor. |
|
InsertIntoClause(String streamName,
String[] columnNames)
Ctor. |
Method Summary | |
---|---|
void |
add(String columnName)
Add a column name to the insert-into clause. |
static InsertIntoClause |
create(String streamName)
Creates the insert-into clause. |
static InsertIntoClause |
create(String streamName,
String... columns)
Creates the insert-into clause. |
static InsertIntoClause |
create(String streamName,
String[] columns,
StreamSelector streamSelector)
Creates the insert-into clause. |
List<String> |
getColumnNames()
Returns a list of column names specified optionally in the insert-into clause, or empty if none specified. |
String |
getStreamName()
Returns name of stream name to use for insert-into stream. |
boolean |
isIStream()
Returns true if insert (new data) events are fed, or false for remove (old data) events are fed. |
void |
toEQL(StringWriter writer)
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(String streamName)
streamName
- is the stream name to insert intopublic InsertIntoClause(String streamName, String[] columnNames)
streamName
- is the stream name to insert intocolumnNames
- column namespublic InsertIntoClause(String streamName, List<String> columnNames, boolean isIStream)
streamName
- is the stream name to insert intocolumnNames
- column namesisIStream
- is true for selecting the insert stream (default)Method Detail |
---|
public static InsertIntoClause create(String streamName)
streamName
- the name of the stream to insert into
public static InsertIntoClause create(String streamName, String... columns)
streamName
- the name of the stream to insert intocolumns
- is a list of column names
public static InsertIntoClause create(String streamName, String[] columns, StreamSelector streamSelector)
streamName
- the name of the stream to insert intocolumns
- is a list of column namesstreamSelector
- selects the stream
public boolean isIStream()
public String getStreamName()
public List<String> getColumnNames()
public void add(String columnName)
columnName
- to addpublic void toEQL(StringWriter writer)
writer
- to output to
|
© 2007 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 |