@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Classifier extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
Classifier() |
Modifier and Type | Method and Description |
---|---|
Classifier |
clone() |
boolean |
equals(Object obj) |
CsvClassifier |
getCsvClassifier()
A classifier for comma-separated values (CSV).
|
GrokClassifier |
getGrokClassifier()
A classifier that uses
grok . |
JsonClassifier |
getJsonClassifier()
A classifier for JSON content.
|
XMLClassifier |
getXMLClassifier()
A classifier for XML content.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCsvClassifier(CsvClassifier csvClassifier)
A classifier for comma-separated values (CSV).
|
void |
setGrokClassifier(GrokClassifier grokClassifier)
A classifier that uses
grok . |
void |
setJsonClassifier(JsonClassifier jsonClassifier)
A classifier for JSON content.
|
void |
setXMLClassifier(XMLClassifier xMLClassifier)
A classifier for XML content.
|
String |
toString()
Returns a string representation of this object.
|
Classifier |
withCsvClassifier(CsvClassifier csvClassifier)
A classifier for comma-separated values (CSV).
|
Classifier |
withGrokClassifier(GrokClassifier grokClassifier)
A classifier that uses
grok . |
Classifier |
withJsonClassifier(JsonClassifier jsonClassifier)
A classifier for JSON content.
|
Classifier |
withXMLClassifier(XMLClassifier xMLClassifier)
A classifier for XML content.
|
public void setGrokClassifier(GrokClassifier grokClassifier)
A classifier that uses grok
.
grokClassifier
- A classifier that uses grok
.public GrokClassifier getGrokClassifier()
A classifier that uses grok
.
grok
.public Classifier withGrokClassifier(GrokClassifier grokClassifier)
A classifier that uses grok
.
grokClassifier
- A classifier that uses grok
.public void setXMLClassifier(XMLClassifier xMLClassifier)
A classifier for XML content.
xMLClassifier
- A classifier for XML content.public XMLClassifier getXMLClassifier()
A classifier for XML content.
public Classifier withXMLClassifier(XMLClassifier xMLClassifier)
A classifier for XML content.
xMLClassifier
- A classifier for XML content.public void setJsonClassifier(JsonClassifier jsonClassifier)
A classifier for JSON content.
jsonClassifier
- A classifier for JSON content.public JsonClassifier getJsonClassifier()
A classifier for JSON content.
public Classifier withJsonClassifier(JsonClassifier jsonClassifier)
A classifier for JSON content.
jsonClassifier
- A classifier for JSON content.public void setCsvClassifier(CsvClassifier csvClassifier)
A classifier for comma-separated values (CSV).
csvClassifier
- A classifier for comma-separated values (CSV).public CsvClassifier getCsvClassifier()
A classifier for comma-separated values (CSV).
public Classifier withCsvClassifier(CsvClassifier csvClassifier)
A classifier for comma-separated values (CSV).
csvClassifier
- A classifier for comma-separated values (CSV).public String toString()
toString
in class Object
Object.toString()
public Classifier clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.