@Override public Map<String, ?> unhandleChildKeys(java.util.Map<String, String> value, String pathPrefix) { if (value == null) { return null; } return io.vavr.collection.HashMap.ofAll(value); } }
public static CombinedConfig loadCombinedConfig(Map<String, ?> config) { return loadCombinedConfig(HashMap.ofAll(config)); }
@Override public io.vavr.collection.Map<String, ?> unhandleChildKeys(Map<String, Map<String, String>> value, String pathPrefix) { HashMap<String, String> retVal = HashMap.ofAll(value).flatMap((taskKey, configs) -> { if (!configs.isEmpty()) { return HashMap.ofAll(configs).map((configKey, configValue) -> Tuple.of(taskKey + "." + configKey, configValue)); } else { return HashMap.of(taskKey, ""); } }); return retVal; } }
@Override public Map<String, ?> unhandleChildKeys(java.util.Map<String, T> value, String pathPrefix) { if (value == null) { return null; } final io.vavr.collection.HashMap<String, ?> serialized = io.vavr.collection.HashMap.ofAll(value).flatMap( (columnName, columnPartitionConfig) -> Serializer.serialize(columnPartitionConfig) .map((key, obj) -> Tuple.of(columnName + "." + key, obj))); return serialized; } }
/** * Add a link to this resource. * * @param rel * @param href The target href for the link, relative to the href of this resource. * @param properties The properties to add to this link object */ public ResourceRepresentation<V> withLink( String rel, String href, java.util.Map<String, String> properties) { return withLink(Links.create(rel, href, HashMap.ofAll(properties))); }
@ExportAsPublic static Link create(String rel, String href, java.util.Map<String, String> properties) { return Links.full0(rel, href, isTemplated(href), HashMap.ofAll(properties)); } }