Interface ListToMap.Builder

  • Method Details

    • source

      ListToMap.Builder source(String source)

      The key in the log event that has a list of objects that will be converted to a map.

      Parameters:
      source - The key in the log event that has a list of objects that will be converted to a map.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • key

      The key of the field to be extracted as keys in the generated map

      Parameters:
      key - The key of the field to be extracted as keys in the generated map
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • valueKey

      ListToMap.Builder valueKey(String valueKey)

      If this is specified, the values that you specify in this parameter will be extracted from the source objects and put into the values of the generated map. Otherwise, original objects in the source list will be put into the values of the generated map.

      Parameters:
      valueKey - If this is specified, the values that you specify in this parameter will be extracted from the source objects and put into the values of the generated map. Otherwise, original objects in the source list will be put into the values of the generated map.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • target

      ListToMap.Builder target(String target)

      The key of the field that will hold the generated map

      Parameters:
      target - The key of the field that will hold the generated map
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • flatten

      ListToMap.Builder flatten(Boolean flatten)

      A Boolean value to indicate whether the list will be flattened into single items. Specify true to flatten the list. The default is false

      Parameters:
      flatten - A Boolean value to indicate whether the list will be flattened into single items. Specify true to flatten the list. The default is false
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • flattenedElement

      ListToMap.Builder flattenedElement(String flattenedElement)

      If you set flatten to true, use flattenedElement to specify which element, first or last, to keep.

      You must specify this parameter if flatten is true

      Parameters:
      flattenedElement - If you set flatten to true, use flattenedElement to specify which element, first or last, to keep.

      You must specify this parameter if flatten is true

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • flattenedElement

      ListToMap.Builder flattenedElement(FlattenedElement flattenedElement)

      If you set flatten to true, use flattenedElement to specify which element, first or last, to keep.

      You must specify this parameter if flatten is true

      Parameters:
      flattenedElement - If you set flatten to true, use flattenedElement to specify which element, first or last, to keep.

      You must specify this parameter if flatten is true

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: