Class PredictionResult.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.PredictionResult.Builder
- All Implemented Interfaces:
CopyableBuilder<PredictionResult.Builder,,PredictionResult> MutableBuilder<PredictionResult.Builder,,PredictionResult> ObjectBuilder<PredictionResult>
- Enclosing class:
PredictionResult
public static class PredictionResult.Builder
extends ObjectBuilderBase
implements CopyableBuilder<PredictionResult.Builder,PredictionResult>
Builder for
PredictionResult.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPredictionResult.final PredictionResult.BuilderAPI name:column_metasfinal PredictionResult.BuildercolumnMetas(List<ColumnMeta> list) API name:column_metasfinal PredictionResult.BuildercolumnMetas(ColumnMeta value, ColumnMeta... values) API name:column_metascopy()Create a new builderCopyableBuilderthat is a copy of this one.final PredictionResult.BuilderAPI name:rowsfinal PredictionResult.BuilderAPI name:rowsfinal PredictionResult.BuilderAPI name:rowsMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<PredictionResult.Builder,PredictionResult> - Returns:
- a new builder instance.
-
columnMetas
API name:column_metasAdds all elements of
listtocolumnMetas. -
columnMetas
API name:column_metasAdds one or more values to
columnMetas. -
columnMetas
@Nonnull public final PredictionResult.Builder columnMetas(Function<ColumnMeta.Builder, ObjectBuilder<ColumnMeta>> fn) API name:column_metasAdds a value to
columnMetasusing a builder lambda. -
rows
API name:rowsAdds all elements of
listtorows. -
rows
API name:rowsAdds one or more values to
rows. -
rows
API name:rowsAdds a value to
rowsusing a builder lambda. -
build
Builds aPredictionResult.- Specified by:
buildin interfaceObjectBuilder<PredictionResult>- Throws:
NullPointerException- if some of the required fields are null.
-