Package org.elasticsearch.client.ml
Class AbstractResultResponse<T extends ToXContent>
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.action.ActionResponse
-
- org.elasticsearch.client.ml.AbstractResultResponse<T>
-
- All Implemented Interfaces:
Streamable
,Writeable
,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 ActionResponse implements ToXContentObject
Abstract class that provides a list of results and their count.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected long
count
static ParseField
COUNT
protected java.util.List<T>
results
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description long
count()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
-
Methods inherited from class org.elasticsearch.action.ActionResponse
readFrom, writeTo
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
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:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
count
public long count()
-
-