libZSservicesZSamazonka-glueZSamazonka-glue
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Glue.Types.Classifier

Description

 
Synopsis

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.

Constructors

Classifier' 

Fields

Instances

Instances details
Eq Classifier Source # 
Instance details

Defined in Amazonka.Glue.Types.Classifier

Read Classifier Source # 
Instance details

Defined in Amazonka.Glue.Types.Classifier

Show Classifier Source # 
Instance details

Defined in Amazonka.Glue.Types.Classifier

Generic Classifier Source # 
Instance details

Defined in Amazonka.Glue.Types.Classifier

Associated Types

type Rep Classifier :: Type -> Type #

NFData Classifier Source # 
Instance details

Defined in Amazonka.Glue.Types.Classifier

Methods

rnf :: Classifier -> () #

Hashable Classifier Source # 
Instance details

Defined in Amazonka.Glue.Types.Classifier

FromJSON Classifier Source # 
Instance details

Defined in Amazonka.Glue.Types.Classifier

type Rep Classifier Source # 
Instance details

Defined in Amazonka.Glue.Types.Classifier

type Rep Classifier = D1 ('MetaData "Classifier" "Amazonka.Glue.Types.Classifier" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "Classifier'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "grokClassifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GrokClassifier)) :*: S1 ('MetaSel ('Just "xMLClassifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe XMLClassifier))) :*: (S1 ('MetaSel ('Just "csvClassifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CsvClassifier)) :*: S1 ('MetaSel ('Just "jsonClassifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JsonClassifier)))))

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_csvClassifier :: Lens' Classifier (Maybe CsvClassifier) Source #

A classifier for comma-separated values (CSV).