Class PredictionResult
- java.lang.Object
-
- org.opensearch.client.opensearch.ml.PredictionResult
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<PredictionResult.Builder,PredictionResult>
@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class PredictionResult extends java.lang.Object implements PlainJsonSerializable, ToCopyableBuilder<PredictionResult.Builder,PredictionResult>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPredictionResult.BuilderBuilder forPredictionResult.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PredictionResult>_DESERIALIZERJson deserializer forPredictionResult
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PredictionResult.Builderbuilder()java.util.List<ColumnMeta>columnMetas()API name:column_metasbooleanequals(java.lang.Object o)inthashCode()static PredictionResultof(java.util.function.Function<PredictionResult.Builder,ObjectBuilder<PredictionResult>> fn)java.util.List<Rows>rows()API name:rowsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPredictionResultDeserializer(ObjectDeserializer<PredictionResult.Builder> op)PredictionResult.BuildertoBuilder()Create a new builderToCopyableBuilderthat is initialised with the current state of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Methods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<PredictionResult> _DESERIALIZER
Json deserializer forPredictionResult
-
-
Method Detail
-
of
public static PredictionResult of(java.util.function.Function<PredictionResult.Builder,ObjectBuilder<PredictionResult>> fn)
-
columnMetas
@Nonnull public final java.util.List<ColumnMeta> columnMetas()
API name:column_metas
-
rows
@Nonnull public final java.util.List<Rows> rows()
API name:rows
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
toBuilder
@Nonnull public PredictionResult.Builder toBuilder()
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PredictionResult.Builder,PredictionResult>- Returns:
- a new builder instance.
-
builder
@Nonnull public static PredictionResult.Builder builder()
-
setupPredictionResultDeserializer
protected static void setupPredictionResultDeserializer(ObjectDeserializer<PredictionResult.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-