public static String toJSONString(final Props props, final boolean localOnly) { final Map<String, String> map = toStringMap(props, localOnly); return JSONUtils.toJSON(map); }
public static Map<String, Object> toHierarchicalMap(final Props props) { final Map<String, Object> propsMap = new HashMap<>(); propsMap.put("source", props.getSource()); propsMap.put("props", toStringMap(props, true)); if (props.getParent() != null) { propsMap.put("parent", toHierarchicalMap(props.getParent())); } return propsMap; }
objMap.put(OUTPUT_PROPS_PARAM, PropsUtils.toStringMap(this.outputProps, true));
Maps.difference(toStringMap(oldProps, false), toStringMap(newProps, false));
final Map<String, String> properties = PropsUtils.toStringMap(jobProps, true); ret.put("props", properties);
/** * To json string string. * * @param props the props * @param localOnly the local only * @return the string */ public static String toJSONString(final Props props, final boolean localOnly) { final Map<String, String> map = toStringMap(props, localOnly); return JSONUtils.toJSON(map); }
public static String toJSONString(Props props, boolean localOnly) { Map<String, String> map = toStringMap(props, localOnly); return JSONUtils.toJSON(map); }
public static Map<String,Object> toHierarchicalMap(Props props) { Map<String,Object> propsMap = new HashMap<String,Object>(); propsMap.put("source", props.getSource()); propsMap.put("props", toStringMap(props, true)); if (props.getParent() != null) { propsMap.put("parent", toHierarchicalMap(props.getParent())); } return propsMap; } }
/** * To hierarchical map map. * * @param props the props * @return the map */ public static Map<String, Object> toHierarchicalMap(final Props props) { final Map<String, Object> propsMap = new HashMap<>(); propsMap.put("source", props.getSource()); propsMap.put("props", toStringMap(props, true)); if (props.getParent() != null) { propsMap.put("parent", toHierarchicalMap(props.getParent())); } return propsMap; }
objMap.put(OUTPUT_PROPS_PARAM, PropsUtils.toStringMap(outputProps, true));
objMap.put(OUTPUT_PROPS_PARAM, PropsUtils.toStringMap(this.outputProps, true));
Maps.difference(toStringMap(oldProps, false), toStringMap(newProps, false));
Map<String,String> properties = PropsUtils.toStringMap(props, true); ret.put("props", properties);