Class RVDuckDBDataSourceItem

java.lang.Object
io.revealbi.core.data.RVDataSourceItem
io.revealbi.core.data.RVDuckDBDataSourceItem
All Implemented Interfaces:
ICustomQuerySupport, IProcessDataOnServerDataSourceItem

public class RVDuckDBDataSourceItem extends RVDataSourceItem implements IProcessDataOnServerDataSourceItem, ICustomQuerySupport
DuckDB data source item.
  • Constructor Details

  • Method Details

    • getSchema

      public String getSchema()
      Name of the schema to connect to.
      Returns:
      the name of the schema to connect to
    • setSchema

      public void setSchema(String schema)
      Name of the schema to connect to.
      Parameters:
      schema - the name of the schema to connect to
    • getTable

      public String getTable()
      Name of the table (or view) to get data from.
      Returns:
      the name of the table (or view) to get data from
    • setTable

      public void setTable(String table)
      Name of the table (or view) to get data from.
      Parameters:
      table - the name of the table (or view) to get data from
    • getCustomQuery

      public String getCustomQuery()
      (Optional) Custom SQL query to use when getting data.
      Specified by:
      getCustomQuery in interface ICustomQuerySupport
      Returns:
      the custom SQL query
    • setCustomQuery

      public void setCustomQuery(String customQuery)
      (Optional) Custom SQL query to use when getting data.
      Specified by:
      setCustomQuery in interface ICustomQuerySupport
      Parameters:
      customQuery - the custom SQL query
    • getProcedure

      public String getProcedure()
      (Optional) name of the stored procedure to get data from, the procedure is expected to return a result set and might have multiple parameters.
      Returns:
      the name of the stored procedure
    • setProcedure

      public void setProcedure(String procedure)
      (Optional) name of the stored procedure to get data from, the procedure is expected to return a result set and might have multiple parameters.
      Parameters:
      procedure - the name of the stored procedure
    • getProcedureParameters

      public HashMap<String,Object> getProcedureParameters()
      Parameters to be passed to the stored procedure, if there is such specified in getProcedure().
      Returns:
      the procedure parameters
    • setProcedureParameters

      public void setProcedureParameters(HashMap<String,Object> procedureParameters)
      Parameters to be passed to the stored procedure, if there is such specified in getProcedure().
      Parameters:
      procedureParameters - the procedure parameters
    • getProcessDataOnServer

      public boolean getProcessDataOnServer()
      Description copied from interface: IProcessDataOnServerDataSourceItem
      Configures if the "Process Data on Server" option is turned on for this item (table or view).
      Specified by:
      getProcessDataOnServer in interface IProcessDataOnServerDataSourceItem
      Returns:
      Configures if the "Process Data on Server" option is turned on for this item (table or view).
    • setProcessDataOnServer

      public void setProcessDataOnServer(boolean value)
      Description copied from interface: IProcessDataOnServerDataSourceItem
      Configures if the "Process Data on Server" option is turned on for this item (table or view).
      Specified by:
      setProcessDataOnServer in interface IProcessDataOnServerDataSourceItem
      Parameters:
      value - Configures if the "Process Data on Server" option is turned on for this item (table or view).