Package org.elasticsearch.client.ml
Class GetCategoriesResponse
java.lang.Object
org.elasticsearch.client.ml.AbstractResultResponse<CategoryDefinition>
org.elasticsearch.client.ml.GetCategoriesResponse
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public class GetCategoriesResponse extends AbstractResultResponse<CategoryDefinition>
A response containing the requested categories
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseField
CATEGORIES
static org.elasticsearch.common.xcontent.ConstructingObjectParser<GetCategoriesResponse,java.lang.Void>
PARSER
Fields inherited from class org.elasticsearch.client.ml.AbstractResultResponse
count, COUNT, results
-
Method Summary
Modifier and Type Method Description java.util.List<CategoryDefinition>
categories()
The retrieved categoriesboolean
equals(java.lang.Object obj)
static GetCategoriesResponse
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
int
hashCode()
-
Field Details
-
CATEGORIES
public static final org.elasticsearch.common.ParseField CATEGORIES -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<GetCategoriesResponse,java.lang.Void> PARSER
-
-
Method Details
-
fromXContent
public static GetCategoriesResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
categories
The retrieved categories- Returns:
- the retrieved categories
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-