@groovy.transform.CompileStatic class ElasticDatasourceFactory extends java.lang.Object implements EntityDatasourceFactory
To use this:
1. add a datasource under the entity-facade element in the Moqui Conf file; for example:
| Modifiers | Name | Description |
|---|---|---|
protected java.util.Set<java.lang.String> |
checkedEntityIndexSet |
|
protected java.lang.String |
clusterName |
|
protected MNode |
datasourceNode |
|
protected EntityFacadeImpl |
efi |
|
protected java.lang.String |
indexPrefix |
|
protected static org.slf4j.Logger |
logger |
| Type | Name and description |
|---|---|
static java.util.Set<java.lang.String> |
esEntityAddKeywordSet |
static java.util.Set<java.lang.String> |
esEntityIsKeywordSet |
static java.util.Map<java.lang.String, java.lang.String> |
esEntityTypeMap |
| Constructor and description |
|---|
ElasticDatasourceFactory() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
int |
checkAndAddAllTables() |
|
boolean |
checkAndAddTable(java.lang.String entityName) |
|
void |
checkCreateDocumentIndex(EntityDefinition ed) |
|
boolean |
checkTableExists(java.lang.String entityName) |
|
static java.lang.Object |
convertFieldValue(FieldInfo fi, java.lang.Object fValue) |
|
void |
createBulk(java.util.List<EntityValue> valueList) |
|
void |
destroy() |
|
jakarta.activation.DataSource |
getDataSource() |
|
ElasticClient |
getElasticClient() |
|
java.lang.String |
getIndexName(EntityDefinition ed) |
|
EntityDatasourceFactory |
init(EntityFacade ef, MNode datasourceNode) |
|
static java.util.Map |
makeElasticEntityMapping(EntityDefinition ed) |
|
static java.util.Map |
makeEntityFieldPropertyMap(FieldInfo fieldInfo) |
|
EntityFind |
makeEntityFind(java.lang.String entityName) |
|
EntityValue |
makeEntityValue(java.lang.String entityName) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Groovy Documentation