Package org.elasticsearch.client.ml
Class AbstractResultResponse<T extends org.elasticsearch.common.xcontent.ToXContent>
java.lang.Object
org.elasticsearch.client.ml.AbstractResultResponse<T>
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.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.common.xcontent.ToXContent>
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentObject
Abstract class that provides a list of results and their count.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params -
Field Summary
Fields Modifier and Type Field Description protected longcountstatic org.elasticsearch.common.ParseFieldCOUNTprotected java.util.List<T>resultsFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and Type Method Description longcount()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
COUNT
public static final org.elasticsearch.common.ParseField COUNT -
results
-
count
protected final long count
-
-
Method Details
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
count
public long count()
-