Class CategoryDefinition
java.lang.Object
org.elasticsearch.client.ml.job.results.CategoryDefinition
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentObject
public class CategoryDefinition
extends Object
implements org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ConstructingObjectParser<CategoryDefinition,
Void> static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
getJobId()
long
long
getRegex()
getTerms()
int
hashCode()
void
setNumMatches
(long numMatches) void
setPartitionFieldName
(String partitionFieldName) void
setPartitionFieldValue
(String partitionFieldValue) void
setPreferredToCategories
(List<Long> preferredToCategories) org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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.xcontent.ToXContentObject
isFragment
-
Field Details
-
TYPE
public static final org.elasticsearch.xcontent.ParseField TYPE -
CATEGORY_ID
public static final org.elasticsearch.xcontent.ParseField CATEGORY_ID -
PARTITION_FIELD_NAME
public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_NAME -
PARTITION_FIELD_VALUE
public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_VALUE -
TERMS
public static final org.elasticsearch.xcontent.ParseField TERMS -
REGEX
public static final org.elasticsearch.xcontent.ParseField REGEX -
MAX_MATCHING_LENGTH
public static final org.elasticsearch.xcontent.ParseField MAX_MATCHING_LENGTH -
EXAMPLES
public static final org.elasticsearch.xcontent.ParseField EXAMPLES -
GROK_PATTERN
public static final org.elasticsearch.xcontent.ParseField GROK_PATTERN -
NUM_MATCHES
public static final org.elasticsearch.xcontent.ParseField NUM_MATCHES -
PREFERRED_TO_CATEGORIES
public static final org.elasticsearch.xcontent.ParseField PREFERRED_TO_CATEGORIES -
RESULTS_FIELD
public static final org.elasticsearch.xcontent.ParseField RESULTS_FIELD -
PARSER
public static final org.elasticsearch.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.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-