Class ToXContentParams

java.lang.Object
org.elasticsearch.xpack.core.ml.utils.ToXContentParams

public final class ToXContentParams extends Object
Parameters used by machine learning for controlling X Content serialisation.
  • Field Details

    • FOR_INTERNAL_STORAGE

      public static final String FOR_INTERNAL_STORAGE
      Parameter to indicate whether we are serialising to X Content for internal storage. Certain fields need to be persisted but should not be visible everywhere.
      See Also:
    • EXCLUDE_GENERATED

      public static final String EXCLUDE_GENERATED
      Parameter to indicate if this XContent serialization should only include fields that are allowed to be used on PUT This helps to GET a configuration, copy it, and then PUT it directly without removing or changing any fields in between
      See Also:
    • INCLUDE_CALCULATED_FIELDS

      public static final String INCLUDE_CALCULATED_FIELDS
      When serialising POJOs to X Content this indicates whether the calculated (i.e. not stored) fields should be included or not
      See Also: