Package org.elasticsearch.client.ml
Class PreviewDatafeedResponse
java.lang.Object
org.elasticsearch.client.ml.PreviewDatafeedResponse
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class PreviewDatafeedResponse extends java.lang.Object implements ToXContentObject
Response containing a datafeed preview in JSON format
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
-
Constructor Summary
Constructors Constructor Description PreviewDatafeedResponse(BytesReference preview) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)static PreviewDatafeedResponsefromXContent(XContentParser parser)java.util.List<java.util.Map<java.lang.String,java.lang.Object>>getDataList()Parses the preview to a list ofMapobjectsBytesReferencegetPreview()inthashCode()java.lang.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)
-
Constructor Details
-
Method Details
-
fromXContent
public static PreviewDatafeedResponse fromXContent(XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
getPreview
-
getDataList
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getDataList() throws java.io.IOExceptionParses the preview to a list ofMapobjects- Returns:
- List of previewed data
- Throws:
java.io.IOException- If there is a parsing issue with theBytesReferencejava.lang.ClassCastException- If casting the rawObjectentries to aMapfails
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
toString
public final java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-