Sha256: 53a0688e0297d1c7642c8034ef3f0ca90f13307b50f665397b7fa14167e0396b
Contents?: true
Size: 857 Bytes
Versions: 4
Compression:
Stored size: 857 Bytes
Contents
package org.embulk.input.jdbc.getter; import org.embulk.spi.Column; import org.embulk.spi.PageBuilder; import org.embulk.spi.time.Timestamp; import org.embulk.spi.time.TimestampFormatter; import org.embulk.spi.type.Type; public abstract class AbstractTimestampColumnGetter extends AbstractColumnGetter { private final TimestampFormatter timestampFormatter; protected Timestamp value; public AbstractTimestampColumnGetter(PageBuilder to, Type toType, TimestampFormatter timestampFormatter) { super(to, toType); this.timestampFormatter = timestampFormatter; } @Override public void stringColumn(Column column) { to.setString(column, timestampFormatter.format(value)); } @Override public void timestampColumn(Column column) { to.setTimestamp(column, value); } }
Version data entries
4 entries across 4 versions & 1 rubygems