Class AsyncExternalSourceOperator.Status
java.lang.Object
org.elasticsearch.xpack.esql.datasources.AsyncExternalSourceOperator.Status
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,CapturingExternalSourceStatus,Operator.Status,ToXContent,ToXContentObject
- Enclosing class:
AsyncExternalSourceOperator
public static class AsyncExternalSourceOperator.Status
extends Object
implements Operator.Status, CapturingExternalSourceStatus
-
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
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionlonglongintlongProjects the operator's existingrowsEmittedcounter into theOperator.Status.documentsFound()contract so external-source-emitted rows aggregate into the top-leveldocuments_foundof the ES|QL response alongside Lucene-sourced operators, without introducing a new wire field.booleanfailure()inthashCode()intintbooleanpartial()longWall time spent insideAsyncExternalSourceOperator.getOutput()'s read loop.longlongintintlongNumber of canonical-stripe contributions this scan harvested across all files — the cold-harvest vs miss signal.toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.compute.operator.Operator.Status
valuesLoadedMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
ENTRY
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
capturedSourceMetadata
- Specified by:
capturedSourceMetadatain interfaceCapturingExternalSourceStatus
-
stripesCommitted
public long stripesCommitted()Number of canonical-stripe contributions this scan harvested across all files — the cold-harvest vs miss signal. A scan that committed stripes (> 0) has populated the coordinator's stats so a future identical query can short-circuit warm; a scan that committed none (== 0, e.g. a safe-miss / harvest-scope-none re-scan) leaves the next query cold.Derived from
capturedSourceMetadatarather than carried as a separate wire field: a stripe-addressed contribution is exactly one carryingExternalStats.STRIPE_ORDINAL_KEY(withExternalStats.STRIPE_SIZE_KEY, which marks it cacheable). Counts every such fragment, including sibling fragments of the same stripe, since each is a committed unit of harvest work; this is a "did harvest happen, and how much" signal, not the deduped final stripe count. -
partial
public boolean partial()- Specified by:
partialin interfaceCapturingExternalSourceStatus
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
pagesWaiting
public int pagesWaiting() -
pagesEmitted
public int pagesEmitted() -
rowsEmitted
public long rowsEmitted()- Specified by:
rowsEmittedin interfaceOperator.Status
-
bytesBuffered
public long bytesBuffered() -
failure
-
processNanos
public long processNanos()Wall time spent insideAsyncExternalSourceOperator.getOutput()'s read loop. Producer-thread time (format-reader open, decode, decompression) lives informat_reader.read_nanoson this same Status, not in this counter. -
splitsProcessed
public int splitsProcessed() -
splitsTotal
public int splitsTotal() -
currentSplit
public int currentSplit() -
bytesRead
public long bytesRead()- Specified by:
bytesReadin interfaceOperator.Status
-
readNanos
public long readNanos()- Specified by:
readNanosin interfaceOperator.Status
-
formatReader
-
documentsFound
public long documentsFound()Projects the operator's existingrowsEmittedcounter into theOperator.Status.documentsFound()contract so external-source-emitted rows aggregate into the top-leveldocuments_foundof the ES|QL response alongside Lucene-sourced operators, without introducing a new wire field.- Specified by:
documentsFoundin interfaceOperator.Status
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-