Package io.revealbi.core.data
Class RVMongoDBDataSourceItem
java.lang.Object
io.revealbi.core.data.RVDataSourceItem
io.revealbi.core.data.RVMongoDBDataSourceItem
- All Implemented Interfaces:
IProcessDataOnServerDataSourceItem
public class RVMongoDBDataSourceItem
extends RVDataSourceItem
implements IProcessDataOnServerDataSourceItem
Data source item for MongoDB. Represents a specific collection within a MongoDB database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets or sets the name of the collection.(Optional) Custom MongoDB query to use when getting databooleanReturns whether data processing is performed on the Reveal server.voidsetCollection(String collection) Gets or sets the name of the collection.voidsetCustomQuery(String customQuery) (Optional) Custom MongoDB query to use when getting datavoidsetProcessDataOnServer(boolean processDataOnServer) Sets whether data processing is performed on the Reveal server.Methods inherited from class io.revealbi.core.data.RVDataSourceItem
getDataSource, getDefaultRefreshRate, getDescription, getId, getSubtitle, getTitle, setDataSource, setDefaultRefreshRate, setDescription, setId, setSubtitle, setTitle
-
Constructor Details
-
RVMongoDBDataSourceItem
-
-
Method Details
-
getCollection
Gets or sets the name of the collection.- Returns:
-
setCollection
Gets or sets the name of the collection.- Parameters:
collection-
-
getCustomQuery
(Optional) Custom MongoDB query to use when getting data- Returns:
-
setCustomQuery
(Optional) Custom MongoDB query to use when getting data- Parameters:
customQuery-
-
getProcessDataOnServer
public boolean getProcessDataOnServer()Returns whether data processing is performed on the Reveal server.- Specified by:
getProcessDataOnServerin interfaceIProcessDataOnServerDataSourceItem- Returns:
trueif data is processed on the server;falseto process in the client.
-
setProcessDataOnServer
public void setProcessDataOnServer(boolean processDataOnServer) Sets whether data processing is performed on the Reveal server.- Specified by:
setProcessDataOnServerin interfaceIProcessDataOnServerDataSourceItem- Parameters:
processDataOnServer-trueto process data on the server;falseto process in the client.
-