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
FieldsModifier and TypeFieldDescriptionprotected final longstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionlongcount()org.elasticsearch.xcontent.XContentBuildertoXContent(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, waitMethods 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:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
count
public long count()
-