Package io.revealbi.core.data
Class RVDuckDBDataSource
java.lang.Object
io.revealbi.core.data.RVDashboardDataSource
io.revealbi.core.data.RVDuckDBDataSource
- All Implemented Interfaces:
IProcessDataOnServerDataSource
public class RVDuckDBDataSource
extends RVDashboardDataSource
implements IProcessDataOnServerDataSource
DuckDB data source.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPath of the DuckDB database file.booleanGets the default value for "Process Data on Server" option for this data source.booleanGets whether the user is allowed to change the value for "Process Data on Server" option.Name of the schema to connect to.voidsetDatabase(String database) Path of the DuckDB database file.voidsetProcessDataOnServerDefaultValue(boolean value) Sets the default value for "Process Data on Server" option for this data source.voidsetProcessDataOnServerReadOnly(boolean value) Sets whether the user is allowed to change the value for "Process Data on Server" option.voidName of the schema to connect to.Methods inherited from class io.revealbi.core.data.RVDashboardDataSource
getDefaultRefreshRate, getId, getSubtitle, getTitle, setDefaultRefreshRate, setId, setSubtitle, setTitle
-
Field Details
-
PROVIDER_KEY
- See Also:
-
-
Constructor Details
-
RVDuckDBDataSource
public RVDuckDBDataSource()
-
-
Method Details
-
getDatabase
Path of the DuckDB database file. Accepts both absolute paths and relative paths. For MotherDuck use "md:databaseName" as the database value.- Returns:
- the path of the database to connect to
-
setDatabase
Path of the DuckDB database file. Accepts both absolute paths and relative paths. For MotherDuck use "md:databaseName" as the database value.- Parameters:
database- the path of the database to connect to
-
getSchema
Name of the schema to connect to.- Returns:
- the name of the schema to connect to
-
setSchema
Name of the schema to connect to.- Parameters:
schema- the name of the schema to connect to
-
getProcessDataOnServerDefaultValue
public boolean getProcessDataOnServerDefaultValue()Description copied from interface:IProcessDataOnServerDataSourceGets the default value for "Process Data on Server" option for this data source. The end user can still change the value, unlessIProcessDataOnServerDataSource.getProcessDataOnServerReadOnly()is true.- Specified by:
getProcessDataOnServerDefaultValuein interfaceIProcessDataOnServerDataSource- Returns:
- the default value for the "Process Data on Server" option
-
setProcessDataOnServerDefaultValue
public void setProcessDataOnServerDefaultValue(boolean value) Description copied from interface:IProcessDataOnServerDataSourceSets the default value for "Process Data on Server" option for this data source. The end user can still change the value, unlessIProcessDataOnServerDataSource.setProcessDataOnServerReadOnly(boolean)is true.- Specified by:
setProcessDataOnServerDefaultValuein interfaceIProcessDataOnServerDataSource- Parameters:
value- the default value for the "Process Data on Server" option
-
getProcessDataOnServerReadOnly
public boolean getProcessDataOnServerReadOnly()Description copied from interface:IProcessDataOnServerDataSourceGets whether the user is allowed to change the value for "Process Data on Server" option. When true, the default value will always be used.- Specified by:
getProcessDataOnServerReadOnlyin interfaceIProcessDataOnServerDataSource- Returns:
- true if the option is read-only
-
setProcessDataOnServerReadOnly
public void setProcessDataOnServerReadOnly(boolean value) Description copied from interface:IProcessDataOnServerDataSourceSets whether the user is allowed to change the value for "Process Data on Server" option. When set to true, the default value will always be used.- Specified by:
setProcessDataOnServerReadOnlyin interfaceIProcessDataOnServerDataSource- Parameters:
value- true to make the option read-only
-
getProviderKey
- Specified by:
getProviderKeyin classRVDashboardDataSource
-