Interface EsTupleMapper
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultEsTupleMapper
TupleMapper defines how to extract source, index, type, and id from tuple for ElasticSearch.
-
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.
-
Method Details
-
getSource
Extracts source from tuple.- Parameters:
tuple
- source tuple- Returns:
- source
-
getIndex
Extracts index from tuple.- Parameters:
tuple
- source tuple- Returns:
- index
-
getType
Extracts type from tuple.- Parameters:
tuple
- source tuple- Returns:
- type
-
getId
Extracts id from tuple.- Parameters:
tuple
- source tuple- Returns:
- id
-
getParams
Extracts params from tuple if available.- Parameters:
tuple
- source tupledefaultValue
- value to return if params are missing- Returns:
- params
-