Class DataframeEvaluation
java.lang.Object
co.elastic.clients.elasticsearch.ml.DataframeEvaluation
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<DataframeEvaluation.Kind,Object>
@JsonpDeserializable
public class DataframeEvaluation
extends Object
implements TaggedUnion<DataframeEvaluation.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final DataframeEvaluation.Kind_kind()Get the of the kind of variant held by this object.Get theclassificationvariant value.booleanIs this variant instance of kindclassification?booleanIs this variant instance of kindoutlier_detection?booleanIs this variant instance of kindregression?static DataframeEvaluationGet theoutlier_detectionvariant value.Get theregressionvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
DataframeEvaluation
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<DataframeEvaluation.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<DataframeEvaluation.Kind,Object>
-
of
public static DataframeEvaluation of(Function<DataframeEvaluation.Builder, ObjectBuilder<DataframeEvaluation>> fn) -
isClassification
public boolean isClassification()Is this variant instance of kindclassification? -
classification
Get theclassificationvariant value.- Throws:
IllegalStateException- if the current variant is not of theclassificationkind.
-
isOutlierDetection
public boolean isOutlierDetection()Is this variant instance of kindoutlier_detection? -
outlierDetection
Get theoutlier_detectionvariant value.- Throws:
IllegalStateException- if the current variant is not of theoutlier_detectionkind.
-
isRegression
public boolean isRegression()Is this variant instance of kindregression? -
regression
Get theregressionvariant value.- Throws:
IllegalStateException- if the current variant is not of theregressionkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupDataframeEvaluationDeserializer
protected static void setupDataframeEvaluationDeserializer(ObjectDeserializer<DataframeEvaluation.Builder> op)
-