Module org.elasticsearch.xcore
Class CategoryDefinition
java.lang.Object
org.elasticsearch.xpack.core.ml.job.results.CategoryDefinition
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ConstructingObjectParser<CategoryDefinition, Void> static final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ConstructingObjectParser<CategoryDefinition, Void> static final ParseFieldstatic final ParseFieldLegacy type, now used only as a discriminant in the document IDFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExample(String example) booleanlonggetId()getJobId()longlonglong[]getRegex()getTerms()inthashCode()voidsetCategoryId(long categoryId) voidsetExamples(Collection<String> examples) voidsetGrokPattern(String grokPattern) voidsetMaxMatchingLength(long maxMatchingLength) voidsetNumMatches(long numMatches) voidsetPartitionFieldName(String partitionFieldName) voidsetPartitionFieldValue(String partitionFieldValue) voidsetPreferredToCategories(long[] preferredToCategories) voidvoidtoXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
TYPE
Legacy type, now used only as a discriminant in the document ID -
CATEGORY_ID
-
PARTITION_FIELD_NAME
-
PARTITION_FIELD_VALUE
-
TERMS
-
REGEX
-
MAX_MATCHING_LENGTH
-
EXAMPLES
-
GROK_PATTERN
-
NUM_MATCHES
-
PREFERRED_TO_CATEGORIES
-
MLCATEGORY
-
RESULTS_FIELD
-
STRICT_PARSER
-
LENIENT_PARSER
-
-
Constructor Details
-
CategoryDefinition
-
CategoryDefinition
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getJobId
-
getId
-
getCategoryId
public long getCategoryId() -
setCategoryId
public void setCategoryId(long categoryId) -
getPartitionFieldName
-
setPartitionFieldName
-
getPartitionFieldValue
-
setPartitionFieldValue
-
getTerms
-
setTerms
-
getRegex
-
setRegex
-
getMaxMatchingLength
public long getMaxMatchingLength() -
setMaxMatchingLength
public void setMaxMatchingLength(long maxMatchingLength) -
getExamples
-
setExamples
-
addExample
-
getGrokPattern
-
setGrokPattern
-
getPreferredToCategories
public long[] getPreferredToCategories() -
setPreferredToCategories
public void setPreferredToCategories(long[] preferredToCategories) -
getNumMatches
public long getNumMatches() -
setNumMatches
public void setNumMatches(long numMatches) -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-