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"))
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Analysis
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. 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.

  10. 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.

  11. 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.

  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped