ColumnStatisticsProvider

com.phasmidsoftware.tableparser.core.table.ColumnStatisticsProvider

Provider trait for computing column statistics from external sources (e.g., Parquet files). Implement this in modules that add support for new sources.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def computeStatistics(path: Path, columnName: String, useMetadataOnly: Boolean = ...): Option[Column]

Compute statistics for a single numeric column in a source file. Returns None if the column is non-numeric or does not exist. For sources with metadata, may return eager or lazy statistics.

Compute statistics for a single numeric column in a source file. Returns None if the column is non-numeric or does not exist. For sources with metadata, may return eager or lazy statistics.

Value parameters

columnName

the name of the column to analyze.

path

the path to the source file.

useMetadataOnly

if true, only use metadata (no row scan); if false, allow lazy fallback.

Attributes

Returns

an optional Column with statistics (eager or lazy).