Class BulkLoadCsvFormat


  • public class BulkLoadCsvFormat
    extends BulkLoadFormat
    A placeholder for bulk load CSV format parser options.
    • Field Detail

      • DEFAULT_LINE_SEPARATOR

        @NotNull
        public static final @NotNull Pattern DEFAULT_LINE_SEPARATOR
        Line separator pattern.
      • DEFAULT_FIELD_SEPARATOR

        @NotNull
        public static final @NotNull Pattern DEFAULT_FIELD_SEPARATOR
        Field separator pattern.
      • DEFAULT_QUOTE_CHARS

        @NotNull
        public static final @NotNull String DEFAULT_QUOTE_CHARS
        Quote characters
        See Also:
        Constant Field Values
      • DEFAULT_ESCAPE_CHARS

        @Nullable
        public static final @Nullable String DEFAULT_ESCAPE_CHARS
        Default escape sequence start characters.
      • DEFAULT_COMMENT_CHARS

        @Nullable
        public static final @Nullable Pattern DEFAULT_COMMENT_CHARS
        Line comment start pattern.
      • DEFAULT_NULL_STRING

        @Nullable
        public static final @Nullable String DEFAULT_NULL_STRING
        A string value to be replaced with NULL.
        See Also:
        Constant Field Values
      • DEFAULT_TRIM_SPACES

        @Nullable
        public static final @org.jetbrains.annotations.Nullable boolean DEFAULT_TRIM_SPACES
        Whether leading and trailing spaces should be trimmed.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BulkLoadCsvFormat

        public BulkLoadCsvFormat()
    • Method Detail

      • name

        public String name()
        Returns the name of the format.
        Specified by:
        name in class BulkLoadFormat
        Returns:
        The name of the format.
      • lineSeparator

        @Nullable
        public @Nullable Pattern lineSeparator()
        Returns the line separator pattern.
        Returns:
        The line separator pattern.
      • lineSeparator

        public void lineSeparator​(@Nullable
                                  @Nullable Pattern lineSeparator)
        Sets the line separator pattern.
        Parameters:
        lineSeparator - The line separator pattern.
      • fieldSeparator

        @Nullable
        public @Nullable Pattern fieldSeparator()
        Returns the field separator pattern.
        Returns:
        The field separator pattern.
      • fieldSeparator

        public void fieldSeparator​(@Nullable
                                   @Nullable Pattern fieldSeparator)
        Sets the field separator pattern.
        Parameters:
        fieldSeparator - The field separator pattern.
      • quoteChars

        @Nullable
        public @Nullable String quoteChars()
        Returns the quote characters.
        Returns:
        The quote characters.
      • quoteChars

        public void quoteChars​(@Nullable
                               @Nullable String quoteChars)
        Sets the quote characters.
        Parameters:
        quoteChars - The quote characters.
      • commentChars

        @Nullable
        public @Nullable Pattern commentChars()
        Returns the line comment start pattern.
        Returns:
        The line comment start pattern.
      • commentChars

        public void commentChars​(@Nullable
                                 @Nullable Pattern commentChars)
        Sets the line comment start pattern.
        Parameters:
        commentChars - The line comment start pattern.
      • escapeChars

        @Nullable
        public @Nullable String escapeChars()
        Returns the escape characters.
        Returns:
        The escape characters.
      • escapeChars

        public void escapeChars​(@Nullable
                                @Nullable String escapeChars)
        Sets the escape characters.
        Parameters:
        escapeChars - The escape characters.
      • inputCharsetName

        @Nullable
        public @Nullable String inputCharsetName()
        Returns the input file charset name, null if not specified.
        Returns:
        The input file charset name, null if not specified.
      • inputCharsetName

        public void inputCharsetName​(@Nullable
                                     @Nullable String inputCharsetName)
        Sets the input file charset name. The null here means "not specified".
        Parameters:
        inputCharsetName - The input file charset name.
      • nullString

        public String nullString()
        Returns the string to be used for null values, null if not specified.
        Returns:
        The string to be used for null values, null if not specified.
      • nullString

        public void nullString​(@Nullable
                               @Nullable String nullString)
        Sets the string to be used for null values.
        Parameters:
        nullString - The string to be used for null values.
      • trim

        public boolean trim()
        Returns whether the field content must be trimmed of leading and trailing spaces.
        Returns:
        Whether the field content must be trimmed.
      • trim

        public void trim​(@Nullable
                         @org.jetbrains.annotations.Nullable boolean trim)
        Sets whether the field content must be trimmed of leading and trailing spaces.
        Parameters:
        trim - Whether the field content must be trimmed.