Class ParsedInference
java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.client.analytics.ParsedInference
- All Implemented Interfaces:
Aggregation
,org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentFragment
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
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
Modifier and TypeFieldDescriptionstatic 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 TypeMethodDescriptionprotected org.elasticsearch.xcontent.XContentBuilder
doXContentBody
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) static ParsedInference
fromXContent
(org.elasticsearch.xcontent.XContentParser parser, String name) getType()
getValue()
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
-
getFeatureImportance
-
getTopClasses
-
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 classParsedAggregation
- Throws:
IOException
-
getType
-