Class RVCsvDataSourceItem
- java.lang.Object
-
- com.infragistics.reveal.sdk.api.model.RVDataSourceItem
-
- com.infragistics.reveal.sdk.api.model.RVResourceBasedDataSourceItem
-
- com.infragistics.reveal.sdk.api.model.RVCsvDataSourceItem
-
public class RVCsvDataSourceItem extends RVResourceBasedDataSourceItem
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
Constructors Constructor Description RVCsvDataSourceItem(IRVResourceItem resourceItem)
Creates a new CSV item getting data from the specified resource item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
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).String
getEncoding()
The encoding to use, if not specified Reveal will try to detect it automatically.String
getSeparator()
The separator to use, one of ',', ';', or 'TAB'.String
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).String
setEncoding(String value)
The encoding to use, if not specified Reveal will try to detect it automatically.String
setSeparator(String value)
The separator to use, one of ',', ';', or 'TAB'.-
Methods inherited from class com.infragistics.reveal.sdk.api.model.RVResourceBasedDataSourceItem
getResourceItem, setResourceItem
-
Methods inherited from class com.infragistics.reveal.sdk.api.model.RVDataSourceItem
getDataSource, getDefaultRefreshRate, getDescription, getId, getSubtitle, getTitle, setDataSource, setDefaultRefreshRate, setDescription, setId, setSubtitle, setTitle
-
-
-
-
Constructor Detail
-
RVCsvDataSourceItem
public RVCsvDataSourceItem(IRVResourceItem resourceItem)
Creates a new CSV item getting data from the specified resource item.- Parameters:
resourceItem
- The resource item to download the file from.
-
-
Method Detail
-
setDateFormat
public String 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).- Parameters:
value
-- Returns:
-
getDateFormat
public String 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
public String setEncoding(String value)
The encoding to use, if not specified Reveal will try to detect it automatically.- Parameters:
value
-- Returns:
-
getEncoding
public String getEncoding()
The encoding to use, if not specified Reveal will try to detect it automatically.- Returns:
-
setSeparator
public String setSeparator(String value)
The separator to use, one of ',', ';', or 'TAB'. If not specified it will be detected automatically.- Parameters:
value
-- Returns:
-
getSeparator
public String getSeparator()
The separator to use, one of ',', ';', or 'TAB'. If not specified it will be detected automatically.- Returns:
-
-