Sha256: 119c81d84cdf2c930d3c81355b5ab93e2e75a1c7cd5661fae1ab51253bbd3714
Contents?: true
Size: 933 Bytes
Versions: 4
Compression:
Stored size: 933 Bytes
Contents
package org.embulk.parser.avro.getter; import org.embulk.spi.Column; import org.embulk.spi.PageBuilder; import org.embulk.spi.time.TimestampParser; public class BooleanColumnGetter extends BaseColumnGetter { protected Boolean value; public BooleanColumnGetter(PageBuilder pageBuilder, TimestampParser[] timestampParsers) { super(pageBuilder, timestampParsers); } @Override public void setValue(Object value) { this.value = (Boolean) value; } @Override public void booleanColumn(Column column) { if (value == null) { pageBuilder.setNull(column); } else { pageBuilder.setBoolean(column, value); } } @Override public void stringColumn(Column column) { if (value == null) { pageBuilder.setNull(column); } else { pageBuilder.setString(column, value.toString()); } } }
Version data entries
4 entries across 4 versions & 1 rubygems