Record Class SplitDiscoveryPhase.Result

java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.SplitDiscoveryPhase.Result
Record Components:
plan - the split-enriched physical plan
filesScanned - distinct files contributing splits (file-based sources only; 0 otherwise)
splitsScanned - total number of discovered splits across all external sources
bytesScanned - sum of ExternalSplit.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 Details

    • Result

      public Result(PhysicalPlan plan, int filesScanned, int splitsScanned, long bytesScanned)
      Creates an instance of a Result record class.
      Parameters:
      plan - the value for the plan record component
      filesScanned - the value for the filesScanned record component
      splitsScanned - the value for the splitsScanned record component
      bytesScanned - the value for the bytesScanned record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • plan

      public PhysicalPlan plan()
      Returns the value of the plan record component.
      Returns:
      the value of the plan record component
    • filesScanned

      public int filesScanned()
      Returns the value of the filesScanned record component.
      Returns:
      the value of the filesScanned record component
    • splitsScanned

      public int splitsScanned()
      Returns the value of the splitsScanned record component.
      Returns:
      the value of the splitsScanned record component
    • bytesScanned

      public long bytesScanned()
      Returns the value of the bytesScanned record component.
      Returns:
      the value of the bytesScanned record component