tabular File Schema
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>"):
A ReportNode.Paragraph summarising total, numeric, and text column counts.
A ReportNode.DataTable ("Column Schema") with columns: Index | Column Name | Type | Numeric? | Text?
Usage:
val doc = report("File Structure") {
tabularFileSchema(myOutputFile)
}Content copied to clipboard
Parameters
file
the tabular file whose schema is reported
caption
optional section title; defaults to "Schema: <filename>"