Interface SearchEngineUtil.XContentBuilderCallback

Enclosing class:
SearchEngineUtil

public static interface SearchEngineUtil.XContentBuilderCallback
Functional interface for building XContent with custom logic. Allows clients to provide custom content building implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opensearch.core.xcontent.XContentBuilder
    apply(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params)
    Applies custom logic to build XContent using the provided builder and parameters.
  • Method Details

    • apply

      org.opensearch.core.xcontent.XContentBuilder apply(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Applies custom logic to build XContent using the provided builder and parameters.
      Parameters:
      builder - the XContentBuilder to use for building content
      params - the parameters to use during content building
      Returns:
      the modified XContentBuilder
      Throws:
      IOException - if an IO error occurs during building