Package org.elasticsearch.client.ml
Class ForecastJobResponse
java.lang.Object
org.elasticsearch.client.ml.ForecastJobResponse
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class ForecastJobResponse
extends Object
implements org.elasticsearch.xcontent.ToXContentObject
Forecast response object
-
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.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ConstructingObjectParser<ForecastJobResponse,Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ForecastJobResponsefromXContent(org.elasticsearch.xcontent.XContentParser parser) The created forecast IDinthashCode()booleanForecast creating acknowledgementorg.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
ACKNOWLEDGED
public static final org.elasticsearch.xcontent.ParseField ACKNOWLEDGED -
FORECAST_ID
public static final org.elasticsearch.xcontent.ParseField FORECAST_ID -
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<ForecastJobResponse,Void> PARSER
-
-
Constructor Details
-
ForecastJobResponse
-
-
Method Details
-
fromXContent
public static ForecastJobResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
isAcknowledged
public boolean isAcknowledged()Forecast creating acknowledgement- Returns:
trueindicates success,falseotherwise
-
getForecastId
The created forecast ID -
hashCode
public int hashCode() -
equals
-
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
-