Package io.revealbi.core.data
Class RVMongoDBDataSourceItem
java.lang.Object
io.revealbi.core.data.RVDataSourceItem
io.revealbi.core.data.RVMongoDBDataSourceItem
- All Implemented Interfaces:
ICustomQuerySupport,IProcessDataOnServerDataSourceItem
public class RVMongoDBDataSourceItem
extends RVDataSourceItem
implements IProcessDataOnServerDataSourceItem, ICustomQuerySupport
Data source item for MongoDB. Represents a specific collection within a MongoDB database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns whether MongoDB may use disk for aggregation operations.Gets 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.voidsetAllowDiskUse(Boolean allowDiskUse) Sets whether MongoDB may use disk for aggregation operations.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- Specified by:
getCustomQueryin interfaceICustomQuerySupport- Returns:
-
setCustomQuery
(Optional) Custom MongoDB query to use when getting data- Specified by:
setCustomQueryin interfaceICustomQuerySupport- 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.
-
getAllowDiskUse
Returns whether MongoDB may use disk for aggregation operations.- Returns:
- whether MongoDB may use disk for aggregation operations.
-
setAllowDiskUse
Sets whether MongoDB may use disk for aggregation operations.- Parameters:
allowDiskUse- whether MongoDB may use disk for aggregation operations.
-