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.
  • Field Details

    • RESULT_TYPE_VALUE

      public static final String 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

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<Forecast,Void> STRICT_PARSER
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • 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
    • getJobId

      public String getJobId()
    • getForecastId

      public String getForecastId()
    • getId

      public String getId()
    • getTimestamp

      public Date getTimestamp()
    • getBucketSpan

      public long getBucketSpan()
    • getPartitionFieldName

      public String getPartitionFieldName()
    • setPartitionFieldName

      public void setPartitionFieldName(String partitionFieldName)
    • getDetectorIndex

      public int getDetectorIndex()
    • getPartitionFieldValue

      public String getPartitionFieldValue()
    • setPartitionFieldValue

      public void setPartitionFieldValue(String partitionFieldValue)
    • getByFieldName

      public String getByFieldName()
    • setByFieldName

      public void setByFieldName(String byFieldName)
    • getByFieldValue

      public String getByFieldValue()
    • setByFieldValue

      public void setByFieldValue(String byFieldValue)
    • getModelFeature

      public String getModelFeature()
    • setModelFeature

      public void setModelFeature(String modelFeature)
    • 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

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

      public int hashCode()
      Overrides:
      hashCode in class Object