Class ParsedInference

java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.client.analytics.ParsedInference
All Implemented Interfaces:
org.elasticsearch.search.aggregations.Aggregation, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment

public class ParsedInference extends org.elasticsearch.search.aggregations.ParsedAggregation
This class parses the superset of all possible fields that may be written by InferenceResults. The warning field is mutually exclusive with all the other fields. In the case of classification results getValue() may return a String, Boolean or a Double. For regression results getValue() is always a Double.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation

    org.elasticsearch.search.aggregations.Aggregation.CommonFields

    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

    Fields
    Modifier and Type
    Field
    Description
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ParseField
     

    Fields inherited from class org.elasticsearch.search.aggregations.ParsedAggregation

    metadata

    Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation

    TYPED_KEYS_DELIMITER

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.elasticsearch.xcontent.XContentBuilder
    doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     
    fromXContent(org.elasticsearch.xcontent.XContentParser parser, String name)
     
     
     
     
     
     

    Methods inherited from class org.elasticsearch.search.aggregations.ParsedAggregation

    declareAggregationFields, getMetadata, getName, parseDouble, setName, toXContent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment

    isFragment
  • Field Details

    • FEATURE_IMPORTANCE

      public static final org.elasticsearch.xcontent.ParseField FEATURE_IMPORTANCE
    • WARNING

      public static final org.elasticsearch.xcontent.ParseField WARNING
    • TOP_CLASSES

      public static final org.elasticsearch.xcontent.ParseField TOP_CLASSES
  • Method Details

    • fromXContent

      public static ParsedInference fromXContent(org.elasticsearch.xcontent.XContentParser parser, String name)
    • getValue

      public Object getValue()
    • getFeatureImportance

      public List<FeatureImportance> getFeatureImportance()
    • getTopClasses

      public List<TopClassEntry> getTopClasses()
    • getWarning

      public String getWarning()
    • doXContentBody

      protected org.elasticsearch.xcontent.XContentBuilder doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      doXContentBody in class org.elasticsearch.search.aggregations.ParsedAggregation
      Throws:
      IOException
    • getType

      public String getType()