Struct aws_sdk_glue::types::CsvClassifier
source · #[non_exhaustive]pub struct CsvClassifier {Show 13 fields
pub name: String,
pub creation_time: Option<DateTime>,
pub last_updated: Option<DateTime>,
pub version: i64,
pub delimiter: Option<String>,
pub quote_symbol: Option<String>,
pub contains_header: Option<CsvHeaderOption>,
pub header: Option<Vec<String>>,
pub disable_value_trimming: Option<bool>,
pub allow_single_column: Option<bool>,
pub custom_datatype_configured: Option<bool>,
pub custom_datatypes: Option<Vec<String>>,
pub serde: Option<CsvSerdeOption>,
}Expand description
A classifier for custom CSV content.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the classifier.
creation_time: Option<DateTime>The time that this classifier was registered.
last_updated: Option<DateTime>The time that this classifier was last updated.
version: i64The version of this classifier.
delimiter: Option<String>A custom symbol to denote what separates each column entry in the row.
quote_symbol: Option<String>A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter.
contains_header: Option<CsvHeaderOption>Indicates whether the CSV file contains a header.
header: Option<Vec<String>>A list of strings representing column names.
disable_value_trimming: Option<bool>Specifies not to trim values before identifying the type of column values. The default value is true.
allow_single_column: Option<bool>Enables the processing of files that contain only one column.
custom_datatype_configured: Option<bool>Enables the custom datatype to be configured.
custom_datatypes: Option<Vec<String>>A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".
serde: Option<CsvSerdeOption>Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid values are OpenCSVSerDe, LazySimpleSerDe, and None. You can specify the None value when you want the crawler to do the detection.
Implementations§
source§impl CsvClassifier
impl CsvClassifier
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The time that this classifier was registered.
sourcepub fn last_updated(&self) -> Option<&DateTime>
pub fn last_updated(&self) -> Option<&DateTime>
The time that this classifier was last updated.
sourcepub fn delimiter(&self) -> Option<&str>
pub fn delimiter(&self) -> Option<&str>
A custom symbol to denote what separates each column entry in the row.
sourcepub fn quote_symbol(&self) -> Option<&str>
pub fn quote_symbol(&self) -> Option<&str>
A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter.
sourcepub fn contains_header(&self) -> Option<&CsvHeaderOption>
pub fn contains_header(&self) -> Option<&CsvHeaderOption>
Indicates whether the CSV file contains a header.
sourcepub fn header(&self) -> &[String]
pub fn header(&self) -> &[String]
A list of strings representing column names.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .header.is_none().
sourcepub fn disable_value_trimming(&self) -> Option<bool>
pub fn disable_value_trimming(&self) -> Option<bool>
Specifies not to trim values before identifying the type of column values. The default value is true.
sourcepub fn allow_single_column(&self) -> Option<bool>
pub fn allow_single_column(&self) -> Option<bool>
Enables the processing of files that contain only one column.
sourcepub fn custom_datatype_configured(&self) -> Option<bool>
pub fn custom_datatype_configured(&self) -> Option<bool>
Enables the custom datatype to be configured.
sourcepub fn custom_datatypes(&self) -> &[String]
pub fn custom_datatypes(&self) -> &[String]
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .custom_datatypes.is_none().
sourcepub fn serde(&self) -> Option<&CsvSerdeOption>
pub fn serde(&self) -> Option<&CsvSerdeOption>
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid values are OpenCSVSerDe, LazySimpleSerDe, and None. You can specify the None value when you want the crawler to do the detection.
source§impl CsvClassifier
impl CsvClassifier
sourcepub fn builder() -> CsvClassifierBuilder
pub fn builder() -> CsvClassifierBuilder
Creates a new builder-style object to manufacture CsvClassifier.
Trait Implementations§
source§impl Clone for CsvClassifier
impl Clone for CsvClassifier
source§fn clone(&self) -> CsvClassifier
fn clone(&self) -> CsvClassifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CsvClassifier
impl Debug for CsvClassifier
source§impl PartialEq for CsvClassifier
impl PartialEq for CsvClassifier
source§fn eq(&self, other: &CsvClassifier) -> bool
fn eq(&self, other: &CsvClassifier) -> bool
self and other values to be equal, and is used
by ==.