Class CsvProperties
java.lang.Object
org.gridgain.internal.sql.copy.csv.CsvProperties
CSV format properties.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSpecifies file charset.static final StringSpecifies the character that separates columns within each row (line) of the file.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringSpecifies that the file contains a header line with the names of each column in the file.static final Stringstatic final Stringstatic final StringSpecifies the string that represents a null value.static final Stringstatic final Stringstatic final StringSpecifies that the parsed value should be trimmed. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DELIMITER
Specifies the character that separates columns within each row (line) of the file.- See Also:
-
DFLT_DELIMITER
- See Also:
-
CHARSET
Specifies file charset.- See Also:
-
DFLT_CHARSET
- See Also:
-
NULL
Specifies the string that represents a null value.- See Also:
-
DFLT_NULL
- See Also:
-
TRIM
Specifies that the parsed value should be trimmed.- See Also:
-
DFLT_TRIM
- See Also:
-
HEADER
Specifies that the file contains a header line with the names of each column in the file. On export, the first line contains the column names from the table, and on import, the first line is ignored.- See Also:
-
DFLT_HEADER
- See Also:
-
QUOTE_CHAR
- See Also:
-
DFLT_QUOTE_CHAR
- See Also:
-
ESCAPE_CHAR
- See Also:
-
DFLT_ESCAPE_CHAR
- See Also:
-
STRICT_QUOTES
- See Also:
-
DFLT_STRICT_QUOTES
- See Also:
-
IGNORE_LEADING_WHITESPACE
- See Also:
-
DFLT_IGNORE_LEADING_WHITESPACE
- See Also:
-
IGNORE_QUOATIONS
- See Also:
-
DFLT_IGNORE_QUOATIONS
- See Also:
-
-
Constructor Details
-
CsvProperties
public CsvProperties()
-
-
Method Details
-
validate
Validates the properties.- Parameters:
properties- Properties to validate.- Throws:
PropertyValidationException- If the properties are invalid.
-