Package org.elasticsearch.client.ml
Class AbstractResultResponse<T extends org.elasticsearch.xcontent.ToXContent>
java.lang.Object
org.elasticsearch.client.ml.AbstractResultResponse<T>
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentObject
- Direct Known Subclasses:
GetBucketsResponse
,GetCalendarEventsResponse
,GetCalendarsResponse
,GetCategoriesResponse
,GetDatafeedResponse
,GetDatafeedStatsResponse
,GetFiltersResponse
,GetInfluencersResponse
,GetJobResponse
,GetJobStatsResponse
,GetModelSnapshotsResponse
,GetOverallBucketsResponse
,GetRecordsResponse
public abstract class AbstractResultResponse<T extends org.elasticsearch.xcontent.ToXContent>
extends Object
implements org.elasticsearch.xcontent.ToXContentObject
Abstract class that provides a list of results and their count.
-
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 TypeFieldDescriptionprotected final long
static final org.elasticsearch.xcontent.ParseField
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionlong
count()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
COUNT
public static final org.elasticsearch.xcontent.ParseField COUNT -
results
-
count
protected final long count
-
-
Method Details
-
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
-
count
public long count()
-