public class ElasticsearchMetadataUtil extends Object
Constructor and Description |
---|
ElasticsearchMetadataUtil() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
asMap(com.fasterxml.jackson.databind.JsonNode node)
get JsonNode as Map.
|
static String |
getId(Map<String,Object> metadata)
get id to use based on supplied parameters.
|
static String |
getId(StreamsDatum datum)
get id to use based on supplied parameters.
|
static String |
getIndex(Map<String,Object> metadata,
ElasticsearchReaderConfiguration config)
get Index to use based on supplied parameters.
|
static String |
getIndex(Map<String,Object> metadata,
ElasticsearchWriterConfiguration config)
get Index to use based on supplied parameters.
|
static String |
getType(Map<String,Object> metadata,
ElasticsearchReaderConfiguration config)
get Type to use based on supplied parameters.
|
static String |
getType(Map<String,Object> metadata,
ElasticsearchWriterConfiguration config)
get Type to use based on supplied parameters.
|
public static String getIndex(Map<String,Object> metadata, ElasticsearchWriterConfiguration config)
metadata
- metadataconfig
- configpublic static String getIndex(Map<String,Object> metadata, ElasticsearchReaderConfiguration config)
metadata
- metadataconfig
- configpublic static String getType(Map<String,Object> metadata, ElasticsearchWriterConfiguration config)
metadata
- metadataconfig
- configpublic static String getType(Map<String,Object> metadata, ElasticsearchReaderConfiguration config)
metadata
- metadataconfig
- configpublic static String getId(StreamsDatum datum)
datum
- datumpublic static String getId(Map<String,Object> metadata)
metadata
- metadataCopyright © 2018 The Apache Software Foundation. All rights reserved.