Class EsqlQueryResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.xpack.core.esql.action.EsqlQueryResponse
org.elasticsearch.xpack.esql.action.EsqlQueryResponse
- All Implemented Interfaces:
Closeable,AutoCloseable,Writeable,ChunkedToXContent,ChunkedToXContentObject,org.elasticsearch.core.RefCounted,org.elasticsearch.core.Releasable
public class EsqlQueryResponse
extends EsqlQueryResponse
implements ChunkedToXContentObject, org.elasticsearch.core.Releasable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTYFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionEsqlQueryResponse(List<ColumnInfoImpl> columns, List<Page> pages, long documentsFound, long valuesLoaded, EsqlQueryResponse.Profile profile, boolean columnar, boolean isAsync, EsqlExecutionInfo executionInfo) EsqlQueryResponse(List<ColumnInfoImpl> columns, List<Page> pages, long documentsFound, long valuesLoaded, EsqlQueryResponse.Profile profile, boolean columnar, String asyncExecutionId, boolean isRunning, boolean isAsync, EsqlExecutionInfo executionInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()column(int columnIndex) booleancolumnar()columns()booleandecRef()longbooleaninthashCode()booleanvoidincRef()booleanisAsync()booleanbooleanboolean[]profile()static Writeable.Reader<EsqlQueryResponse> reader(BlockFactory blockFactory) Build a reader for the response.rows()toString()Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) booleanvalues()longvoidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.core.esql.action.EsqlQueryResponse
responseMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Field Details
-
DROP_NULL_COLUMNS_OPTION
- See Also:
-
-
Constructor Details
-
EsqlQueryResponse
public EsqlQueryResponse(List<ColumnInfoImpl> columns, List<Page> pages, long documentsFound, long valuesLoaded, @Nullable EsqlQueryResponse.Profile profile, boolean columnar, @Nullable String asyncExecutionId, boolean isRunning, boolean isAsync, EsqlExecutionInfo executionInfo) -
EsqlQueryResponse
public EsqlQueryResponse(List<ColumnInfoImpl> columns, List<Page> pages, long documentsFound, long valuesLoaded, @Nullable EsqlQueryResponse.Profile profile, boolean columnar, boolean isAsync, EsqlExecutionInfo executionInfo)
-
-
Method Details
-
reader
Build a reader for the response. -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
columns
-
values
-
rows
-
column
-
documentsFound
public long documentsFound()- Returns:
- the number of "documents" we got back from lucene, as input into the compute engine. Note that in this context, we think of things like the result of LuceneMaxOperator as single documents.
-
valuesLoaded
public long valuesLoaded() -
profile
-
columnar
public boolean columnar() -
asyncExecutionId
-
isRunning
public boolean isRunning() -
isAsync
public boolean isAsync() -
isPartial
public boolean isPartial() -
getExecutionInfo
-
toXContentChunked
public Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) - Specified by:
toXContentChunkedin interfaceChunkedToXContent
-
nullColumns
public boolean[] nullColumns() -
equals
-
hashCode
public int hashCode() -
toString
-
incRef
public void incRef()- Specified by:
incRefin interfaceorg.elasticsearch.core.RefCounted- Overrides:
incRefin classTransportMessage
-
tryIncRef
public boolean tryIncRef()- Specified by:
tryIncRefin interfaceorg.elasticsearch.core.RefCounted- Overrides:
tryIncRefin classTransportMessage
-
decRef
public boolean decRef()- Specified by:
decRefin interfaceorg.elasticsearch.core.RefCounted- Overrides:
decRefin classTransportMessage
-
hasReferences
public boolean hasReferences()- Specified by:
hasReferencesin interfaceorg.elasticsearch.core.RefCounted- Overrides:
hasReferencesin classTransportMessage
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable- Overrides:
closein classEsqlQueryResponse
-
responseInternal
- Specified by:
responseInternalin classEsqlQueryResponse
-