public class JsonToNDJson extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JsonToNDJson.Mode |
Modifier and Type | Field and Description |
---|---|
static String |
NULL_VALUE |
Constructor and Description |
---|
JsonToNDJson(List<org.thales.punch.settings.api.ISettingsMap> jsonFields,
List<org.thales.punch.settings.api.ISettingsMap> esMeta) |
Modifier and Type | Method and Description |
---|---|
List<String> |
transform(LinkedBlockingQueue<String> elements,
String mode)
Receives ES query results, extract hits.hits for every result, format every tuple and return them as list.
|
public static final String NULL_VALUE
public List<String> transform(LinkedBlockingQueue<String> elements, String mode)
elements
- documents returned by ES querymode
- Mode hits_hits or rawCopyright © 2023. All rights reserved.