Package org.apache.storm.elasticsearch
Class DefaultEsLookupResultOutput
java.lang.Object
org.apache.storm.elasticsearch.DefaultEsLookupResultOutput
- All Implemented Interfaces:
Serializable,EsLookupResultOutput
Default implementation of
EsLookupResultOutput.
Outputs the index, type, id and source as strings.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEsLookupResultOutput(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
-
Constructor Details
-
DefaultEsLookupResultOutput
public DefaultEsLookupResultOutput(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
toValues
Description copied from interface:EsLookupResultOutputConvert Elasticsearch response to a collection ofValues.- Specified by:
toValuesin interfaceEsLookupResultOutput- Returns:
- collection of values to emit.
-
fields
Description copied from interface:EsLookupResultOutputFieldsto be declared for output.- Specified by:
fieldsin interfaceEsLookupResultOutput- Returns:
- output fields to declare.
-