Package io.revealbi.core.data
Class RVExcelDataSourceItem
java.lang.Object
io.revealbi.core.data.RVDataSourceItem
io.revealbi.core.data.RVResourceBasedDataSourceItem
io.revealbi.core.data.RVExcelDataSourceItem
- Direct Known Subclasses:
RVGoogleSheetDataSourceItem
The data source item used to represent a dataset from an Excel file, it includes information like the
name of the sheet to get data from and the range to use when loading data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf you set this flag tofalsethe columns will be automatically named as 'COL1', 'COL2', etc.Named range to get data from, it's optional and if no specified the sheet specified ingetSheet()will be used.Returns the name of the pivot table to get data from within the Excel file.getRange()Definition of the range to load data from in the specified sheet.getSheet()Name of the sheet in the worksheet to get the data from, if not specified andgetNamedRange()isnull, then the first sheet in the file will be used.booleansetFirstRowContainsLabels(boolean value) If you set this flag tofalsethe columns will be automatically named as 'COL1', 'COL2', etc.setNamedRange(String value) Named range to get data from, it's optional and if no specified the sheet specified ingetSheet()will be used.setPivotTable(String value) Sets the name of the pivot table to get data from within the Excel file.setRange(RVExcelRange value) Definition of the range to load data from in the specified sheet.Name of the sheet in the worksheet to get the data from, if not specified andgetNamedRange()isnull, then the first sheet in the file will be used.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
-
RVExcelDataSourceItem
-
-
Method Details
-
setSheet
Name of the sheet in the worksheet to get the data from, if not specified andgetNamedRange()isnull, then the first sheet in the file will be used.- Parameters:
value-- Returns:
-
getSheet
Name of the sheet in the worksheet to get the data from, if not specified andgetNamedRange()isnull, then the first sheet in the file will be used.- Returns:
-
setRange
Definition of the range to load data from in the specified sheet.- Parameters:
value-- Returns:
-
getRange
Definition of the range to load data from in the specified sheet.- Returns:
-
setNamedRange
Named range to get data from, it's optional and if no specified the sheet specified ingetSheet()will be used.- Parameters:
value-- Returns:
-
getNamedRange
Named range to get data from, it's optional and if no specified the sheet specified ingetSheet()will be used.- Returns:
-
setPivotTable
Sets the name of the pivot table to get data from within the Excel file.- Parameters:
value- The pivot table name.- Returns:
- The value that was set.
-
getPivotTable
Returns the name of the pivot table to get data from within the Excel file.- Returns:
- The pivot table name, or
nullif not set.
-
setFirstRowContainsLabels
public boolean setFirstRowContainsLabels(boolean value) If you set this flag tofalsethe columns will be automatically named as 'COL1', 'COL2', etc.- Parameters:
value-- Returns:
-
getFirstRowContainsLabels
public boolean getFirstRowContainsLabels()If you set this flag tofalsethe columns will be automatically named as 'COL1', 'COL2', etc.- Returns:
-