Struct aws_sdk_glue::types::Classifier
source · #[non_exhaustive]pub struct Classifier {
pub grok_classifier: Option<GrokClassifier>,
pub xml_classifier: Option<XmlClassifier>,
pub json_classifier: Option<JsonClassifier>,
pub csv_classifier: Option<CsvClassifier>,
}
Expand description
Classifiers are triggered during a crawl task. A classifier checks whether a given file is in a format it can handle. If it is, the classifier creates a schema in the form of a StructType
object that matches that data format.
You can use the standard classifiers that Glue provides, or you can write your own classifiers to best categorize your data sources and specify the appropriate schemas to use for them. A classifier can be a grok
classifier, an XML
classifier, a JSON
classifier, or a custom CSV
classifier, as specified in one of the fields in the Classifier
object.
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.grok_classifier: Option<GrokClassifier>
A classifier that uses grok
.
xml_classifier: Option<XmlClassifier>
A classifier for XML content.
json_classifier: Option<JsonClassifier>
A classifier for JSON content.
csv_classifier: Option<CsvClassifier>
A classifier for comma-separated values (CSV).
Implementations§
source§impl Classifier
impl Classifier
sourcepub fn grok_classifier(&self) -> Option<&GrokClassifier>
pub fn grok_classifier(&self) -> Option<&GrokClassifier>
A classifier that uses grok
.
sourcepub fn xml_classifier(&self) -> Option<&XmlClassifier>
pub fn xml_classifier(&self) -> Option<&XmlClassifier>
A classifier for XML content.
sourcepub fn json_classifier(&self) -> Option<&JsonClassifier>
pub fn json_classifier(&self) -> Option<&JsonClassifier>
A classifier for JSON content.
sourcepub fn csv_classifier(&self) -> Option<&CsvClassifier>
pub fn csv_classifier(&self) -> Option<&CsvClassifier>
A classifier for comma-separated values (CSV).
source§impl Classifier
impl Classifier
sourcepub fn builder() -> ClassifierBuilder
pub fn builder() -> ClassifierBuilder
Creates a new builder-style object to manufacture Classifier
.
Trait Implementations§
source§impl Clone for Classifier
impl Clone for Classifier
source§fn clone(&self) -> Classifier
fn clone(&self) -> Classifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Classifier
impl Debug for Classifier
source§impl PartialEq for Classifier
impl PartialEq for Classifier
source§fn eq(&self, other: &Classifier) -> bool
fn eq(&self, other: &Classifier) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Classifier
Auto Trait Implementations§
impl Freeze for Classifier
impl RefUnwindSafe for Classifier
impl Send for Classifier
impl Sync for Classifier
impl Unpin for Classifier
impl UnwindSafe for Classifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more