Module Values_1.ClassifierSource

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.

Sourcetype nonrec t = {
  1. grokClassifier : GrokClassifier.t option;
    (*

    A classifier that uses grok.

    *)
  2. xMLClassifier : XMLClassifier.t option;
    (*

    A classifier for XML content.

    *)
  3. jsonClassifier : JsonClassifier.t option;
    (*

    A classifier for JSON content.

    *)
  4. csvClassifier : CsvClassifier.t option;
    (*

    A classifier for comma-separated values (CSV).

    *)
}
Sourceval make : ?grokClassifier:??? -> ?xMLClassifier:??? -> ?jsonClassifier:??? -> ?csvClassifier:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Boolean of Values_0.NullableBoolean.t | `Enum of string | `List of [> `String of Values_0.NameString.t ] list | `Long of Values_0.VersionId.t | `String of Values_0.NameString.t | `Timestamp of Values_0.Timestamp.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t