Class CreateIndexClause
java.lang.Object
com.espertech.esper.common.client.soda.CreateIndexClause
- All Implemented Interfaces:
Serializable
Create an index on a named window.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.CreateIndexClause
(String indexName, String windowName, String[] properties) Ctor.CreateIndexClause
(String indexName, String windowName, String[] properties, boolean unique) Ctor.CreateIndexClause
(String indexName, String windowName, List<CreateIndexColumn> columns) Ctor.CreateIndexClause
(String indexName, String windowName, List<CreateIndexColumn> columns, boolean unique) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionstatic CreateIndexClause
Creates a clause to create a named window.static CreateIndexClause
Creates a clause to create a named window.Returns columns.Returns index name.Returns window name.boolean
isUnique()
Returns unique indicator.void
setColumns
(List<CreateIndexColumn> columns) Sets columns.void
setIndexName
(String indexName) Set index name.void
setUnique
(boolean unique) Sets unique indicator.void
setWindowName
(String windowName) Sets window.void
toEPL
(StringWriter writer) Renders the clause in textual representation.
-
Constructor Details
-
CreateIndexClause
public CreateIndexClause()Ctor. -
CreateIndexClause
Ctor.- Parameters:
indexName
- index namewindowName
- named window namecolumns
- columns indexed
-
CreateIndexClause
public CreateIndexClause(String indexName, String windowName, List<CreateIndexColumn> columns, boolean unique) Ctor.- Parameters:
indexName
- index namewindowName
- named window namecolumns
- columns indexedunique
- unique indicator
-
CreateIndexClause
Ctor.- Parameters:
windowName
- is the name of the window to createindexName
- index nameproperties
- properties to index
-
CreateIndexClause
Ctor.- Parameters:
windowName
- is the name of the window to createindexName
- index nameproperties
- properties to indexunique
- for unique index
-
-
Method Details
-
create
Creates a clause to create a named window.- Parameters:
windowName
- is the name of the named windowproperties
- properties to indexindexName
- name of index- Returns:
- create variable clause
-
create
public static CreateIndexClause create(boolean unique, String indexName, String windowName, String... properties) Creates a clause to create a named window.- Parameters:
windowName
- is the name of the named windowproperties
- properties to indexindexName
- name of indexunique
- for unique index- Returns:
- create variable clause
-
toEPL
Renders the clause in textual representation.- Parameters:
writer
- to output to
-
getIndexName
Returns index name.- Returns:
- name of index
-
setIndexName
Set index name.- Parameters:
indexName
- name of index
-
getWindowName
Returns window name.- Returns:
- name of window
-
setWindowName
Sets window.- Parameters:
windowName
- to index
-
getColumns
Returns columns.- Returns:
- columns
-
setColumns
Sets columns.- Parameters:
columns
- to index
-
isUnique
public boolean isUnique()Returns unique indicator.- Returns:
- unique indicator
-
setUnique
public void setUnique(boolean unique) Sets unique indicator.- Parameters:
unique
- unique indicator
-