CsvReader

class CsvReader(header: Boolean, delimiter: Char, lineSeparator: String, quote: Char, charset: Charset, defaultDecoders: Array[StringDecoder], columnDecoders: Map[String, StringDecoder], nullEncodingEnabled: Boolean, nullEncoding: String, skipEmptyLines: Boolean, rowLimit: Long, rowsSkipped: Long)

Reading a DataFrame from CSV format.

Value Params
charset

Charset decoding. If unset, uses the JVM default (UTF-8).

columnDecoders

Decoders for parsing the correct data type for specific columns.

defaultDecoders

Decoders for parsing the correct data type. If unset, uses the standard set.

delimiter

Delimiter character between columns. If unset, inferred from file.

header

If true, reads column names from the header line.

lineSeparator

Line separator. If unset, inferred from file.

nullEncoding

Representation of an undefined (missing) value. The default is an empty string.

nullEncodingEnabled

If true, interprets the string set as nullEncoding as undefined (missing) value.

quote

Quote character. If unset, inferred from file.

rowLimit

The maximal number of lines to be read, where -1 (or smaller) is treated as unlimited rows.

rowsSkipped

The number of initial lines to be skipped, where 0 (or smaller) does not skip any initial lines.

skipEmptyLines

If true, empty lines are not read.

Since

0.1.0

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def read(url: URL): DataFrame

Reads a DataFrame from a URL.

Reads a DataFrame from a URL.

Value Params
url

URL.

Returns

The DataFrame.

Since

0.1.0

def read(path: String): DataFrame

Reads a DataFrame from a file.

Reads a DataFrame from a file.

Value Params
path

Path to file.

Returns

The DataFrame.

Since

0.1.0

def read(reader: Reader): DataFrame

Reads a DataFrame from a Reader instance.

Reads a DataFrame from a Reader instance.

Value Params
reader

Reader.

Returns

The DataFrame.

Since

0.1.0

def readResource(path: String): DataFrame

Reads a DataFrame from the resource directory.

Reads a DataFrame from the resource directory.

Value Params
path

Path to file (relative to the resource directory).

Returns

The DataFrame.

Since

0.1.0