io.bigdime.core.commons.StringDescriptorParser Maven / Gradle / Ivy
/**
* Copyright (C) 2015 Stubhub.
*/
package io.bigdime.core.commons;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
/**
* If the input descriptor is defined as text, then the text is parsed as follows:
* @formatter:off
* Case 1: If the src-desc is defined as:
* "src-desc": {
* "input1" : "topic1:par1,par2,par3,"
* }, then
* a map with following entries will be returned.
* {topic1:par1=input1, topic1:par2=input1, topic1:par3=input1}
*
* Case 3: If the src-desc is defined as:
* "src-desc": {
* "input1" : "topic1:"
* },
* a map with following entries will be returned.
* {topic1:par1=input1}
* @author Neeraj Jain
*
*/
public class StringDescriptorParser implements DescriptorParser {
public Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy