Record Class ExternalStats.Stats
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.cache.ExternalStats.Stats
- Record Components:
rowCount- total rows in the file (always populated; the capture gate refuses to write a partial count)bytesRead- bytes consumed from the input stream; present only for stream-only sources whereStorageObject.length()is unknown, so the value is captured during scancolumns- per-column stats keyed by column name; empty when no columns were materialized during the cold scan (e.g.STATS COUNT(*)with no projection)
- Enclosing class:
ExternalStats
public static record ExternalStats.Stats(long rowCount, OptionalLong bytesRead, Map<String,ExternalStats.ColumnStats> columns)
extends Record
Structured per-file statistics captured during a clean whole-file (or summed-chunk) cold scan.
-
Constructor Summary
ConstructorsConstructorDescriptionStats(long rowCount, OptionalLong bytesRead, Map<String, ExternalStats.ColumnStats> columns) Creates an instance of aStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebytesReadrecord component.columns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longrowCount()Returns the value of therowCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 '=='. -
rowCount
public long rowCount()Returns the value of therowCountrecord component.- Returns:
- the value of the
rowCountrecord component
-
bytesRead
Returns the value of thebytesReadrecord component.- Returns:
- the value of the
bytesReadrecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-