Interface CsvClassifier.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<CsvClassifier.Builder,CsvClassifier>
,SdkBuilder<CsvClassifier.Builder,CsvClassifier>
,SdkPojo
- Enclosing class:
- CsvClassifier
public static interface CsvClassifier.Builder extends SdkPojo, CopyableBuilder<CsvClassifier.Builder,CsvClassifier>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CsvClassifier.Builder
allowSingleColumn(Boolean allowSingleColumn)
Enables the processing of files that contain only one column.CsvClassifier.Builder
containsHeader(String containsHeader)
Indicates whether the CSV file contains a header.CsvClassifier.Builder
containsHeader(CsvHeaderOption containsHeader)
Indicates whether the CSV file contains a header.CsvClassifier.Builder
creationTime(Instant creationTime)
The time that this classifier was registered.CsvClassifier.Builder
customDatatypeConfigured(Boolean customDatatypeConfigured)
Enables the custom datatype to be configured.CsvClassifier.Builder
customDatatypes(String... customDatatypes)
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".CsvClassifier.Builder
customDatatypes(Collection<String> customDatatypes)
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".CsvClassifier.Builder
delimiter(String delimiter)
A custom symbol to denote what separates each column entry in the row.CsvClassifier.Builder
disableValueTrimming(Boolean disableValueTrimming)
Specifies not to trim values before identifying the type of column values.CsvClassifier.Builder
header(String... header)
A list of strings representing column names.CsvClassifier.Builder
header(Collection<String> header)
A list of strings representing column names.CsvClassifier.Builder
lastUpdated(Instant lastUpdated)
The time that this classifier was last updated.CsvClassifier.Builder
name(String name)
The name of the classifier.CsvClassifier.Builder
quoteSymbol(String quoteSymbol)
A custom symbol to denote what combines content into a single column value.CsvClassifier.Builder
serde(String serde)
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog.CsvClassifier.Builder
serde(CsvSerdeOption serde)
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog.CsvClassifier.Builder
version(Long version)
The version of this classifier.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
CsvClassifier.Builder name(String name)
The name of the classifier.
- Parameters:
name
- The name of the classifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
CsvClassifier.Builder creationTime(Instant creationTime)
The time that this classifier was registered.
- Parameters:
creationTime
- The time that this classifier was registered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdated
CsvClassifier.Builder lastUpdated(Instant lastUpdated)
The time that this classifier was last updated.
- Parameters:
lastUpdated
- The time that this classifier was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
CsvClassifier.Builder version(Long version)
The version of this classifier.
- Parameters:
version
- The version of this classifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
delimiter
CsvClassifier.Builder delimiter(String delimiter)
A custom symbol to denote what separates each column entry in the row.
- Parameters:
delimiter
- A custom symbol to denote what separates each column entry in the row.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quoteSymbol
CsvClassifier.Builder quoteSymbol(String quoteSymbol)
A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter.
- Parameters:
quoteSymbol
- A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containsHeader
CsvClassifier.Builder containsHeader(String containsHeader)
Indicates whether the CSV file contains a header.
- Parameters:
containsHeader
- Indicates whether the CSV file contains a header.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CsvHeaderOption
,CsvHeaderOption
-
containsHeader
CsvClassifier.Builder containsHeader(CsvHeaderOption containsHeader)
Indicates whether the CSV file contains a header.
- Parameters:
containsHeader
- Indicates whether the CSV file contains a header.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CsvHeaderOption
,CsvHeaderOption
-
header
CsvClassifier.Builder header(Collection<String> header)
A list of strings representing column names.
- Parameters:
header
- A list of strings representing column names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
header
CsvClassifier.Builder header(String... header)
A list of strings representing column names.
- Parameters:
header
- A list of strings representing column names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
disableValueTrimming
CsvClassifier.Builder disableValueTrimming(Boolean disableValueTrimming)
Specifies not to trim values before identifying the type of column values. The default value is
true
.- Parameters:
disableValueTrimming
- Specifies not to trim values before identifying the type of column values. The default value istrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowSingleColumn
CsvClassifier.Builder allowSingleColumn(Boolean allowSingleColumn)
Enables the processing of files that contain only one column.
- Parameters:
allowSingleColumn
- Enables the processing of files that contain only one column.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDatatypeConfigured
CsvClassifier.Builder customDatatypeConfigured(Boolean customDatatypeConfigured)
Enables the custom datatype to be configured.
- Parameters:
customDatatypeConfigured
- Enables the custom datatype to be configured.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDatatypes
CsvClassifier.Builder customDatatypes(Collection<String> customDatatypes)
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".
- Parameters:
customDatatypes
- A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDatatypes
CsvClassifier.Builder customDatatypes(String... customDatatypes)
A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".
- Parameters:
customDatatypes
- A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serde
CsvClassifier.Builder serde(String serde)
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid values are
OpenCSVSerDe
,LazySimpleSerDe
, andNone
. You can specify theNone
value when you want the crawler to do the detection.- Parameters:
serde
- Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid values areOpenCSVSerDe
,LazySimpleSerDe
, andNone
. You can specify theNone
value when you want the crawler to do the detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CsvSerdeOption
,CsvSerdeOption
-
serde
CsvClassifier.Builder serde(CsvSerdeOption serde)
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid values are
OpenCSVSerDe
,LazySimpleSerDe
, andNone
. You can specify theNone
value when you want the crawler to do the detection.- Parameters:
serde
- Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid values areOpenCSVSerDe
,LazySimpleSerDe
, andNone
. You can specify theNone
value when you want the crawler to do the detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CsvSerdeOption
,CsvSerdeOption
-
-