Sha256: fc5737b7abe878ce341728af6b0ee66566b165d463439556e925d65014a1c99b
Contents?: true
Size: 1.43 KB
Versions: 3
Compression:
Stored size: 1.43 KB
Contents
package org.embulk.formatter.avro.converter; import org.apache.avro.Schema; import org.msgpack.value.Value; abstract public class AbstractAvroValueConverter { protected Schema avroSchema; public AbstractAvroValueConverter(Schema schema) { this.avroSchema = schema; } public Object booleanColumn(boolean value) { throw new RuntimeException(String.format("%s cannot convert to %s of %s field", value, avroSchema.getType(), avroSchema.getName())); } public Object longColumn(long value) { throw new RuntimeException(String.format("%s cannot convert to %s of %s field", value, avroSchema.getType(), avroSchema.getName())); } public Object doubleColumn(double value) { throw new RuntimeException(String.format("%s cannot convert to %s of %s field", value, avroSchema.getType(), avroSchema.getName())); } public Object stringColumn(String value) { throw new RuntimeException(String.format("%s cannot convert to %s of %s field", value, avroSchema.getType(), avroSchema.getName())); } public Object timestampColumn(String value) { throw new RuntimeException(String.format("%s cannot convert to %s of %s field", value, avroSchema.getType(), avroSchema.getName())); } public Object jsonColumn(Value value) { throw new RuntimeException(String.format("%s cannot convert to %s of %s field", value, avroSchema.getType(), avroSchema.getName())); } }
Version data entries
3 entries across 3 versions & 1 rubygems