java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.TransformStoredDoc
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class TransformStoredDoc extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentObject
A wrapper for grouping transform state and stats when persisting to an index. Not intended to be returned in endpoint responses.
  • Field Details

    • NAME

      public static final String NAME
      See Also:
    • STATE_FIELD

      public static final org.elasticsearch.xcontent.ParseField STATE_FIELD
    • PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<TransformStoredDoc,Void> PARSER
  • Constructor Details

  • Method Details

    • fromXContent

      public static TransformStoredDoc fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • documentId

      public static String documentId(String transformId)
      Get the persisted state and stats document name from the Transform Id.
      Returns:
      The id of document the where the transform stats are persisted
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getId

      public String getId()
    • getTransformStats

      public TransformIndexerStats getTransformStats()
    • getTransformState

      public TransformState getTransformState()
    • toString

      public String toString()
      Overrides:
      toString in class Object