Package org.elasticsearch.client.ml
Class GetCategoriesResponse
java.lang.Object
org.elasticsearch.client.ml.AbstractResultResponse<CategoryDefinition>
org.elasticsearch.client.ml.GetCategoriesResponse
- All Implemented Interfaces:
ToXContent
,ToXContentObject
public class GetCategoriesResponse extends AbstractResultResponse<CategoryDefinition>
A response containing the requested categories
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
Fields Modifier and Type Field Description static ParseField
CATEGORIES
static 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(XContentParser parser)
int
hashCode()
-
Field Details
-
Method Details
-
fromXContent
- 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
-