java.lang.Object
org.elasticsearch.xpack.core.ml.job.results.Forecast
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class Forecast
extends Object
implements org.elasticsearch.xcontent.ToXContentObject, Writeable
Model Forecast POJO.
-
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 org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final StringResult typestatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongintdoubledoubledoublegetId()getJobId()inthashCode()voidsetByFieldName(String byFieldName) voidsetByFieldValue(String byFieldValue) voidsetForecastLower(double forecastLower) voidsetForecastPrediction(double forecastPrediction) voidsetForecastUpper(double forecastUpper) voidsetModelFeature(String modelFeature) voidsetPartitionFieldName(String partitionFieldName) voidsetPartitionFieldValue(String partitionFieldValue) 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, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
RESULT_TYPE_VALUE
Result type- See Also:
-
RESULTS_FIELD
public static final org.elasticsearch.xcontent.ParseField RESULTS_FIELD -
FORECAST_ID
public static final org.elasticsearch.xcontent.ParseField FORECAST_ID -
PARTITION_FIELD_NAME
public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_NAME -
PARTITION_FIELD_VALUE
public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_VALUE -
BY_FIELD_NAME
public static final org.elasticsearch.xcontent.ParseField BY_FIELD_NAME -
BY_FIELD_VALUE
public static final org.elasticsearch.xcontent.ParseField BY_FIELD_VALUE -
MODEL_FEATURE
public static final org.elasticsearch.xcontent.ParseField MODEL_FEATURE -
FORECAST_LOWER
public static final org.elasticsearch.xcontent.ParseField FORECAST_LOWER -
FORECAST_UPPER
public static final org.elasticsearch.xcontent.ParseField FORECAST_UPPER -
FORECAST_PREDICTION
public static final org.elasticsearch.xcontent.ParseField FORECAST_PREDICTION -
BUCKET_SPAN
public static final org.elasticsearch.xcontent.ParseField BUCKET_SPAN -
DETECTOR_INDEX
public static final org.elasticsearch.xcontent.ParseField DETECTOR_INDEX -
STRICT_PARSER
-
-
Constructor Details
-
Forecast
-
Forecast
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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
-
getJobId
-
getForecastId
-
getId
-
getTimestamp
-
getBucketSpan
public long getBucketSpan() -
getPartitionFieldName
-
setPartitionFieldName
-
getDetectorIndex
public int getDetectorIndex() -
getPartitionFieldValue
-
setPartitionFieldValue
-
getByFieldName
-
setByFieldName
-
getByFieldValue
-
setByFieldValue
-
getModelFeature
-
setModelFeature
-
getForecastLower
public double getForecastLower() -
setForecastLower
public void setForecastLower(double forecastLower) -
getForecastUpper
public double getForecastUpper() -
setForecastUpper
public void setForecastUpper(double forecastUpper) -
getForecastPrediction
public double getForecastPrediction() -
setForecastPrediction
public void setForecastPrediction(double forecastPrediction) -
equals
-
hashCode
public int hashCode()
-