Module org.elasticsearch.xcore
Class TermsEnumResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.action.support.broadcast.BaseBroadcastResponse
org.elasticsearch.action.support.broadcast.BroadcastResponse
org.elasticsearch.xpack.core.termsenum.action.TermsEnumResponse
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
The response of the _terms_enum action.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.elasticsearch.action.support.broadcast.BaseBroadcastResponse
EMPTYFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCEDFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionTermsEnumResponse(List<String> terms, int totalShards, int successfulShards, int failedShards, List<DefaultShardOperationFailedException> shardFailures, boolean complete) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCustomXContentFields(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) getTerms()The list of terms.booleanvoidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastResponse
toXContentMethods inherited from class org.elasticsearch.action.support.broadcast.BaseBroadcastResponse
getFailedShards, getShardFailures, getStatus, getSuccessfulShards, getTotalShardsMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRefMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
TERMS_FIELD
- See Also:
-
COMPLETE_FIELD
- See Also:
-
-
Constructor Details
-
TermsEnumResponse
public TermsEnumResponse(List<String> terms, int totalShards, int successfulShards, int failedShards, List<DefaultShardOperationFailedException> shardFailures, boolean complete)
-
-
Method Details
-
getTerms
The list of terms. -
isComplete
public boolean isComplete() -
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseBroadcastResponse- Throws:
IOException
-
addCustomXContentFields
protected void addCustomXContentFields(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Overrides:
addCustomXContentFieldsin classBroadcastResponse- Throws:
IOException
-