Sha256: 8ab2f6af14da3d5a0048c5f552c5ee4dab4621501682d8d20d354992109b5939
Contents?: true
Size: 680 Bytes
Versions: 2
Compression:
Stored size: 680 Bytes
Contents
package org.embulk.input.td.writer; import org.embulk.spi.Column; import org.embulk.spi.PageBuilder; import org.msgpack.value.Value; public abstract class AbstractValueWriter implements ValueWriter { protected final Column column; protected final int index; protected AbstractValueWriter(Column column) { this.column = column; this.index = column.getIndex(); } @Override public void write(Value v, PageBuilder to) { if (v.isNilValue()) { to.setNull(index); } else { writeNotNull(v, to); } } protected abstract void writeNotNull(Value v, PageBuilder to); }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
embulk-input-td-0.2.0 | src/main/java/org/embulk/input/td/writer/AbstractValueWriter.java |
embulk-input-td-0.1.0 | src/main/java/org/embulk/input/td/writer/AbstractValueWriter.java |