Class CreateIndexClause

java.lang.Object
com.espertech.esper.common.client.soda.CreateIndexClause
All Implemented Interfaces:
Serializable

public class CreateIndexClause extends Object implements Serializable
Create an index on a named window.
See Also:
  • Constructor Details

    • CreateIndexClause

      public CreateIndexClause()
      Ctor.
    • CreateIndexClause

      public CreateIndexClause(String indexName, String windowName, List<CreateIndexColumn> columns)
      Ctor.
      Parameters:
      indexName - index name
      windowName - named window name
      columns - columns indexed
    • CreateIndexClause

      public CreateIndexClause(String indexName, String windowName, List<CreateIndexColumn> columns, boolean unique)
      Ctor.
      Parameters:
      indexName - index name
      windowName - named window name
      columns - columns indexed
      unique - unique indicator
    • CreateIndexClause

      public CreateIndexClause(String indexName, String windowName, String[] properties)
      Ctor.
      Parameters:
      windowName - is the name of the window to create
      indexName - index name
      properties - properties to index
    • CreateIndexClause

      public CreateIndexClause(String indexName, String windowName, String[] properties, boolean unique)
      Ctor.
      Parameters:
      windowName - is the name of the window to create
      indexName - index name
      properties - properties to index
      unique - for unique index
  • Method Details

    • create

      public static CreateIndexClause create(String indexName, String windowName, String... properties)
      Creates a clause to create a named window.
      Parameters:
      windowName - is the name of the named window
      properties - properties to index
      indexName - 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 window
      properties - properties to index
      indexName - name of index
      unique - for unique index
      Returns:
      create variable clause
    • toEPL

      public void toEPL(StringWriter writer)
      Renders the clause in textual representation.
      Parameters:
      writer - to output to
    • getIndexName

      public String getIndexName()
      Returns index name.
      Returns:
      name of index
    • setIndexName

      public void setIndexName(String indexName)
      Set index name.
      Parameters:
      indexName - name of index
    • getWindowName

      public String getWindowName()
      Returns window name.
      Returns:
      name of window
    • setWindowName

      public void setWindowName(String windowName)
      Sets window.
      Parameters:
      windowName - to index
    • getColumns

      public List<CreateIndexColumn> getColumns()
      Returns columns.
      Returns:
      columns
    • setColumns

      public void setColumns(List<CreateIndexColumn> columns)
      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