Class TextFormatStats
java.lang.Object
org.elasticsearch.xpack.esql.datasources.cache.TextFormatStats
Builds a
SourceStatistics from a cached ExternalStats.Stats for the
line-oriented text-format readers (CSV / TSV / NDJSON).
Cache miss → row count + column statistics absent; sizeInBytes still published when
derivable from StorageObject.length(). Cache hit → row count populated, plus
stream-derived bytesRead fed into sizeInBytes when length() was
unknown at the time of metadata resolution (stream-only compression sources), plus per-column
statistics for every column whose name resolves to an attribute in the schema.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SourceStatisticsbuild(Optional<ExternalStats.Stats> cachedStats, OptionalLong lengthDerivedSizeInBytes, List<Attribute> schema)
-
Method Details
-
build
public static SourceStatistics build(Optional<ExternalStats.Stats> cachedStats, OptionalLong lengthDerivedSizeInBytes, List<Attribute> schema)
-