public class ElasticDocumentBuilder extends Object implements Serializable
Constructor and Description |
---|
ElasticDocumentBuilder(org.thales.punch.settings.api.ISettingsMap componentSettings) |
Modifier and Type | Method and Description |
---|---|
String |
getDocumentIdField() |
String |
getDocumentType()
Type mapping are deprecated since ES7, but we still need compatibility with older clusters.
|
String |
getDocumentValue(org.apache.storm.tuple.Tuple t,
String topologyError) |
String |
getId(org.apache.storm.tuple.Tuple tuple) |
String |
getIndex(org.apache.storm.tuple.Tuple t)
Return the target index depending on the input configuration
|
boolean |
isNullIdsAreErrors() |
public ElasticDocumentBuilder(org.thales.punch.settings.api.ISettingsMap componentSettings)
componentSettings
- the elasticsearch component settingspublic String getIndex(org.apache.storm.tuple.Tuple t)
t
- an input tuplepublic String getDocumentValue(org.apache.storm.tuple.Tuple t, String topologyError)
t
- an incoming tupletopologyError
- an optional string that will be recorded in a special error field in the document.
if null, nothing will be appended.public String getDocumentType()
public String getDocumentIdField()
public String getId(org.apache.storm.tuple.Tuple tuple)
tuple
- tuplepublic boolean isNullIdsAreErrors()
Copyright © 2023. All rights reserved.