Sha256: f8e6f5c73cae54f48c74a33d19cd3aa3d844d7ebc0cd5a29fa6a190c101493f1
Contents?: true
Size: 618 Bytes
Versions: 3
Compression:
Stored size: 618 Bytes
Contents
package org.embulk.formatter.avro.converter; import org.apache.avro.Schema; public class AvroLongConverter extends AbstractAvroValueConverter { public AvroLongConverter(Schema schema) { super(schema); } @Override public Long longColumn(long value) { return value; } @Override public Long doubleColumn(double value) { return Math.round(value); } @Override public Long stringColumn(String value) { return Long.parseLong(value); } @Override public Long timestampColumn(String value) { return Long.parseLong(value); } }
Version data entries
3 entries across 3 versions & 1 rubygems