Package io.revealbi.core.data
Class RVElasticsearchDataSource
java.lang.Object
io.revealbi.core.data.RVDashboardDataSource
io.revealbi.core.data.RVElasticsearchDataSource
- All Implemented Interfaces:
IProcessDataOnServerDataSource
public class RVElasticsearchDataSource
extends RVDashboardDataSource
implements IProcessDataOnServerDataSource
Elasticsearch data source.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(Optional) Gets or sets the hex-encoded SHA-256 fingerprint of the Elasticsearch CA certificate used to establish trust for SSL/TLS connections.(Optional) Gets or sets the flag to control the behavior when SQL queries encounter fields with multiple values.getNodes()Gets or sets the list of Elasticsearch node endpoints to connect to in the cluster.booleanGets the default value for "Process Data on Server" option for this data source.booleanWhen true, the user will not be allowed to change the value for "Process Data on Server" option and the default value will be used.voidsetCertificateFingerprint(String certificateFingerprint) (Optional) Gets or sets the hex-encoded SHA-256 fingerprint of the Elasticsearch CA certificate used to establish trust for SSL/TLS connections.voidsetFieldMultiValueLeniency(Boolean fieldMultiValueLeniency) (Optional) Gets or sets the flag to control the behavior when SQL queries encounter fields with multiple values.voidGets or sets the list of Elasticsearch node endpoints to connect to in the cluster.voidsetProcessDataOnServerDefaultValue(boolean processDataOnServerDefaultValue) Sets the default value for "Process Data on Server" option for this data source.voidsetProcessDataOnServerReadOnly(boolean processDataOnServerReadOnly) When set to true, the user will not be allowed to change the value for "Process Data on Server" option and the default value will be used.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
-
RVElasticsearchDataSource
public RVElasticsearchDataSource()
-
-
Method Details
-
getCertificateFingerprint
(Optional) Gets or sets the hex-encoded SHA-256 fingerprint of the Elasticsearch CA certificate used to establish trust for SSL/TLS connections.- Returns:
-
setCertificateFingerprint
(Optional) Gets or sets the hex-encoded SHA-256 fingerprint of the Elasticsearch CA certificate used to establish trust for SSL/TLS connections.- Parameters:
certificateFingerprint-
-
getNodes
Gets or sets the list of Elasticsearch node endpoints to connect to in the cluster.- Returns:
-
setNodes
Gets or sets the list of Elasticsearch node endpoints to connect to in the cluster.- Parameters:
nodes-
-
getFieldMultiValueLeniency
(Optional) Gets or sets the flag to control the 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.- Returns:
-
setFieldMultiValueLeniency
(Optional) Gets or sets the flag to control the 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.- Parameters:
fieldMultiValueLeniency-
-
getProcessDataOnServerDefaultValue
public boolean getProcessDataOnServerDefaultValue()Gets the default value for "Process Data on Server" option for this data source. The end user can still change the value, unlessgetProcessDataOnServerReadOnly()is true.- Specified by:
getProcessDataOnServerDefaultValuein interfaceIProcessDataOnServerDataSource- Returns:
- the default value for the "Process Data on Server" option
-
setProcessDataOnServerDefaultValue
public void setProcessDataOnServerDefaultValue(boolean processDataOnServerDefaultValue) Sets the default value for "Process Data on Server" option for this data source. The end user can still change the value, unlesssetProcessDataOnServerReadOnly(boolean)is true.- Specified by:
setProcessDataOnServerDefaultValuein interfaceIProcessDataOnServerDataSource- Parameters:
processDataOnServerDefaultValue- the default value
-
getProcessDataOnServerReadOnly
public boolean getProcessDataOnServerReadOnly()When true, the user will not be allowed to change the value for "Process Data on Server" option and the default value will be used.- Specified by:
getProcessDataOnServerReadOnlyin interfaceIProcessDataOnServerDataSource- Returns:
- true if the option is read-only
-
setProcessDataOnServerReadOnly
public void setProcessDataOnServerReadOnly(boolean processDataOnServerReadOnly) When set to true, the user will not be allowed to change the value for "Process Data on Server" option and the default value will be used.- Specified by:
setProcessDataOnServerReadOnlyin interfaceIProcessDataOnServerDataSource- Parameters:
processDataOnServerReadOnly- true to make the option read-only
-
getProviderKey
- Specified by:
getProviderKeyin classRVDashboardDataSource
-