java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.action.search.ClearScrollResponse
- All Implemented Interfaces:
- Writeable,- StatusToXContentObject,- RefCounted,- ToXContent,- ToXContentObject
- Direct Known Subclasses:
- ClosePointInTimeResponse
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.action.ActionResponseActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ClosePointInTimeResponsefromXContent(XContentParser parser) Parse the clear scroll response body into a newClearScrollResponseobjectintbooleanstatus()Returns the REST status to make sure it is returned correctlytoXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessagedecRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObjectisFragment
- 
Constructor Details- 
ClearScrollResponsepublic ClearScrollResponse(boolean succeeded, int numFreed) 
- 
ClearScrollResponse- Throws:
- IOException
 
 
- 
- 
Method Details- 
isSucceededpublic boolean isSucceeded()- Returns:
- Whether the attempt to clear a scroll was successful.
 
- 
getNumFreedpublic int getNumFreed()- Returns:
- The number of search contexts that were freed. If this is 0the assumption can be made, that the scroll id specified in the request did not exist. (never existed, was expired, or completely consumed)
 
- 
statusDescription copied from interface:StatusToXContentObjectReturns the REST status to make sure it is returned correctly- Specified by:
- statusin interface- StatusToXContentObject
 
- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
fromXContentParse the clear scroll response body into a newClearScrollResponseobject- Throws:
- IOException
 
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
 
-