Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

After creating an event stream you can persist it by creating a corresponding table in the WSO2 Data Access Layer.  Follow the steps below to persist an event stream.

  1. Log in to the management console using the following URL: https://<DAS_HOST>:<DAS_PORT>/carbon/
  2. Click Main, and then click Streams.
  3. Click Edit of the corresponding event stream which you want to persist.
  4. Click Next [Persist Event].
  5. Select Persist Event Stream, and select EVENT_STORE for Record Store.
  6. For each of the attribute types, do the following as required to define the schema of the event stream as shown below.
    persisting an event stream
    • Select Persist Attribute, if you want to persist a particular attribute.
    • A facet is a hierarchical implementation of a collection of several categories of attributes within one attribute. Facet attributes allow you to carry out a faceted extended search within the defined categories. If you define an attribute as a facet, you need to send its values for it as a JSON string array

      Select FACET for Attribute Type, if you want to persist an attribute as a facet. 

      Info

      For more information on facets, see Searching Data By Categories .

    • Select Primary Key, to define an attribute type as a primary key.
    • Select Index Column, to enable an attribute type to be applied in searches.

      Anchor
      Indexing
      Indexing

    • Select Score Param, to define an attribute as a score parameter. For more information on score parameters, see Defining Score Parameters Searching Data By Categories.
    • Define and add any Arbitrary Data Attributes which you want to persist.
  7. Click Save Event Stream to persist the event stream.