Class 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 Details

    • 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 Details

    • 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: