public abstract class ElasticsearchUtil extends Object
Constructor and Description |
---|
ElasticsearchUtil() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
convertFieldAndValuesToElasticsearch(Map<DocumentTypeField,Object> fieldValues)
Method responsable for perform the conversion of
DocumentTypeField to the correct elasticsearch field,
also this will convert the value to the right format. |
static Object |
getValueInMapChain(String key,
Map currentObject)
Returns event field value from the given object by your full key id.
|
static List<Object> |
getValuesInMapChain(String key,
Object currentObject)
Returns event field values from the given object by your full key id.
|
static void |
putValueInMapChain(String key,
Object value,
Map map)
Create a chain of Maps and put the value in the most inner map.
|
public static Object getValueInMapChain(String key, Map currentObject)
key
- the event field identifier.currentObject
- the current object.public static List<Object> getValuesInMapChain(String key, Object currentObject)
key
- the event field identifier.currentObject
- the current object.public static void putValueInMapChain(String key, Object value, Map map)
key
- the id of event for chain identifier.value
- the value to storemap
- the root chain.public static Map<String,Object> convertFieldAndValuesToElasticsearch(Map<DocumentTypeField,Object> fieldValues)
DocumentTypeField
to the correct elasticsearch field,
also this will convert the value to the right format.fieldValues
- the map of DocumentTypeField
and relative value.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.