Class DataframeAnalysis
java.lang.Object
co.elastic.clients.elasticsearch.ml.DataframeAnalysis
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<DataframeAnalysis.Kind,java.lang.Object>
@JsonpDeserializable public class DataframeAnalysis extends java.lang.Object implements TaggedUnion<DataframeAnalysis.Kind,java.lang.Object>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataframeAnalysis.Builder
static class
DataframeAnalysis.Kind
DataframeAnalysis
variant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<DataframeAnalysis>
_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description DataframeAnalysis(DataframeAnalysisVariant value)
-
Method Summary
Modifier and Type Method Description java.lang.Object
_get()
DataframeAnalysis.Kind
_kind()
Get the of the kind of variant held by this object.DataframeAnalysisClassification
classification()
Get theclassification
variant value.boolean
isClassification()
Is this variant instance of kindclassification
?boolean
isOutlierDetection()
Is this variant instance of kindoutlier_detection
?boolean
isRegression()
Is this variant instance of kindregression
?static DataframeAnalysis
of(java.util.function.Function<DataframeAnalysis.Builder,ObjectBuilder<DataframeAnalysis>> fn)
DataframeAnalysisOutlierDetection
outlierDetection()
Get theoutlier_detection
variant value.DataframeAnalysisRegression
regression()
Get theregression
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupDataframeAnalysisDeserializer(ObjectDeserializer<DataframeAnalysis.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
DataframeAnalysis
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<DataframeAnalysis.Kind,java.lang.Object>
- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<DataframeAnalysis.Kind,java.lang.Object>
-
of
public static DataframeAnalysis of(java.util.function.Function<DataframeAnalysis.Builder,ObjectBuilder<DataframeAnalysis>> fn) -
isClassification
public boolean isClassification()Is this variant instance of kindclassification
? -
classification
Get theclassification
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theclassification
kind.
-
isOutlierDetection
public boolean isOutlierDetection()Is this variant instance of kindoutlier_detection
? -
outlierDetection
Get theoutlier_detection
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theoutlier_detection
kind.
-
isRegression
public boolean isRegression()Is this variant instance of kindregression
? -
regression
Get theregression
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theregression
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupDataframeAnalysisDeserializer
protected static void setupDataframeAnalysisDeserializer(ObjectDeserializer<DataframeAnalysis.Builder> op)
-