public class ElasticSearchDataSetDef extends DataSetDef
DataSet definition class for ElasticSearch provider.
This dataset provides these configuration parameters:
serverURL - The URL for the ElasticSearch server instance (MANDATORY)
clusterName - The name of the cluster in the ElasticSearch server.
index - The name of the index. It can be a concrete index name, a collection of index names, comma separated, or the keyword _all for working with all available indexes in the ElasticSearch server (OPTIONAL - Defaults to _all)
type - The type name. Only applicable if index parameter is set. It can be a concrete type name, a collection of type names, comma separated, or the keyword _all for working with all available type in the ElasticSearch server (OPTIONAL - Defaults to _all)
query - You can perform your custom ElasticSearch DSL query for this data provider. If this parameter exist, the parameters index, type and field are skipped. (OPTIONAL)
relevance - The relevance value for search results (OPTIONAL)
columns - If not specified, the column definitions for the ElasticSearch dataset are automatically given by querying the index mappings. Otherwise, you can bind a column to another datatype in dashbuilder application using this parameters (OPTIONAL)
| Modifier and Type | Class and Description |
|---|---|
static class |
ElasticSearchDataSetDef.ElasticSearchKeywords |
| Modifier and Type | Field and Description |
|---|---|
protected String |
clusterName |
protected ColumnSort |
columnSort |
protected @NotNull(groups=ElasticSearchDataSetDefValidation.class) @Size(min=1,groups=ElasticSearchDataSetDefValidation.class) String |
index
Index/es to query.
|
protected String |
query |
protected String |
relevance |
protected @NotNull(groups=ElasticSearchDataSetDefValidation.class) @Size(min=1,groups=ElasticSearchDataSetDefValidation.class) String |
serverURL |
protected String |
type
Type/es to query.
|
allColumnsEnabled, cacheEnabled, cacheMaxRows, columns, dataSetFilter, isPublic, name, patternMap, propertyMap, provider, pushEnabled, pushMaxSize, refreshAlways, refreshTime, UUID| Constructor and Description |
|---|
ElasticSearchDataSetDef() |
| Modifier and Type | Method and Description |
|---|---|
DataSetDef |
clone() |
boolean |
equals(Object obj) |
Integer |
getCacheMaxRows() |
String |
getClusterName() |
ColumnSort |
getColumnSort() |
String |
getIndex() |
String |
getQuery() |
String |
getRelevance() |
String |
getServerURL() |
String |
getType() |
int |
hashCode() |
boolean |
isCacheEnabled() |
void |
setCacheEnabled(boolean cacheEnabled) |
void |
setCacheMaxRows(Integer cacheMaxRows) |
void |
setClusterName(String clusterName) |
void |
setColumnSort(ColumnSort columnSort) |
void |
setIndex(String index) |
void |
setQuery(String query) |
void |
setRelevance(String relevance) |
void |
setServerURL(String serverURL) |
void |
setType(String type) |
String |
toString() |
addColumn, clone, getColumnById, getColumns, getDataSetFilter, getName, getPattern, getProperty, getPropertyNames, getProvider, getPushMaxSize, getRefreshTime, getRefreshTimeAmount, getUUID, isAllColumnsEnabled, isPublic, isPushEnabled, isRefreshAlways, setAllColumnsEnabled, setColumns, setDataSetFilter, setName, setPattern, setProperty, setProvider, setPublic, setPushEnabled, setPushMaxSize, setRefreshAlways, setRefreshTime, setUUID@NotNull(groups=ElasticSearchDataSetDefValidation.class) @Size(min=1, groups=ElasticSearchDataSetDefValidation.class) protected @NotNull(groups=ElasticSearchDataSetDefValidation.class) @Size(min=1,groups=ElasticSearchDataSetDefValidation.class) String serverURL
protected String clusterName
@NotNull(groups=ElasticSearchDataSetDefValidation.class) @Size(min=1, groups=ElasticSearchDataSetDefValidation.class) protected @NotNull(groups=ElasticSearchDataSetDefValidation.class) @Size(min=1,groups=ElasticSearchDataSetDefValidation.class) String index
protected String type
protected String query
protected String relevance
protected ColumnSort columnSort
public String getServerURL()
public void setServerURL(String serverURL)
public String getClusterName()
public void setClusterName(String clusterName)
public String getIndex()
public void setIndex(String index)
public String getType()
public void setType(String type)
public String getQuery()
public void setQuery(String query)
public String getRelevance()
public void setRelevance(String relevance)
public boolean isCacheEnabled()
isCacheEnabled in class DataSetDefpublic void setCacheEnabled(boolean cacheEnabled)
setCacheEnabled in class DataSetDefpublic Integer getCacheMaxRows()
getCacheMaxRows in class DataSetDefpublic void setCacheMaxRows(Integer cacheMaxRows)
setCacheMaxRows in class DataSetDefpublic ColumnSort getColumnSort()
public void setColumnSort(ColumnSort columnSort)
public boolean equals(Object obj)
equals in class DataSetDefpublic int hashCode()
hashCode in class DataSetDefpublic DataSetDef clone()
clone in class DataSetDefCopyright © 2017–2020 JBoss by Red Hat. All rights reserved.