Record Class SplitDiscoveryPhase.Result
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.SplitDiscoveryPhase.Result
- Record Components:
plan- the split-enriched physical planfilesScanned- distinct files contributing splits (file-based sources only;0otherwise)splitsScanned- total number of discovered splits across all external sourcesbytesScanned- sum ofExternalSplit.estimatedSizeInBytes()over the discovered splits, ignoring splits that report an unknown (< 0) size
- Enclosing class:
SplitDiscoveryPhase
public static record SplitDiscoveryPhase.Result(PhysicalPlan plan, int filesScanned, int splitsScanned, long bytesScanned)
extends Record
Post-prune "scanned" accounting collected while resolving splits, surfaced at the root of the
query profile. The counts reflect what survived coordinator-side pruning and is handed to the
runtime, before any later split coalescing.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(PhysicalPlan plan, int filesScanned, int splitsScanned, long bytesScanned) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebytesScannedrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefilesScannedrecord component.final inthashCode()Returns a hash code value for this object.plan()Returns the value of theplanrecord component.intReturns the value of thesplitsScannedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
plan- the value for theplanrecord componentfilesScanned- the value for thefilesScannedrecord componentsplitsScanned- the value for thesplitsScannedrecord componentbytesScanned- the value for thebytesScannedrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
plan
Returns the value of theplanrecord component.- Returns:
- the value of the
planrecord component
-
filesScanned
public int filesScanned()Returns the value of thefilesScannedrecord component.- Returns:
- the value of the
filesScannedrecord component
-
splitsScanned
public int splitsScanned()Returns the value of thesplitsScannedrecord component.- Returns:
- the value of the
splitsScannedrecord component
-
bytesScanned
public long bytesScanned()Returns the value of thebytesScannedrecord component.- Returns:
- the value of the
bytesScannedrecord component
-