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 class
DataframeEvaluation.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<DataframeEvaluation>
_DESERIALIZER
static java.lang.String
CLASSIFICATION
static java.lang.String
OUTLIER_DETECTION
static java.lang.String
REGRESSION
-
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.DataframeEvaluationClassification
classification()
Get theclassification
variant value.DataframeEvaluationOutlierDetection
outlierDetection()
Get theoutlier_detection
variant value.DataframeEvaluationRegression
regression()
Get theregression
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupDataframeEvaluationDeserializer(DelegatingDeserializer<DataframeEvaluation.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:TaggedUnion
Get the of the type of the variant held by this union object.- Specified by:
_type
in interfaceTaggedUnion<java.lang.Object>
- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<java.lang.Object>
-
classification
Get theclassification
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theclassification
kind.
-
outlierDetection
Get theoutlier_detection
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theoutlier_detection
kind.
-
regression
Get theregression
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theregression
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupDataframeEvaluationDeserializer
protected static void setupDataframeEvaluationDeserializer(DelegatingDeserializer<DataframeEvaluation.Builder> op)
-