Sha256: d409569aecadf58b80b9f42cfae3bc80449e0adb00bdc8844583a5511e11e511
Contents?: true
Size: 904 Bytes
Versions: 1
Compression:
Stored size: 904 Bytes
Contents
package org.embulk.output.jdbc; import java.util.Map; import java.util.HashMap; import java.util.Properties; import com.google.common.base.Function; import com.google.common.collect.Maps; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; public class ToStringMap extends HashMap<String, String> { @JsonCreator ToStringMap(Map<String, ToString> map) { super(Maps.transformValues(map, new Function<ToString, String>() { public String apply(ToString value) { if (value == null) { return "null"; } else { return value.toString(); } } })); } public Properties toProperties() { Properties props = new Properties(); props.putAll(this); return props; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
embulk-output-jdbc-0.4.0 | src/main/java/org/embulk/output/jdbc/ToStringMap.java |