AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Classifier

import "github.com/aws/aws-sdk-go/service/glue"

type Classifier struct { GrokClassifier *GrokClassifier `type:"structure"` JsonClassifier *JsonClassifier `type:"structure"` XMLClassifier *XMLClassifier `type:"structure"` }

Classifiers are triggered during a crawl task. A classifier checks whether a given file is in a format it can handle, and 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 AWS Glue supplies, 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, or a JSON classifier, as specified in one of the fields in the Classifier object.

GrokClassifier

A classifier that uses grok patterns.

JsonClassifier

A classifier for JSON content.

XMLClassifier

A classifier for XML content.

Method

GoString

func (s Classifier) GoString() string

GoString returns the string representation

SetGrokClassifier

func (s *Classifier) SetGrokClassifier(v *GrokClassifier) *Classifier

SetGrokClassifier sets the GrokClassifier field's value.

SetJsonClassifier

func (s *Classifier) SetJsonClassifier(v *JsonClassifier) *Classifier

SetJsonClassifier sets the JsonClassifier field's value.

SetXMLClassifier

func (s *Classifier) SetXMLClassifier(v *XMLClassifier) *Classifier

SetXMLClassifier sets the XMLClassifier field's value.

String

func (s Classifier) String() string

String returns the string representation

On this page: