public interface CSVDataSetDefBuilder<T extends DataSetDefBuilder> extends DataSetDefBuilder<T>
DataSetDef dataSetDef = DataSetDefFactory.newCSVDataSetDef()
.uuid("all_employees")
.url("http://myhost.com/file.csv")
.separatorChar(";")
.label("name")
.date("creationDate", "MM/dd/yyyy")
.number("amount", "#.###,00")
.buildDef();
| Modifier and Type | Method and Description |
|---|---|
T |
allColumns(boolean all)
It tells the CSV provider whether to include all the columns in the CSV defintion or
only those columns explicitly declared into the data set definition.
|
T |
date(String columnId,
String pattern)
Set the pattern for the specified date column.
|
T |
datePattern(String pattern)
Set the overall pattern used to read date columns.
|
T |
escapeChar(char escape)
Set the escape char.
|
T |
filePath(String path)
The CSV file path
|
T |
fileURL(String url)
A valid CSV stream URL
|
T |
number(String columnId,
String pattern)
Set the pattern for the specified numeric column.
|
T |
numberPattern(String pattern)
Set the overall pattern used to read numeric columns.
|
T |
quoteChar(char quote)
Set the quote symbol.
|
T |
separatorChar(char separator)
Set the CSV column separator char.
|
T fileURL(String url)
url - A valid URL to a CSV streamT filePath(String path)
path - A valid path to a local file.T allColumns(boolean all)
all - If tru all the CSV columns will be part of the data set (default true).T separatorChar(char separator)
separator - An string for separating columnsT quoteChar(char quote)
quote - A char representing the quote symbolT escapeChar(char escape)
escape - The scape charT date(String columnId, String pattern)
columnId - The id of the columnpattern - The pattern of the column values. (See java.text.DateFormat)SimpleDateFormatT number(String columnId, String pattern)
columnId - The id of the columnpattern - The pattern of the column values. (See java.text.DecimalFormat)DecimalFormatT datePattern(String pattern)
pattern - The pattern of the column values. (See java.text.DateFormat)SimpleDateFormatT numberPattern(String pattern)
pattern - The pattern of the column values. (See java.text.DecimalFormat)DecimalFormatCopyright © 2017–2019 JBoss by Red Hat. All rights reserved.