Package io.revealbi.core.data
Class RVCsvDataSourceItem
java.lang.Object
io.revealbi.core.data.RVDataSourceItem
io.revealbi.core.data.RVResourceBasedDataSourceItem
io.revealbi.core.data.RVCsvDataSourceItem
The data source item used to represent a dataset from a CSV file, it includes
optional settings like the separator to use when parsing the data.
-
Constructor Summary
ConstructorsConstructorDescriptionRVCsvDataSourceItem(IRVResourceItem resourceItem) Creates a new CSV item getting data from the specified resource item. -
Method Summary
Modifier and TypeMethodDescriptionOptional date format to use when parsing/detecting date columns, if not specified Reveal will try to infer the date format to use for each column (if it detects the column is a date, date time or time column).The encoding to use, if not specified Reveal will try to detect it automatically.The separator to use, one of ',', ';', or 'TAB'.setDateFormat(String value) Optional date format to use when parsing/detecting date columns, if not specified Reveal will try to infer the date format to use for each column (if it detects the column is a date, date time or time column).setEncoding(String value) The encoding to use, if not specified Reveal will try to detect it automatically.setSeparator(String value) The separator to use, one of ',', ';', or 'TAB'.Methods inherited from class io.revealbi.core.data.RVResourceBasedDataSourceItem
getResourceItem, setResourceItemMethods inherited from class io.revealbi.core.data.RVDataSourceItem
getDataSource, getDefaultRefreshRate, getDescription, getId, getSubtitle, getTitle, setDataSource, setDefaultRefreshRate, setDescription, setId, setSubtitle, setTitle
-
Constructor Details
-
RVCsvDataSourceItem
Creates a new CSV item getting data from the specified resource item.- Parameters:
resourceItem- The resource item to download the file from.
-
-
Method Details
-
setDateFormat
Optional date format to use when parsing/detecting date columns, if not specified Reveal will try to infer the date format to use for each column (if it detects the column is a date, date time or time column).- Parameters:
value-- Returns:
-
getDateFormat
Optional date format to use when parsing/detecting date columns, if not specified Reveal will try to infer the date format to use for each column (if it detects the column is a date, date time or time column).- Returns:
-
setEncoding
The encoding to use, if not specified Reveal will try to detect it automatically.- Parameters:
value-- Returns:
-
getEncoding
The encoding to use, if not specified Reveal will try to detect it automatically.- Returns:
-
setSeparator
The separator to use, one of ',', ';', or 'TAB'. If not specified it will be detected automatically.- Parameters:
value-- Returns:
-
getSeparator
The separator to use, one of ',', ';', or 'TAB'. If not specified it will be detected automatically.- Returns:
-