Class BulkLoadCsvFormat
- java.lang.Object
-
- org.apache.ignite.internal.processors.bulkload.BulkLoadFormat
-
- org.apache.ignite.internal.processors.bulkload.BulkLoadCsvFormat
-
public class BulkLoadCsvFormat extends BulkLoadFormat
A placeholder for bulk load CSV format parser options.
-
-
Field Summary
Fields Modifier and Type Field Description static @Nullable PatternDEFAULT_COMMENT_CHARSLine comment start pattern.static @Nullable StringDEFAULT_ESCAPE_CHARSDefault escape sequence start characters.static @NotNull PatternDEFAULT_FIELD_SEPARATORField separator pattern.static @NotNull PatternDEFAULT_LINE_SEPARATORLine separator pattern.static @Nullable StringDEFAULT_NULL_STRINGA string value to be replaced with NULL.static @NotNull StringDEFAULT_QUOTE_CHARSQuote charactersstatic @org.jetbrains.annotations.Nullable booleanDEFAULT_TRIM_SPACESWhether leading and trailing spaces should be trimmed.static StringNAMEFormat name.-
Fields inherited from class org.apache.ignite.internal.processors.bulkload.BulkLoadFormat
DEFAULT_INPUT_CHARSET
-
-
Constructor Summary
Constructors Constructor Description BulkLoadCsvFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable PatterncommentChars()Returns the line comment start pattern.voidcommentChars(@Nullable Pattern commentChars)Sets the line comment start pattern.@Nullable StringescapeChars()Returns the escape characters.voidescapeChars(@Nullable String escapeChars)Sets the escape characters.@Nullable PatternfieldSeparator()Returns the field separator pattern.voidfieldSeparator(@Nullable Pattern fieldSeparator)Sets the field separator pattern.@Nullable StringinputCharsetName()Returns the input file charset name, null if not specified.voidinputCharsetName(@Nullable String inputCharsetName)Sets the input file charset name.@Nullable PatternlineSeparator()Returns the line separator pattern.voidlineSeparator(@Nullable Pattern lineSeparator)Sets the line separator pattern.Stringname()Returns the name of the format.StringnullString()Returns the string to be used for null values, null if not specified.voidnullString(@Nullable String nullString)Sets the string to be used for null values.@Nullable StringquoteChars()Returns the quote characters.voidquoteChars(@Nullable String quoteChars)Sets the quote characters.booleantrim()Returns whether the field content must be trimmed of leading and trailing spaces.voidtrim(@org.jetbrains.annotations.Nullable boolean trim)Sets whether the field content must be trimmed of leading and trailing spaces.
-
-
-
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
-
NAME
public static final String NAME
Format name.- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public String name()
Returns the name of the format.- Specified by:
namein classBulkLoadFormat- 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.
-
-