object Analysis
The Analysis object provides factory methods to analyze tables from various sources.
Example usage:
// Analyze a CSV-sourced RawTable val stats: ColumnStatistics = Analysis(rawTable) // Analyze a CSV file by Path implicit val parser: RawTableParser = RawTableParser() val stats: ColumnStatistics = Analysis.forCsv(Path.of("data.csv")) // Analyze a Parquet file (requires parquet module in scope) val stats: ColumnStatistics = Analysis.forParquet[YellowTaxiTrip](Path.of("data.parquet"))
- Alphabetic
- By Inheritance
- Analysis
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(table: RawTable): ColumnStatistics
Analyze a CSV-sourced RawTable.
Analyze a CSV-sourced RawTable. This is the primary method for analyzing in-memory tables.
- table
the raw table to be analyzed.
- returns
a ColumnStatistics object containing rows, columns, and column-level statistics.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def forCsv(path: Path)(implicit tableParser: RawTableParser = RawTableParser()): ColumnStatistics
Analyze a CSV file by Path.
Analyze a CSV file by Path. Parses the file using the provided RawTableParser, then analyzes the result.
- path
the path to a CSV file.
- tableParser
the RawTableParser to use. Defaults to RawTableParser().
- returns
a ColumnStatistics object.
- def forParquet[Row <: Product](path: Path)(implicit singleFileFactory: SingleFileAnalyzerFactory): ColumnStatistics
Analyze a single Parquet file by Path.
Analyze a single Parquet file by Path. Fails if path is a directory; use forParquetDataset for dataset directories. Requires the parquet module to be in scope:
import com.phasmidsoftware.tableparser.parquet._- Row
the target case class type.
- path
the path to a .parquet file.
- singleFileFactory
implicit single-file analyzer factory from parquet module.
- returns
a ColumnStatistics object.
- def forParquetDataset[Row <: Product](path: Path)(implicit datasetFactory: DatasetAnalyzerFactory): ColumnStatistics
Analyze a Parquet dataset directory by Path.
Analyze a Parquet dataset directory by Path. Fails if path is not a directory; use forParquet for single files. Requires the parquet module to be in scope:
import com.phasmidsoftware.tableparser.parquet._- Row
the target case class type.
- path
the path to a dataset directory containing part-*.parquet files.
- datasetFactory
implicit dataset analyzer factory from parquet module.
- returns
a ColumnStatistics object.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)