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 classDataframeAnalysis.Builderstatic classDataframeAnalysis.KindDataframeAnalysisvariant 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.DataframeAnalysisClassificationclassification()Get theclassificationvariant value.booleanisClassification()Is this variant instance of kindclassification?booleanisOutlierDetection()Is this variant instance of kindoutlier_detection?booleanisRegression()Is this variant instance of kindregression?static DataframeAnalysisof(java.util.function.Function<DataframeAnalysis.Builder,ObjectBuilder<DataframeAnalysis>> fn)DataframeAnalysisOutlierDetectionoutlierDetection()Get theoutlier_detectionvariant value.DataframeAnalysisRegressionregression()Get theregressionvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupDataframeAnalysisDeserializer(ObjectDeserializer<DataframeAnalysis.Builder> op)java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
DataframeAnalysis
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<DataframeAnalysis.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_getin 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 theclassificationvariant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException- if the current variant is not of theregressionkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupDataframeAnalysisDeserializer
protected static void setupDataframeAnalysisDeserializer(ObjectDeserializer<DataframeAnalysis.Builder> op)
-