tabularFileSchema

Appends a "Schema" section describing the column structure of any TabularFile.

This is the only content function that works on both TabularInputFile and TabularOutputFile, because schema metadata is available on the base class regardless of read/write direction.

Produces (inside a section titled caption or "Schema: <filename>"):

  1. A ReportNode.Paragraph summarising total, numeric, and text column counts.

  2. A ReportNode.DataTable ("Column Schema") with columns: Index | Column Name | Type | Numeric? | Text?

Usage:

val doc = report("File Structure") {
tabularFileSchema(myOutputFile)
}

Parameters

file

the tabular file whose schema is reported

caption

optional section title; defaults to "Schema: <filename>"