Class CategoryDefinition

java.lang.Object
org.elasticsearch.xpack.core.ml.job.results.CategoryDefinition
All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject

public class CategoryDefinition extends Object implements ToXContentObject, Writeable
  • Field Details

  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getJobId

      public String getJobId()
    • getId

      public String getId()
    • getCategoryId

      public long getCategoryId()
    • setCategoryId

      public void setCategoryId(long categoryId)
    • getPartitionFieldName

      public String getPartitionFieldName()
    • setPartitionFieldName

      public void setPartitionFieldName(String partitionFieldName)
    • getPartitionFieldValue

      public String getPartitionFieldValue()
    • setPartitionFieldValue

      public void setPartitionFieldValue(String partitionFieldValue)
    • getTerms

      public String getTerms()
    • setTerms

      public void setTerms(String terms)
    • getRegex

      public String getRegex()
    • setRegex

      public void setRegex(String regex)
    • getMaxMatchingLength

      public long getMaxMatchingLength()
    • setMaxMatchingLength

      public void setMaxMatchingLength(long maxMatchingLength)
    • getExamples

      public List<String> getExamples()
    • setExamples

      public void setExamples(Collection<String> examples)
    • addExample

      public void addExample(String example)
    • getGrokPattern

      public String getGrokPattern()
    • setGrokPattern

      public void setGrokPattern(String grokPattern)
    • 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:
      toXContent in interface ToXContent
      Throws:
      IOException
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object