ClassifierCsvClassifier

data class ClassifierCsvClassifier(val allowSingleColumn: Boolean? = null, val containsHeader: String? = null, val customDatatypeConfigured: Boolean? = null, val customDatatypes: List<String>? = null, val delimiter: String? = null, val disableValueTrimming: Boolean? = null, val headers: List<String>? = null, val quoteSymbol: String? = null, val serde: String? = null)

Constructors

Link copied to clipboard
constructor(allowSingleColumn: Boolean? = null, containsHeader: String? = null, customDatatypeConfigured: Boolean? = null, customDatatypes: List<String>? = null, delimiter: String? = null, disableValueTrimming: Boolean? = null, headers: List<String>? = null, quoteSymbol: String? = null, serde: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Enables the processing of files that contain only one column.

Link copied to clipboard
val containsHeader: String? = null

Indicates whether the CSV file contains a header. This can be one of "ABSENT", "PRESENT", or "UNKNOWN".

Link copied to clipboard

Enables the custom datatype to be configured.

Link copied to clipboard

A list of supported custom datatypes. Valid values are BINARY, BOOLEAN, DATE, DECIMAL, DOUBLE, FLOAT, INT, LONG, SHORT, STRING, TIMESTAMP.

Link copied to clipboard
val delimiter: String? = null

The delimiter used in the CSV to separate columns.

Link copied to clipboard

Specifies whether to trim column values.

Link copied to clipboard
val headers: List<String>? = null

A list of strings representing column names.

Link copied to clipboard
val quoteSymbol: String? = null

A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter.

Link copied to clipboard
val serde: String? = null

The SerDe for processing CSV. Valid values are OpenCSVSerDe, LazySimpleSerDe, None.