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
Extracts source from tuple.
getSource
in interface EsTupleMapper
tuple
- source tuplepublic String getIndex(ITuple tuple)
EsTupleMapper
Extracts index from tuple.
getIndex
in interface EsTupleMapper
tuple
- source tuplepublic String getType(ITuple tuple)
EsTupleMapper
Extracts type from tuple.
getType
in interface EsTupleMapper
tuple
- source tuplepublic String getId(ITuple tuple)
EsTupleMapper
Extracts id from tuple.
getId
in interface EsTupleMapper
tuple
- source tuplepublic Map<String,String> getParams(ITuple tuple, Map<String,String> defaultValue)
EsTupleMapper
Extracts params from tuple if available.
getParams
in interface EsTupleMapper
tuple
- source tupledefaultValue
- value to return if params are missingCopyright © 2022 The Apache Software Foundation. All rights reserved.