public class DefaultEsTupleMapper extends Object implements EsTupleMapper
Constructor and Description |
---|
DefaultEsTupleMapper() |
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.
|
public String getSource(ITuple tuple)
EsTupleMapper
getSource
in interface EsTupleMapper
tuple
- source tuplepublic String getIndex(ITuple tuple)
EsTupleMapper
getIndex
in interface EsTupleMapper
tuple
- source tuplepublic String getType(ITuple tuple)
EsTupleMapper
getType
in interface EsTupleMapper
tuple
- source tuplepublic String getId(ITuple tuple)
EsTupleMapper
getId
in interface EsTupleMapper
tuple
- source tuplepublic Map<String,String> getParams(ITuple tuple, Map<String,String> defaultValue)
EsTupleMapper
getParams
in interface EsTupleMapper
tuple
- source tupledefaultValue
- value to return if params are missingCopyright © 2023 The Apache Software Foundation. All rights reserved.