Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Classifier = Classifier' {}
- newClassifier :: Classifier
- classifier_grokClassifier :: Lens' Classifier (Maybe GrokClassifier)
- classifier_xMLClassifier :: Lens' Classifier (Maybe XMLClassifier)
- classifier_csvClassifier :: Lens' Classifier (Maybe CsvClassifier)
- classifier_jsonClassifier :: Lens' Classifier (Maybe JsonClassifier)
Documentation
data Classifier Source #
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.
See: newClassifier
smart constructor.
Classifier' | |
|
Instances
newClassifier :: Classifier Source #
Create a value of Classifier
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:grokClassifier:Classifier'
, classifier_grokClassifier
- A classifier that uses grok
.
$sel:xMLClassifier:Classifier'
, classifier_xMLClassifier
- A classifier for XML content.
$sel:csvClassifier:Classifier'
, classifier_csvClassifier
- A classifier for comma-separated values (CSV).
$sel:jsonClassifier:Classifier'
, classifier_jsonClassifier
- A classifier for JSON content.
classifier_grokClassifier :: Lens' Classifier (Maybe GrokClassifier) Source #
A classifier that uses grok
.
classifier_xMLClassifier :: Lens' Classifier (Maybe XMLClassifier) Source #
A classifier for XML content.
classifier_csvClassifier :: Lens' Classifier (Maybe CsvClassifier) Source #
A classifier for comma-separated values (CSV).
classifier_jsonClassifier :: Lens' Classifier (Maybe JsonClassifier) Source #
A classifier for JSON content.