Class DefaultEsTupleMapper
java.lang.Object
org.apache.storm.elasticsearch.common.DefaultEsTupleMapper
- All Implemented Interfaces:
Serializable
,EsTupleMapper
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExtracts id from tuple.Extracts index from tuple.Extracts params from tuple if available.Extracts source from tuple.Extracts type from tuple.
-
Constructor Details
-
DefaultEsTupleMapper
public DefaultEsTupleMapper()
-
-
Method Details
-
getSource
Description copied from interface:EsTupleMapper
Extracts source from tuple.- Specified by:
getSource
in interfaceEsTupleMapper
- Parameters:
tuple
- source tuple- Returns:
- source
-
getIndex
Description copied from interface:EsTupleMapper
Extracts index from tuple.- Specified by:
getIndex
in interfaceEsTupleMapper
- Parameters:
tuple
- source tuple- Returns:
- index
-
getType
Description copied from interface:EsTupleMapper
Extracts type from tuple.- Specified by:
getType
in interfaceEsTupleMapper
- Parameters:
tuple
- source tuple- Returns:
- type
-
getId
Description copied from interface:EsTupleMapper
Extracts id from tuple.- Specified by:
getId
in interfaceEsTupleMapper
- Parameters:
tuple
- source tuple- Returns:
- id
-
getParams
Description copied from interface:EsTupleMapper
Extracts params from tuple if available.- Specified by:
getParams
in interfaceEsTupleMapper
- Parameters:
tuple
- source tupledefaultValue
- value to return if params are missing- Returns:
- params
-