read

object read

Data loading utilities.

Functions

Link copied to clipboard
fun arff(file: Path): DataFrame
fun arff(file: String): DataFrame

Reads an ARFF file.

Link copied to clipboard
fun arrow(file: Path): DataFrame
fun arrow(file: String): DataFrame

Reads an Apache Arrow file.

Link copied to clipboard
fun avro(file: Path, schema: InputStream): DataFrame
fun avro(file: Path, schema: Path): DataFrame
fun avro(file: String, schema: InputStream): DataFrame
fun avro(file: String, schema: String): DataFrame

Reads an Apache Avro file.

Link copied to clipboard
fun csv(file: Path, format: CSVFormat, schema: StructType? = null): DataFrame
fun csv(file: String, format: CSVFormat, schema: StructType? = null): DataFrame
fun csv(file: Path, delimiter: Char = ',', header: Boolean = true, quote: Char = '"', escape: Char = '\\', schema: StructType? = null): DataFrame
fun csv(file: String, delimiter: Char = ',', header: Boolean = true, quote: Char = '"', escape: Char = '\\', schema: StructType? = null): DataFrame

Reads a CSV file.

Link copied to clipboard
fun jdbc(rs: ResultSet): DataFrame

Reads a JDBC query result to a data frame.

Link copied to clipboard
fun json(file: Path): DataFrame
fun json(file: String): DataFrame
fun json(file: Path, mode: JSON.Mode, schema: StructType): DataFrame
fun json(file: String, mode: JSON.Mode, schema: StructType): DataFrame

Reads a JSON file.

Link copied to clipboard
fun libsvm(file: Path): Dataset<Instance<SparseArray>>
fun libsvm(file: String): Dataset<Instance<SparseArray>>

Reads a LivSVM file.

Link copied to clipboard
fun parquet(file: Path): DataFrame
fun parquet(file: String): DataFrame

Reads an Apache Parquet file.

Link copied to clipboard
fun sas(file: Path): DataFrame
fun sas(file: String): DataFrame

Reads a SAS7BDAT file.