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,RefCounted,ToXContent,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
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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) TermsEnumResponse(List<String> terms, int totalShards, int successfulShards, int failedShards, List<DefaultShardOperationFailedException> shardFailures, boolean complete, ResolvedIndexExpressions resolvedLocally) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCustomXContentFields(XContentBuilder builder, ToXContent.Params params) Returns the resolved index expressions from this project, or null if not requested.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, getTotalShards, getUnavailableShardsMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, 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) -
TermsEnumResponse
public TermsEnumResponse(List<String> terms, int totalShards, int successfulShards, int failedShards, List<DefaultShardOperationFailedException> shardFailures, boolean complete, @Nullable ResolvedIndexExpressions resolvedLocally)
-
-
Method Details
-
getTerms
The list of terms. -
isComplete
public boolean isComplete() -
getResolvedLocally
Returns the resolved index expressions from this project, or null if not requested. Used by the coordinating project during cross-project search to validate index resolution. -
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseBroadcastResponse- Throws:
IOException
-
addCustomXContentFields
protected void addCustomXContentFields(XContentBuilder builder, ToXContent.Params params) throws IOException - Overrides:
addCustomXContentFieldsin classBroadcastResponse- Throws:
IOException
-