Package io.revealbi.core.data
Class RVElasticsearchDataSourceItem
java.lang.Object
io.revealbi.core.data.RVDataSourceItem
io.revealbi.core.data.RVElasticsearchDataSourceItem
- All Implemented Interfaces:
IProcessDataOnServerDataSourceItem
public class RVElasticsearchDataSourceItem
extends RVDataSourceItem
implements IProcessDataOnServerDataSourceItem
Elasticsearch data source item
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(Optional) Custom Elasticsearch SQL query to execute instead of using the default index query.(Optional) Controls behavior when SQL queries encounter fields with multiple values.getIndex()The name of the Elasticsearch index to query.booleanReturns whether data processing is performed on the Reveal server.voidsetCustomQuery(String customQuery) (Optional) Custom Elasticsearch SQL query to execute instead of using the default index query.voidsetFieldMultiValueLeniency(Boolean fieldMultiValueLeniency) (Optional) Controls behavior when SQL queries encounter fields with multiple values.voidThe name of the Elasticsearch index to query.voidsetProcessDataOnServer(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
-
RVElasticsearchDataSourceItem
-
-
Method Details
-
getIndex
The name of the Elasticsearch index to query.- Returns:
- The name of the Elasticsearch index to query.
-
setIndex
The name of the Elasticsearch index to query.- Parameters:
index- The name of the Elasticsearch index to query.
-
getFieldMultiValueLeniency
(Optional) Controls behavior when SQL queries encounter fields with multiple values. If false, an error is returned for fields containing array values. If true, returns the first value from the array with no guarantee of consistent ordering. Defaults tofalse.- Returns:
- (Optional) Controls behavior when SQL queries encounter fields with multiple values. If false, an error is returned for fields containing array values. If true, returns the first value from the array with no guarantee of consistent ordering. Defaults to
false.
-
setFieldMultiValueLeniency
(Optional) Controls behavior when SQL queries encounter fields with multiple values. If false, an error is returned for fields containing array values. If true, returns the first value from the array with no guarantee of consistent ordering. Defaults tofalse.- Parameters:
fieldMultiValueLeniency- (Optional) Controls behavior when SQL queries encounter fields with multiple values. If false, an error is returned for fields containing array values. If true, returns the first value from the array with no guarantee of consistent ordering. Defaults tofalse.
-
getCustomQuery
(Optional) Custom Elasticsearch SQL query to execute instead of using the default index query.- Returns:
- (Optional) Custom Elasticsearch SQL query to execute instead of using the default index query.
-
setCustomQuery
(Optional) Custom Elasticsearch SQL query to execute instead of using the default index query.- Parameters:
customQuery- (Optional) Custom Elasticsearch SQL query to execute instead of using the default index query.
-
getProcessDataOnServer
public boolean getProcessDataOnServer()Returns whether data processing is performed on the Reveal server.- Specified by:
getProcessDataOnServerin interfaceIProcessDataOnServerDataSourceItem- Returns:
- Returns whether data processing is performed on the Reveal server.
-
setProcessDataOnServer
public void setProcessDataOnServer(boolean processDataOnServer) Sets whether data processing is performed on the Reveal server.- Specified by:
setProcessDataOnServerin interfaceIProcessDataOnServerDataSourceItem- Parameters:
processDataOnServer- Whether data processing is performed on the Reveal server.
-