Class AnalysisLimits
java.lang.Object
org.elasticsearch.client.ml.job.config.AnalysisLimits
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class AnalysisLimits
extends Object
implements org.elasticsearch.common.xcontent.ToXContentObject
Analysis limits for autodetect. In particular,
this is a collection of parameters that allow limiting
the resources used by the job.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldSerialisation field namesstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<AnalysisLimits,Void>Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionAnalysisLimits(Long categorizationExamplesLimit)AnalysisLimits(Long modelMemoryLimit, Long categorizationExamplesLimit) -
Method Summary
Modifier and TypeMethodDescriptionbooleanOverridden equality testGets the limit to the number of examples that are stored per categoryMaximum size of the model in MB before the anomaly detector will drop new samples to prevent the model using any more memory.inthashCode()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
MODEL_MEMORY_LIMIT
public static final org.elasticsearch.common.xcontent.ParseField MODEL_MEMORY_LIMITSerialisation field names -
CATEGORIZATION_EXAMPLES_LIMIT
public static final org.elasticsearch.common.xcontent.ParseField CATEGORIZATION_EXAMPLES_LIMIT -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<AnalysisLimits,Void> PARSER
-
-
Constructor Details
-
AnalysisLimits
-
AnalysisLimits
-
-
Method Details
-
getModelMemoryLimit
Maximum size of the model in MB before the anomaly detector will drop new samples to prevent the model using any more memory.- Returns:
- The set memory limit or
nullif not set
-
getCategorizationExamplesLimit
Gets the limit to the number of examples that are stored per category- Returns:
- the limit or
nullif not set
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
equals
Overridden equality test -
hashCode
public int hashCode()
-