Class DataframeAnalytics.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.DataframeAnalytics.Builder
- All Implemented Interfaces:
ObjectBuilder<DataframeAnalytics>
- Enclosing class:
- DataframeAnalytics
public static class DataframeAnalytics.Builder extends java.lang.Object implements ObjectBuilder<DataframeAnalytics>
Builder for
DataframeAnalytics.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description DataframeAnalytics.BuilderaddProgress(DataframeAnalyticsStatsProgress value)Add a value toprogress(List), creating the list if needed.DataframeAnalytics.BuilderaddProgress(java.util.function.Function<DataframeAnalyticsStatsProgress.Builder,ObjectBuilder<DataframeAnalyticsStatsProgress>> fn)Add a value toprogress(List), creating the list if needed.DataframeAnalytics.BuilderanalysisStats(DataframeAnalyticsStats value)An object containing information about the analysis job.DataframeAnalytics.BuilderanalysisStats(java.util.function.Function<DataframeAnalyticsStats.Builder,ObjectBuilder<DataframeAnalyticsStats>> fn)An object containing information about the analysis job.DataframeAnalytics.BuilderassignmentExplanation(java.lang.String value)For running jobs only, contains messages relating to the selection of a node to run the job.DataframeAnalyticsbuild()Builds aDataframeAnalytics.DataframeAnalytics.BuilderdataCounts(DataframeAnalyticsStatsDataCounts value)Required - An object that provides counts for the quantity of documents skipped, used in training, or available for testing.DataframeAnalytics.BuilderdataCounts(java.util.function.Function<DataframeAnalyticsStatsDataCounts.Builder,ObjectBuilder<DataframeAnalyticsStatsDataCounts>> fn)Required - An object that provides counts for the quantity of documents skipped, used in training, or available for testing.DataframeAnalytics.Builderid(java.lang.String value)Required - The unique identifier of the data frame analytics job.DataframeAnalytics.BuildermemoryUsage(DataframeAnalyticsStatsMemoryUsage value)Required - An object describing memory usage of the analytics.DataframeAnalytics.BuildermemoryUsage(java.util.function.Function<DataframeAnalyticsStatsMemoryUsage.Builder,ObjectBuilder<DataframeAnalyticsStatsMemoryUsage>> fn)Required - An object describing memory usage of the analytics.DataframeAnalytics.Buildernode(NodeAttributes value)Contains properties for the node that runs the job.DataframeAnalytics.Buildernode(java.util.function.Function<NodeAttributes.Builder,ObjectBuilder<NodeAttributes>> fn)Contains properties for the node that runs the job.DataframeAnalytics.Builderprogress(DataframeAnalyticsStatsProgress... value)Required - The progress report of the data frame analytics job by phase.DataframeAnalytics.Builderprogress(java.util.function.Function<DataframeAnalyticsStatsProgress.Builder,ObjectBuilder<DataframeAnalyticsStatsProgress>> fn)Setprogress(List)to a singleton list.DataframeAnalytics.Builderprogress(java.util.List<DataframeAnalyticsStatsProgress> value)Required - The progress report of the data frame analytics job by phase.DataframeAnalytics.Builderstate(DataframeState value)Required - The status of the data frame analytics job, which can be one of the following values: failed, started, starting, stopping, stopped.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
analysisStats
An object containing information about the analysis job.API name:
analysis_stats -
analysisStats
public DataframeAnalytics.Builder analysisStats(java.util.function.Function<DataframeAnalyticsStats.Builder,ObjectBuilder<DataframeAnalyticsStats>> fn)An object containing information about the analysis job.API name:
analysis_stats -
assignmentExplanation
For running jobs only, contains messages relating to the selection of a node to run the job.API name:
assignment_explanation -
dataCounts
Required - An object that provides counts for the quantity of documents skipped, used in training, or available for testing.API name:
data_counts -
dataCounts
public DataframeAnalytics.Builder dataCounts(java.util.function.Function<DataframeAnalyticsStatsDataCounts.Builder,ObjectBuilder<DataframeAnalyticsStatsDataCounts>> fn)Required - An object that provides counts for the quantity of documents skipped, used in training, or available for testing.API name:
data_counts -
id
Required - The unique identifier of the data frame analytics job.API name:
id -
memoryUsage
Required - An object describing memory usage of the analytics. It is present only after the job is started and memory usage is reported.API name:
memory_usage -
memoryUsage
public DataframeAnalytics.Builder memoryUsage(java.util.function.Function<DataframeAnalyticsStatsMemoryUsage.Builder,ObjectBuilder<DataframeAnalyticsStatsMemoryUsage>> fn)Required - An object describing memory usage of the analytics. It is present only after the job is started and memory usage is reported.API name:
memory_usage -
node
Contains properties for the node that runs the job. This information is available only for running jobs.API name:
node -
node
public DataframeAnalytics.Builder node(java.util.function.Function<NodeAttributes.Builder,ObjectBuilder<NodeAttributes>> fn)Contains properties for the node that runs the job. This information is available only for running jobs.API name:
node -
progress
Required - The progress report of the data frame analytics job by phase.API name:
progress -
progress
Required - The progress report of the data frame analytics job by phase.API name:
progress -
addProgress
Add a value toprogress(List), creating the list if needed. -
progress
public DataframeAnalytics.Builder progress(java.util.function.Function<DataframeAnalyticsStatsProgress.Builder,ObjectBuilder<DataframeAnalyticsStatsProgress>> fn)Setprogress(List)to a singleton list. -
addProgress
public DataframeAnalytics.Builder addProgress(java.util.function.Function<DataframeAnalyticsStatsProgress.Builder,ObjectBuilder<DataframeAnalyticsStatsProgress>> fn)Add a value toprogress(List), creating the list if needed. -
state
Required - The status of the data frame analytics job, which can be one of the following values: failed, started, starting, stopping, stopped.API name:
state -
build
Builds aDataframeAnalytics.- Specified by:
buildin interfaceObjectBuilder<DataframeAnalytics>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-