Module org.elasticsearch.xcore
Class TransformStoredDoc
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.elasticsearch.xcontent.ConstructingObjectParser<TransformStoredDoc, Void> static final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionTransformStoredDoc(String id, TransformState state, TransformIndexerStats stats) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdocumentId(String transformId) Get the persisted state and stats document name from the Transform Id.booleanstatic TransformStoredDocfromXContent(org.elasticsearch.xcontent.XContentParser parser) getId()inthashCode()toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
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
-
TransformStoredDoc
-
TransformStoredDoc
- Throws:
IOException
-
-
Method Details
-
fromXContent
public static TransformStoredDoc fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
documentId
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:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
getId
-
getTransformStats
-
getTransformState
-
toString
-