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 Details

    • 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:
    • 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:
    • 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 is true.
      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

      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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: