Class CategoryDefinition
- java.lang.Object
-
- org.elasticsearch.client.ml.job.results.CategoryDefinition
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class CategoryDefinition extends Object implements ToXContentObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static ParseFieldCATEGORY_IDstatic ParseFieldEXAMPLESstatic ParseFieldGROK_PATTERNstatic ParseFieldMAX_MATCHING_LENGTHstatic ConstructingObjectParser<CategoryDefinition,Void>PARSERstatic ParseFieldREGEXstatic ParseFieldRESULTS_FIELDstatic ParseFieldTERMSstatic ParseFieldTYPE-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)longgetCategoryId()List<String>getExamples()StringgetGrokPattern()StringgetJobId()longgetMaxMatchingLength()StringgetRegex()StringgetTerms()inthashCode()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
TYPE
public static final ParseField TYPE
-
CATEGORY_ID
public static final ParseField CATEGORY_ID
-
TERMS
public static final ParseField TERMS
-
REGEX
public static final ParseField REGEX
-
MAX_MATCHING_LENGTH
public static final ParseField MAX_MATCHING_LENGTH
-
EXAMPLES
public static final ParseField EXAMPLES
-
GROK_PATTERN
public static final ParseField GROK_PATTERN
-
RESULTS_FIELD
public static final ParseField RESULTS_FIELD
-
PARSER
public static final ConstructingObjectParser<CategoryDefinition,Void> PARSER
-
-
Method Detail
-
getJobId
public String getJobId()
-
getCategoryId
public long getCategoryId()
-
getTerms
public String getTerms()
-
getRegex
public String getRegex()
-
getMaxMatchingLength
public long getMaxMatchingLength()
-
getGrokPattern
public String getGrokPattern()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-