Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data CsvClassifier = CsvClassifier' {
- allowSingleColumn :: Maybe Bool
- containsHeader :: Maybe CsvHeaderOption
- creationTime :: Maybe POSIX
- customDatatypeConfigured :: Maybe Bool
- customDatatypes :: Maybe [Text]
- delimiter :: Maybe Text
- disableValueTrimming :: Maybe Bool
- header :: Maybe [Text]
- lastUpdated :: Maybe POSIX
- quoteSymbol :: Maybe Text
- version :: Maybe Integer
- name :: Text
- newCsvClassifier :: Text -> CsvClassifier
- csvClassifier_allowSingleColumn :: Lens' CsvClassifier (Maybe Bool)
- csvClassifier_containsHeader :: Lens' CsvClassifier (Maybe CsvHeaderOption)
- csvClassifier_creationTime :: Lens' CsvClassifier (Maybe UTCTime)
- csvClassifier_customDatatypeConfigured :: Lens' CsvClassifier (Maybe Bool)
- csvClassifier_customDatatypes :: Lens' CsvClassifier (Maybe [Text])
- csvClassifier_delimiter :: Lens' CsvClassifier (Maybe Text)
- csvClassifier_disableValueTrimming :: Lens' CsvClassifier (Maybe Bool)
- csvClassifier_header :: Lens' CsvClassifier (Maybe [Text])
- csvClassifier_lastUpdated :: Lens' CsvClassifier (Maybe UTCTime)
- csvClassifier_quoteSymbol :: Lens' CsvClassifier (Maybe Text)
- csvClassifier_version :: Lens' CsvClassifier (Maybe Integer)
- csvClassifier_name :: Lens' CsvClassifier Text
Documentation
data CsvClassifier Source #
A classifier for custom CSV
content.
See: newCsvClassifier
smart constructor.
CsvClassifier' | |
|
Instances
Create a value of CsvClassifier
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:allowSingleColumn:CsvClassifier'
, csvClassifier_allowSingleColumn
- Enables the processing of files that contain only one column.
$sel:containsHeader:CsvClassifier'
, csvClassifier_containsHeader
- Indicates whether the CSV file contains a header.
$sel:creationTime:CsvClassifier'
, csvClassifier_creationTime
- The time that this classifier was registered.
$sel:customDatatypeConfigured:CsvClassifier'
, csvClassifier_customDatatypeConfigured
- Enables the custom datatype to be configured.
$sel:customDatatypes:CsvClassifier'
, csvClassifier_customDatatypes
- A list of custom datatypes including "BINARY", "BOOLEAN", "DATE",
"DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT",
"STRING", "TIMESTAMP".
$sel:delimiter:CsvClassifier'
, csvClassifier_delimiter
- A custom symbol to denote what separates each column entry in the row.
$sel:disableValueTrimming:CsvClassifier'
, csvClassifier_disableValueTrimming
- Specifies not to trim values before identifying the type of column
values. The default value is true
.
$sel:header:CsvClassifier'
, csvClassifier_header
- A list of strings representing column names.
$sel:lastUpdated:CsvClassifier'
, csvClassifier_lastUpdated
- The time that this classifier was last updated.
$sel:quoteSymbol:CsvClassifier'
, csvClassifier_quoteSymbol
- A custom symbol to denote what combines content into a single column
value. It must be different from the column delimiter.
$sel:version:CsvClassifier'
, csvClassifier_version
- The version of this classifier.
$sel:name:CsvClassifier'
, csvClassifier_name
- The name of the classifier.
csvClassifier_allowSingleColumn :: Lens' CsvClassifier (Maybe Bool) Source #
Enables the processing of files that contain only one column.
csvClassifier_containsHeader :: Lens' CsvClassifier (Maybe CsvHeaderOption) Source #
Indicates whether the CSV file contains a header.
csvClassifier_creationTime :: Lens' CsvClassifier (Maybe UTCTime) Source #
The time that this classifier was registered.
csvClassifier_customDatatypeConfigured :: Lens' CsvClassifier (Maybe Bool) Source #
Enables the custom datatype to be configured.
csvClassifier_customDatatypes :: Lens' CsvClassifier (Maybe [Text]) Source #
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".
csvClassifier_delimiter :: Lens' CsvClassifier (Maybe Text) Source #
A custom symbol to denote what separates each column entry in the row.
csvClassifier_disableValueTrimming :: Lens' CsvClassifier (Maybe Bool) Source #
Specifies not to trim values before identifying the type of column
values. The default value is true
.
csvClassifier_header :: Lens' CsvClassifier (Maybe [Text]) Source #
A list of strings representing column names.
csvClassifier_lastUpdated :: Lens' CsvClassifier (Maybe UTCTime) Source #
The time that this classifier was last updated.
csvClassifier_quoteSymbol :: Lens' CsvClassifier (Maybe Text) Source #
A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter.
csvClassifier_version :: Lens' CsvClassifier (Maybe Integer) Source #
The version of this classifier.
csvClassifier_name :: Lens' CsvClassifier Text Source #
The name of the classifier.