table

io.github.quafadas.table
object table

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
table.type

Members list

Type members

Classlikes

Enumeration of strategies for inferring column types when reading CSV files.

Enumeration of strategies for inferring column types when reading CSV files.

  • FirstRow: Infers types by inspecting only the first row of data.
  • FirstN: Infers types by inspecting the first n rows. Optionally, prefers Int over Boolean if both are possible.
  • FromAllRows: Infers types by inspecting all rows in the CSV.
  • StringType: Disables type inference; all columns are read as String.
  • FromTuple[T]: Uses a user-supplied tuple type T for decoding, allowing custom or manual type specification.

Attributes

Companion
object
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object TypeInferrer

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Exports

Defined exports

Exported from scautable
final val CSV: CSV
Exported from scautable
final type CsvIterator = [K <: Tuple, V <: Tuple] =>> CsvIterator[K, V]
Exported from scautable
final val CsvOpts: CsvOpts
Exported from scautable
final type CsvOpts = CsvOpts
Exported from scautable
inline def Default: HeaderOptions
Exported from HeaderOptions

Default header option that reads headers from the first row.

Default header option that reads headers from the first row.

Equivalent to HeaderOptions.FromRows(merge = 1, dropFirst = 0).

Attributes

final val Excel: Excel
Exported from scautable
final type ExcelIterator = [K <: Tuple, V <: Tuple] =>> ExcelIterator[K, V]
Exported from scautable
final type FromRows = FromRows
Exported from HeaderOptions$
Exported from scautable
final val JsonTable: JsonTable
Exported from json
final type Manual = Manual
Exported from HeaderOptions$
final val ReadAs: ReadAs
Exported from scautable
final type ReadAs = ReadAs
Exported from scautable
final type StatsContext = StatsContext
Exported from Stats$
transparent inline def absolutePath[K](filePath: String, sheetName: String, range: String, inline typeInferrer: TypeInferrer): ExcelIterator[_ <: Tuple, _ <: Tuple]
Exported from Excel

Read Excel file from an absolute path with compile-time type inference

Read Excel file from an absolute path with compile-time type inference

Value parameters

filePath

Absolute path to the Excel file

range

Optional cell range (e.g., "A1:C10"), empty string reads entire sheet

sheetName

Name of the Excel sheet to read

typeInferrer

Type inference strategy (StringType or FromTuple supported)

Attributes

Returns

ExcelIterator with inferred types

inline export excelIntDecoder
Exported from ExcelDecoders

Decoder for Int that can handle Excel's numeric formatting Attempts to parse as Double first, then converts to Int if it's a whole number Falls back to regular Int parsing if Double parsing fails

Decoder for Int that can handle Excel's numeric formatting Attempts to parse as Double first, then converts to Int if it's a whole number Falls back to regular Int parsing if Double parsing fails

Attributes

inline export excelLongDecoder
Exported from ExcelDecoders

Decoder for Long that can handle Excel's numeric formatting Attempts to parse as Double first, then converts to Long if it's a whole number Falls back to regular Long parsing if Double parsing fails

Decoder for Long that can handle Excel's numeric formatting Attempts to parse as Double first, then converts to Long if it's a whole number Falls back to regular Long parsing if Double parsing fails

Attributes

transparent inline def resource[K](filePath: String, sheetName: String): ExcelIterator[_ <: Tuple, _ <: Tuple]
Exported from Excel
transparent inline def resource[K](filePath: String, sheetName: String, inline typeInferrer: TypeInferrer): ExcelIterator[_ <: Tuple, _ <: Tuple]
Exported from Excel
transparent inline def resource[K](filePath: String, sheetName: String, range: String, inline typeInferrer: TypeInferrer): ExcelIterator[_ <: Tuple, _ <: Tuple]
Exported from Excel

Read Excel file from the classpath with compile-time type inference

Read Excel file from the classpath with compile-time type inference

Value parameters

filePath

Path to the Excel file in the classpath

range

Optional cell range (e.g., "A1:C10"), empty string reads entire sheet

sheetName

Name of the Excel sheet to read

typeInferrer

Type inference strategy (StringType or FromTuple supported)

Attributes

Returns

ExcelIterator with inferred types