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
  • 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

      public String getJobId()
    • getCategoryId

      public long getCategoryId()
    • getPartitionFieldName

      public String getPartitionFieldName()
    • setPartitionFieldName

      public void setPartitionFieldName(String partitionFieldName)
    • getPartitionFieldValue

      public String getPartitionFieldValue()
    • setPartitionFieldValue

      public void setPartitionFieldValue(String partitionFieldValue)
    • getTerms

      public String getTerms()
    • getRegex

      public String getRegex()
    • getMaxMatchingLength

      public long getMaxMatchingLength()
    • getExamples

      public List<String> getExamples()
    • getGrokPattern

      public String getGrokPattern()
    • getNumMatches

      public long getNumMatches()
    • setNumMatches

      public void setNumMatches(long numMatches)
    • getPreferredToCategories

      public List<Long> getPreferredToCategories()
    • setPreferredToCategories

      public void setPreferredToCategories(List<Long> preferredToCategories)
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object