Class CategoryDefinition
java.lang.Object
org.elasticsearch.client.ml.job.results.CategoryDefinition
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class CategoryDefinition
extends Object
implements org.elasticsearch.common.xcontent.ToXContentObject
-
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.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<CategoryDefinition,Void>static org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetJobId()longlonggetRegex()getTerms()inthashCode()voidsetNumMatches(long numMatches)voidsetPartitionFieldName(String partitionFieldName)voidsetPartitionFieldValue(String partitionFieldValue)voidsetPreferredToCategories(List<Long> preferredToCategories)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
-
TYPE
public static final org.elasticsearch.common.xcontent.ParseField TYPE -
CATEGORY_ID
public static final org.elasticsearch.common.xcontent.ParseField CATEGORY_ID -
PARTITION_FIELD_NAME
public static final org.elasticsearch.common.xcontent.ParseField PARTITION_FIELD_NAME -
PARTITION_FIELD_VALUE
public static final org.elasticsearch.common.xcontent.ParseField PARTITION_FIELD_VALUE -
TERMS
public static final org.elasticsearch.common.xcontent.ParseField TERMS -
REGEX
public static final org.elasticsearch.common.xcontent.ParseField REGEX -
MAX_MATCHING_LENGTH
public static final org.elasticsearch.common.xcontent.ParseField MAX_MATCHING_LENGTH -
EXAMPLES
public static final org.elasticsearch.common.xcontent.ParseField EXAMPLES -
GROK_PATTERN
public static final org.elasticsearch.common.xcontent.ParseField GROK_PATTERN -
NUM_MATCHES
public static final org.elasticsearch.common.xcontent.ParseField NUM_MATCHES -
PREFERRED_TO_CATEGORIES
public static final org.elasticsearch.common.xcontent.ParseField PREFERRED_TO_CATEGORIES -
RESULTS_FIELD
public static final org.elasticsearch.common.xcontent.ParseField RESULTS_FIELD -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<CategoryDefinition,Void> PARSER
-
-
Method Details
-
getJobId
-
getCategoryId
public long getCategoryId() -
getPartitionFieldName
-
setPartitionFieldName
-
getPartitionFieldValue
-
setPartitionFieldValue
-
getTerms
-
getRegex
-
getMaxMatchingLength
public long getMaxMatchingLength() -
getExamples
-
getGrokPattern
-
getNumMatches
public long getNumMatches() -
setNumMatches
public void setNumMatches(long numMatches) -
getPreferredToCategories
-
setPreferredToCategories
-
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
-
hashCode
public int hashCode()
-