public interface EsTupleMapper extends Serializable
TupleMapper defines how to extract source, index, type, and id from tuple for ElasticSearch.
Modifier and Type | Method and Description |
---|---|
String |
getId(ITuple tuple)
Extracts id from tuple.
|
String |
getIndex(ITuple tuple)
Extracts index from tuple.
|
Map<String,String> |
getParams(ITuple tuple,
Map<String,String> defaultValue)
Extracts params from tuple if available.
|
String |
getSource(ITuple tuple)
Extracts source from tuple.
|
String |
getType(ITuple tuple)
Extracts type from tuple.
|
String getSource(ITuple tuple)
Extracts source from tuple.
tuple
- source tupleString getIndex(ITuple tuple)
Extracts index from tuple.
tuple
- source tupleString getType(ITuple tuple)
Extracts type from tuple.
tuple
- source tupleString getId(ITuple tuple)
Extracts id from tuple.
tuple
- source tupleCopyright © 2019 The Apache Software Foundation. All Rights Reserved.