4.4.1.3 Creating a Coherence Target

To create an Coherence target:

  1. On the Catalog page, click Create New Item.
  2. Hover the mouse over Target and select Coherence from the submenu.
  3. On the Type Properties screen, enter the following details:
    • Name: Enter a unique name for the target. This is a mandatory field.
    • Display Name: Enter a display name for the target. If left blank, the Name field value is copied.
    • Description
    • Tags
    • Target Type: The selected target is displayed.
  4. Click Next.
  5. On the Target Details screen, enter the following details:
    • Connection: Select a coherence connection.

    • Cache Name: Enter a name for the coherence cache.

    • Data Format: Select a data format from the drop-down list.

  6. Click Next.
  7. On the Data Format screen, enter the shape details for the stream, based on the data format you have selected.
    • For JSON:
      • Create nested json object: Select this option to create a nested JSON object for the target.

  8. Click Next.
  9. On the Shape screen, enter the following details:
    • For JSON:
      • Shape Name: Enter a name for the shape.
      • Clear Fields: Click to clear all the fields from the existing shape.
      • Key: Select key fields, based on which data is partitioned. For example, records containing the same values for the selected key fields will all be stored in the same Kafka partition.

        You can select multiple fields as key. Key selection is not mandatory.

      • Field Name: Add the necessary fields.
      • Field Path: Enter the field path.

        Note:

        • To retrieve the entire JSON payload, add a new field with path $.
        • To retrieve the content of the array, add a new field with path $[arrayField].

        In both the cases, the value returned is of type Text.

      • Field Type: Select the field data type from the drop-down list.
    • For POJO:
      • Jar Name: Select a jar name from the custom POJO jars, from the drop-down list.
      • Class Name: Select the class name from the POJO classes in the chosen jars, from the drop-down list.
  10. Click Save.