@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CsvClassifier extends Object implements Serializable, Cloneable, StructuredPojo
A classifier for custom CSV
content.
Constructor and Description |
---|
CsvClassifier() |
Modifier and Type | Method and Description |
---|---|
CsvClassifier |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllowSingleColumn()
Enables the processing of files that contain only one column.
|
String |
getContainsHeader()
Indicates whether the CSV file contains a header.
|
Date |
getCreationTime()
The time that this classifier was registered.
|
Boolean |
getCustomDatatypeConfigured()
Enables the custom datatype to be configured.
|
List<String> |
getCustomDatatypes()
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG",
"SHORT", "STRING", "TIMESTAMP".
|
String |
getDelimiter()
A custom symbol to denote what separates each column entry in the row.
|
Boolean |
getDisableValueTrimming()
Specifies not to trim values before identifying the type of column values.
|
List<String> |
getHeader()
A list of strings representing column names.
|
Date |
getLastUpdated()
The time that this classifier was last updated.
|
String |
getName()
The name of the classifier.
|
String |
getQuoteSymbol()
A custom symbol to denote what combines content into a single column value.
|
String |
getSerde()
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog.
|
Long |
getVersion()
The version of this classifier.
|
int |
hashCode() |
Boolean |
isAllowSingleColumn()
Enables the processing of files that contain only one column.
|
Boolean |
isCustomDatatypeConfigured()
Enables the custom datatype to be configured.
|
Boolean |
isDisableValueTrimming()
Specifies not to trim values before identifying the type of column values.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowSingleColumn(Boolean allowSingleColumn)
Enables the processing of files that contain only one column.
|
void |
setContainsHeader(String containsHeader)
Indicates whether the CSV file contains a header.
|
void |
setCreationTime(Date creationTime)
The time that this classifier was registered.
|
void |
setCustomDatatypeConfigured(Boolean customDatatypeConfigured)
Enables the custom datatype to be configured.
|
void |
setCustomDatatypes(Collection<String> customDatatypes)
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG",
"SHORT", "STRING", "TIMESTAMP".
|
void |
setDelimiter(String delimiter)
A custom symbol to denote what separates each column entry in the row.
|
void |
setDisableValueTrimming(Boolean disableValueTrimming)
Specifies not to trim values before identifying the type of column values.
|
void |
setHeader(Collection<String> header)
A list of strings representing column names.
|
void |
setLastUpdated(Date lastUpdated)
The time that this classifier was last updated.
|
void |
setName(String name)
The name of the classifier.
|
void |
setQuoteSymbol(String quoteSymbol)
A custom symbol to denote what combines content into a single column value.
|
void |
setSerde(String serde)
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog.
|
void |
setVersion(Long version)
The version of this classifier.
|
String |
toString()
Returns a string representation of this object.
|
CsvClassifier |
withAllowSingleColumn(Boolean allowSingleColumn)
Enables the processing of files that contain only one column.
|
CsvClassifier |
withContainsHeader(CsvHeaderOption containsHeader)
Indicates whether the CSV file contains a header.
|
CsvClassifier |
withContainsHeader(String containsHeader)
Indicates whether the CSV file contains a header.
|
CsvClassifier |
withCreationTime(Date creationTime)
The time that this classifier was registered.
|
CsvClassifier |
withCustomDatatypeConfigured(Boolean customDatatypeConfigured)
Enables the custom datatype to be configured.
|
CsvClassifier |
withCustomDatatypes(Collection<String> customDatatypes)
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG",
"SHORT", "STRING", "TIMESTAMP".
|
CsvClassifier |
withCustomDatatypes(String... customDatatypes)
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG",
"SHORT", "STRING", "TIMESTAMP".
|
CsvClassifier |
withDelimiter(String delimiter)
A custom symbol to denote what separates each column entry in the row.
|
CsvClassifier |
withDisableValueTrimming(Boolean disableValueTrimming)
Specifies not to trim values before identifying the type of column values.
|
CsvClassifier |
withHeader(Collection<String> header)
A list of strings representing column names.
|
CsvClassifier |
withHeader(String... header)
A list of strings representing column names.
|
CsvClassifier |
withLastUpdated(Date lastUpdated)
The time that this classifier was last updated.
|
CsvClassifier |
withName(String name)
The name of the classifier.
|
CsvClassifier |
withQuoteSymbol(String quoteSymbol)
A custom symbol to denote what combines content into a single column value.
|
CsvClassifier |
withSerde(CsvSerdeOption serde)
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog.
|
CsvClassifier |
withSerde(String serde)
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog.
|
CsvClassifier |
withVersion(Long version)
The version of this classifier.
|
public void setName(String name)
The name of the classifier.
name
- The name of the classifier.public String getName()
The name of the classifier.
public CsvClassifier withName(String name)
The name of the classifier.
name
- The name of the classifier.public void setCreationTime(Date creationTime)
The time that this classifier was registered.
creationTime
- The time that this classifier was registered.public Date getCreationTime()
The time that this classifier was registered.
public CsvClassifier withCreationTime(Date creationTime)
The time that this classifier was registered.
creationTime
- The time that this classifier was registered.public void setLastUpdated(Date lastUpdated)
The time that this classifier was last updated.
lastUpdated
- The time that this classifier was last updated.public Date getLastUpdated()
The time that this classifier was last updated.
public CsvClassifier withLastUpdated(Date lastUpdated)
The time that this classifier was last updated.
lastUpdated
- The time that this classifier was last updated.public void setVersion(Long version)
The version of this classifier.
version
- The version of this classifier.public Long getVersion()
The version of this classifier.
public CsvClassifier withVersion(Long version)
The version of this classifier.
version
- The version of this classifier.public void setDelimiter(String delimiter)
A custom symbol to denote what separates each column entry in the row.
delimiter
- A custom symbol to denote what separates each column entry in the row.public String getDelimiter()
A custom symbol to denote what separates each column entry in the row.
public CsvClassifier withDelimiter(String delimiter)
A custom symbol to denote what separates each column entry in the row.
delimiter
- A custom symbol to denote what separates each column entry in the row.public void setQuoteSymbol(String quoteSymbol)
A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter.
quoteSymbol
- A custom symbol to denote what combines content into a single column value. It must be different from the
column delimiter.public String getQuoteSymbol()
A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter.
public CsvClassifier withQuoteSymbol(String quoteSymbol)
A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter.
quoteSymbol
- A custom symbol to denote what combines content into a single column value. It must be different from the
column delimiter.public void setContainsHeader(String containsHeader)
Indicates whether the CSV file contains a header.
containsHeader
- Indicates whether the CSV file contains a header.CsvHeaderOption
public String getContainsHeader()
Indicates whether the CSV file contains a header.
CsvHeaderOption
public CsvClassifier withContainsHeader(String containsHeader)
Indicates whether the CSV file contains a header.
containsHeader
- Indicates whether the CSV file contains a header.CsvHeaderOption
public CsvClassifier withContainsHeader(CsvHeaderOption containsHeader)
Indicates whether the CSV file contains a header.
containsHeader
- Indicates whether the CSV file contains a header.CsvHeaderOption
public List<String> getHeader()
A list of strings representing column names.
public void setHeader(Collection<String> header)
A list of strings representing column names.
header
- A list of strings representing column names.public CsvClassifier withHeader(String... header)
A list of strings representing column names.
NOTE: This method appends the values to the existing list (if any). Use
setHeader(java.util.Collection)
or withHeader(java.util.Collection)
if you want to override the
existing values.
header
- A list of strings representing column names.public CsvClassifier withHeader(Collection<String> header)
A list of strings representing column names.
header
- A list of strings representing column names.public void setDisableValueTrimming(Boolean disableValueTrimming)
Specifies not to trim values before identifying the type of column values. The default value is true
.
disableValueTrimming
- Specifies not to trim values before identifying the type of column values. The default value is
true
.public Boolean getDisableValueTrimming()
Specifies not to trim values before identifying the type of column values. The default value is true
.
true
.public CsvClassifier withDisableValueTrimming(Boolean disableValueTrimming)
Specifies not to trim values before identifying the type of column values. The default value is true
.
disableValueTrimming
- Specifies not to trim values before identifying the type of column values. The default value is
true
.public Boolean isDisableValueTrimming()
Specifies not to trim values before identifying the type of column values. The default value is true
.
true
.public void setAllowSingleColumn(Boolean allowSingleColumn)
Enables the processing of files that contain only one column.
allowSingleColumn
- Enables the processing of files that contain only one column.public Boolean getAllowSingleColumn()
Enables the processing of files that contain only one column.
public CsvClassifier withAllowSingleColumn(Boolean allowSingleColumn)
Enables the processing of files that contain only one column.
allowSingleColumn
- Enables the processing of files that contain only one column.public Boolean isAllowSingleColumn()
Enables the processing of files that contain only one column.
public void setCustomDatatypeConfigured(Boolean customDatatypeConfigured)
Enables the custom datatype to be configured.
customDatatypeConfigured
- Enables the custom datatype to be configured.public Boolean getCustomDatatypeConfigured()
Enables the custom datatype to be configured.
public CsvClassifier withCustomDatatypeConfigured(Boolean customDatatypeConfigured)
Enables the custom datatype to be configured.
customDatatypeConfigured
- Enables the custom datatype to be configured.public Boolean isCustomDatatypeConfigured()
Enables the custom datatype to be configured.
public List<String> getCustomDatatypes()
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".
public void setCustomDatatypes(Collection<String> customDatatypes)
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".
customDatatypes
- A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT",
"LONG", "SHORT", "STRING", "TIMESTAMP".public CsvClassifier withCustomDatatypes(String... customDatatypes)
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".
NOTE: This method appends the values to the existing list (if any). Use
setCustomDatatypes(java.util.Collection)
or withCustomDatatypes(java.util.Collection)
if you
want to override the existing values.
customDatatypes
- A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT",
"LONG", "SHORT", "STRING", "TIMESTAMP".public CsvClassifier withCustomDatatypes(Collection<String> customDatatypes)
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".
customDatatypes
- A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT",
"LONG", "SHORT", "STRING", "TIMESTAMP".public void setSerde(String serde)
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid values are
OpenCSVSerDe
, LazySimpleSerDe
, and None
. You can specify the
None
value when you want the crawler to do the detection.
serde
- Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid
values are OpenCSVSerDe
, LazySimpleSerDe
, and None
. You can specify
the None
value when you want the crawler to do the detection.CsvSerdeOption
public String getSerde()
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid values are
OpenCSVSerDe
, LazySimpleSerDe
, and None
. You can specify the
None
value when you want the crawler to do the detection.
OpenCSVSerDe
, LazySimpleSerDe
, and None
. You can
specify the None
value when you want the crawler to do the detection.CsvSerdeOption
public CsvClassifier withSerde(String serde)
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid values are
OpenCSVSerDe
, LazySimpleSerDe
, and None
. You can specify the
None
value when you want the crawler to do the detection.
serde
- Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid
values are OpenCSVSerDe
, LazySimpleSerDe
, and None
. You can specify
the None
value when you want the crawler to do the detection.CsvSerdeOption
public CsvClassifier withSerde(CsvSerdeOption serde)
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid values are
OpenCSVSerDe
, LazySimpleSerDe
, and None
. You can specify the
None
value when you want the crawler to do the detection.
serde
- Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid
values are OpenCSVSerDe
, LazySimpleSerDe
, and None
. You can specify
the None
value when you want the crawler to do the detection.CsvSerdeOption
public String toString()
toString
in class Object
Object.toString()
public CsvClassifier clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.