Sha256: 65a6616b64a151824218297c2e2ad707487b9e30e2bfc93c45f26f9e74917c78
Contents?: true
Size: 855 Bytes
Versions: 3
Compression:
Stored size: 855 Bytes
Contents
package org.embulk.formatter.avro.converter; import org.apache.avro.Schema; import org.msgpack.value.Value; public class AvroStringConverter extends AbstractAvroValueConverter { public AvroStringConverter(Schema schema) { super(schema); } @Override public String booleanColumn(boolean value) { return String.valueOf(value); } @Override public String longColumn(long value) { return String.valueOf(value); } @Override public String doubleColumn(double value) { return String.valueOf(value); } @Override public String stringColumn(String value) { return value; } @Override public String timestampColumn(String value) { return value; } @Override public String jsonColumn(Value value) { return value.toJson(); } }
Version data entries
3 entries across 3 versions & 1 rubygems