Package org.elasticsearch.client.ml
Class AbstractResultResponse<T extends ToXContent>
- java.lang.Object
-
- org.elasticsearch.client.ml.AbstractResultResponse<T>
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
- Direct Known Subclasses:
GetBucketsResponse,GetCalendarEventsResponse,GetCalendarsResponse,GetCategoriesResponse,GetDatafeedResponse,GetDatafeedStatsResponse,GetFiltersResponse,GetInfluencersResponse,GetJobResponse,GetJobStatsResponse,GetModelSnapshotsResponse,GetOverallBucketsResponse,GetRecordsResponse
public abstract class AbstractResultResponse<T extends ToXContent> extends java.lang.Object implements 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
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description protected longcountstatic ParseFieldCOUNTprotected java.util.List<T>results-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description longcount()XContentBuildertoXContent(XContentBuilder builder, 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.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
COUNT
public static final ParseField COUNT
-
results
protected final java.util.List<T extends ToXContent> results
-
count
protected final long count
-
-
Method Detail
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
count
public long count()
-
-