Module org.elasticsearch.server
Class QueryProfileShardResult
java.lang.Object
org.elasticsearch.search.profile.query.QueryProfileShardResult
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
A container class to hold the profile results for a single shard in the request.
Contains a list of query profiles, a collector tree and a total rewrite tree.
-
Nested Class Summary
Nested 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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionQueryProfileShardResult(List<ProfileResult> queryProfileResults, long rewriteTime, CollectorResult profileCollector, Long vectorOperationsCount) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonginthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
COLLECTOR
- See Also:
-
REWRITE_TIME
- See Also:
-
QUERY_ARRAY
- See Also:
-
VECTOR_OPERATIONS_COUNT
- See Also:
-
-
Constructor Details
-
QueryProfileShardResult
public QueryProfileShardResult(List<ProfileResult> queryProfileResults, long rewriteTime, CollectorResult profileCollector, @Nullable Long vectorOperationsCount) -
QueryProfileShardResult
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getQueryResults
-
getRewriteTime
public long getRewriteTime() -
getCollectorResult
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
getVectorOperationsCount
-