Class DataframeEvaluation
java.lang.Object
co.elastic.clients.elasticsearch.ml.DataframeEvaluation
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<java.lang.Object>
@JsonpDeserializable public class DataframeEvaluation extends java.lang.Object implements TaggedUnion<java.lang.Object>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataframeEvaluation.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<DataframeEvaluation>_DESERIALIZERstatic java.lang.StringCLASSIFICATIONstatic java.lang.StringOUTLIER_DETECTIONstatic java.lang.StringREGRESSION -
Constructor Summary
Constructors Constructor Description DataframeEvaluation(DataframeEvaluationVariant value)DataframeEvaluation(ObjectBuilder<T> builder)DataframeEvaluation(java.util.function.Function<DataframeEvaluation.Builder,DataframeEvaluation.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()java.lang.String_type()Get the of the type of the variant held by this union object.DataframeEvaluationClassificationclassification()Get theclassificationvariant value.DataframeEvaluationOutlierDetectionoutlierDetection()Get theoutlier_detectionvariant value.DataframeEvaluationRegressionregression()Get theregressionvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupDataframeEvaluationDeserializer(DelegatingDeserializer<DataframeEvaluation.Builder> op)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
CLASSIFICATION
public static final java.lang.String CLASSIFICATION- See Also:
- Constant Field Values
-
OUTLIER_DETECTION
public static final java.lang.String OUTLIER_DETECTION- See Also:
- Constant Field Values
-
REGRESSION
public static final java.lang.String REGRESSION- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
DataframeEvaluation
-
DataframeEvaluation
-
DataframeEvaluation
public DataframeEvaluation(java.util.function.Function<DataframeEvaluation.Builder,DataframeEvaluation.Builder> fn)
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<java.lang.Object>- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<java.lang.Object>
-
classification
Get theclassificationvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theclassificationkind.
-
outlierDetection
Get theoutlier_detectionvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theoutlier_detectionkind.
-
regression
Get theregressionvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theregressionkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupDataframeEvaluationDeserializer
protected static void setupDataframeEvaluationDeserializer(DelegatingDeserializer<DataframeEvaluation.Builder> op)
-